- 0
Problema spawn
-
Similar Content
-
- 1 answer
- 243 views
-
- 3 answers
- 359 views
-
- 3 replies
- 410 views
-
- 3 replies
- 74 views
-
- 1 reply
- 356 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
DreiVian
Problema intalnita (descriere): Am facut 4 echipe .. la fiecare echipa i-am setat un spawn. Dar de exemplu x se conecteaza pe server si il da la spawn civil ... dupa y se conecteaza pe server primeste aceleasi date ca si x
Ero(area / rile) / warning-(ul / urile): nu am erorir
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
public OnPlayerSpawn(playerid) { if(P_Data[playerid][pMember] == 0) { SetPlayerPos(playerid, 1479.6548, -1725.2207, 13.5469); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid, 0); SetPlayerHealth(playerid,Float:50.0); SetPlayerSkin(playerid,P_Data[playerid][pSkin]); SetPlayerColor(playerid,-1);// } if(P_Data[playerid][pMember] == 1)////GROVE { SetPlayerPos(playerid, 2498.6328,-1643.2736,13.7826); GivePlayerWeapon(playerid, 24,15); SetPlayerInterior(playerid,0); SetPlayerHealth(playerid,Float:80.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerSkin(playerid,P_Data[playerid][pSkin]); SetPlayerColor(playerid,COLOR_GREEN);// } if(P_Data[playerid][pMember] == 2)//BALLAS { SetPlayerPos(playerid, 1939.1661,-1115.0671,27.4523); GivePlayerWeapon(playerid, 24,15); SetPlayerInterior(playerid,0); SetPlayerHealth(playerid,Float:80.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerSkin(playerid,P_Data[playerid][pSkin]); SetPlayerColor(playerid,COLOR_DARKVIOLET);// } if(P_Data[playerid][pMember] == 3)//VAGOS { SetPlayerPos(playerid, 2460.3865,-1331.1915,24.0000); GivePlayerWeapon(playerid, 24,15); SetPlayerInterior(playerid,0); SetPlayerHealth(playerid,Float:80.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerSkin(playerid,P_Data[playerid][pSkin]); SetPlayerColor(playerid,COLOR_YELLOW);// } if(P_Data[playerid][pMember] == 4) { SetPlayerPos(playerid, 1762.3025,-2102.9854,13.8570); GivePlayerWeapon(playerid, 24,15); SetPlayerInterior(playerid,0); SetPlayerHealth(playerid,Float:80.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerSkin(playerid,P_Data[playerid][pSkin]); SetPlayerColor(playerid,COLOR_LIGHTBLUE);// } return 1; }
if(rows) { P_Data[playerid][pParola] = cache_get_field_content(0, "Parola",temporar); P_Data[playerid][pID] = cache_get_field_content_int(0, "ID"); P_Data[playerid][pAdmin] = cache_get_field_content_int(0, "Admin"); P_Data[playerid][pHelper] = cache_get_field_content_int(0, "Helper"); P_Data[playerid][pVip] = cache_get_field_content_int(0, "Vip"); P_Data[playerid][pMember] = cache_get_field_content_int(0, "Member"); P_Data[playerid][pRank] = cache_get_field_content_int(0, "Rank"); P_Data[playerid][pBan] = cache_get_field_content_int(0, "Ban"); P_Data[playerid][pBani] = cache_get_field_content_int(0,"Bani"); P_Data[playerid][pKills] = cache_get_field_content_int(0,"Kills"); P_Data[playerid][pLevel] = cache_get_field_content_int(0,"Level"); P_Data[playerid][pSkin] = cache_get_field_content_int(0,"Skin"); P_Data[playerid][pSk] = cache_get_field_content_int(0,"Sk"); if(P_Data[playerid][pBan] == 1 ) { Kick(playerid); } GivePlayerMoney(playerid,P_Data[playerid][pBani]); SetPlayerScore(playerid,P_Data[playerid][pLevel]); SpawnPlayer(playerid); }
case DIALOG_FACTIUNE: { new echipa; echipa = P_Data[playerid][pMember]; if(!response) return SendClientMessage(playerid,-1,"Am inteles! Nu vrei sa intri in Gang"); if(response) { if(IsPlayerInRangeOfPoint(playerid,2.0,2495.3435,-1690.6968,14.7656))////GROVE { if(P_Data[playerid][pMember] == 0) { format(query,sizeof(query),"De acum esti in Grove, de aici iesi doar cu picioarele inainte!"); SendClientMessage(playerid,-1,query); P_Data[playerid][pMember] = 1; SetPlayerSkin(playerid,Grove[random(3)]); P_Data[playerid][pSkin] = GetPlayerSkin(playerid); SpawnPlayer(playerid); Update(playerid,SkinUpdate); Update(playerid,MemberUpdate); } else { format(query,sizeof(query),"Faci parte deja din TEAM[%i]",echipa); SendClientMessage(playerid,-1,query); } } else if(IsPlayerInRangeOfPoint(playerid,2.0,1939.1661,-1115.0671,27.4523))////Ballas { if(P_Data[playerid][pMember] == 0) { format(query,sizeof(query),"De acum esti in Ballas, de aici iesi doar cu picioarele inainte!"); SendClientMessage(playerid,-1,query); P_Data[playerid][pMember] = 2; SetPlayerSkin(playerid,Ballas[random(3)]); P_Data[playerid][pSkin] = GetPlayerSkin(playerid); SpawnPlayer(playerid); Update(playerid,SkinUpdate); Update(playerid,MemberUpdate); } else { format(query,sizeof(query),"Faci parte deja din TEAM[%i]",echipa); SendClientMessage(playerid,-1,query); } } else if(IsPlayerInRangeOfPoint(playerid,2.0,2460.3865,-1331.1915,24.0000))////Vagos { if(P_Data[playerid][pMember] == 0) { format(query,sizeof(query),"De acum esti in Vagos, de aici iesi doar cu picioarele inainte!"); SendClientMessage(playerid,-1,query); P_Data[playerid][pMember] = 3; SetPlayerSkin(playerid,Vagos[random(3)]); P_Data[playerid][pSkin] = GetPlayerSkin(playerid); SpawnPlayer(playerid); Update(playerid,SkinUpdate); Update(playerid,MemberUpdate); } else { format(query,sizeof(query),"Faci parte deja din TEAM[%i]",echipa); SendClientMessage(playerid,-1,query); } } else if(IsPlayerInRangeOfPoint(playerid,2.0,1762.3025,-2102.9854,13.8570))////Aztecas { if(P_Data[playerid][pMember] == 0) { format(query,sizeof(query),"De acum esti in Aztecas, de aici iesi doar cu picioarele inainte!"); SendClientMessage(playerid,-1,query); P_Data[playerid][pMember] = 4; SetPlayerSkin(playerid,Aztecas[random(3)]); P_Data[playerid][pSkin] = GetPlayerSkin(playerid); SpawnPlayer(playerid); Update(playerid,SkinUpdate); Update(playerid,MemberUpdate); } else { format(query,sizeof(query),"Faci parte deja din TEAM[%i]",echipa); SendClientMessage(playerid,-1,query); } } } }
if(P_Data[playerid][pMember] == 0 ) { if(pickupid == PickupGR) { ShowPlayerDialog(playerid,DIALOG_FACTIUNE,DIALOG_STYLE_MSGBOX,"GROVE STREET","Vrei bani?\n Gabori care sa te scape cand o faci lata ?\nFemei?\nMasini?\nDoar intrand in Grove le poti obtine.Insa o afacere e totusi o afacere.","Intra","NU!"); return 1; } if(pickupid == PickupBA) { ShowPlayerDialog(playerid,DIALOG_FACTIUNE,DIALOG_STYLE_MSGBOX,"BALLAS","Vrei bani?\n Gabori care sa te scape cand o faci lata ?\nFemei?\nMasini?\nDoar intrand in Grove le poti obtine.Insa o afacere e totusi o afacere.","Intra","NU!"); return 1; } if(pickupid == PickupVA) { ShowPlayerDialog(playerid,DIALOG_FACTIUNE,DIALOG_STYLE_MSGBOX,"VAGOS","Vrei bani?\n Gabori care sa te scape cand o faci lata ?\nFemei?\nMasini?\nDoar intrand in Grove le poti obtine.Insa o afacere e totusi o afacere.","Intra","NU!"); return 1; } if(pickupid == PickupAZ) { ShowPlayerDialog(playerid,DIALOG_FACTIUNE,DIALOG_STYLE_MSGBOX,"AZTECAS","Vrei bani?\n Gabori care sa te scape cand o faci lata ?\nFemei?\nMasini?\nDoar intrand in Grove le poti obtine.Insa o afacere e totusi o afacere.","Intra","NU!"); return 1; } }
Cam astea sunt codurile care au legatura cu factiunile. Daca sunteti dispusi sa aruncati un ochi si sa imi dati un sfat va raman vesnic recunascator.
Daca mai doriti si alte lini le pot posta... Ma refer la Update Mysql .. problema e ca imi face update corect in baza de date dar ...
Ati incercat sa rezolvati singur?: Da inca ma chinui, si nu imi dau seama unde e fals
SARTV01.pwn
Edited by DreiVianADD GM.. Daca doriti mai multe detalii
Link to comment
Share on other sites
17 answers to this question
Recommended Posts