08.03.2015, 14:15
Hi,my gamemode have a problem,it's spawn me on the wrong place,idk why.. I maked a code to spawn me on the good place,but it's still give me at the wrong place,when you finish the tutorial..Here's the codes:
Код:
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Politia Romana spawn { GivePlayerWeaponEx(playerid, 3, 1); if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 100); } if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI { GivePlayerWeaponEx(playerid, 25, 300); GivePlayerWeaponEx(playerid, 3, 1); if(PlayerInfo[playerid][dGun1]==31||PlayerInfo[playerid][dGun2]==31||PlayerInfo[playerid][dGun3]==31||PlayerInfo[playerid][dGun4]==31||PlayerInfo[playerid][dGun5]==31){} else GivePlayerWeaponEx(playerid, 31, 250); if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 250); } if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Reporter { GivePlayerWeaponEx(playerid, 43, 999); } if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//TT { if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 500); GivePlayerWeaponEx(playerid, 4, 1); } if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//TM { if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 500); GivePlayerWeaponEx(playerid, 4, 1); } if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//GST { if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 500); GivePlayerWeaponEx(playerid, 4, 1); } if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)//VLA { if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 500); GivePlayerWeaponEx(playerid, 4, 1); } if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)//LSV { if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 500); GivePlayerWeaponEx(playerid, 4, 1); } if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)//Ballas { if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 500); GivePlayerWeaponEx(playerid, 4, 1); } if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//HA { GivePlayerWeaponEx(playerid,23,500); GivePlayerWeaponEx(playerid, 4, 1); } if(PlayerInfo[playerid][pMember]==12 || PlayerInfo[playerid][pLeader]==12) { if(PlayerInfo[playerid][dGun1]==24||PlayerInfo[playerid][dGun2]==24||PlayerInfo[playerid][dGun3]==24||PlayerInfo[playerid][dGun4]==24||PlayerInfo[playerid][dGun5]==24){} else GivePlayerWeaponEx(playerid, 24, 150); GivePlayerWeaponEx(playerid,25,250); GivePlayerWeaponEx(playerid,5,1); } if(PlayerInfo[playerid][pJailed] == 1) { JailCoord(playerid); SendClientMessage(playerid, -1, "Incomplete Jail Sentence, back to jail."); return 1; } if(PlayerInfo[playerid][pJailed] == 2) { SetPlayerInterior(playerid, 0); ResetPlayerWeapons(playerid); ServerSetPlayerPos(playerid,268.5777,1857.9351,9.8133); SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811 return 1; } if(PlayerInfo[playerid][pLeader] == 0) { SetPlayerPos(playerid,1734.0712,-1266.6263,13.5433); SendClientMessage(playerid, COLOR_1GREEN, "Bun venit la spawn!"); SetPlayerVirtualWorld(playerid, 0); return 1; }