06.09.2016, 14:05
Alguem sabe pq essa favela so funcionar para o player id [0]?
Quote:
public LocalFavela(playerid) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(X >= 2021.7699 && Y >= -1153.7277 && X <=2279.1223 && Y <= -949.7124) { if(!PlayerInFavela[playerid]) { GivePlayerWeapon(playerid, 32, 500); GivePlayerWeapon(playerid, 31, 500); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 26, 500); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 9, 1); PlayerInFavela[playerid] = true; } return 1; } else { ResetPlayerWeapons(playerid); PlayerInFavela[playerid] = false; } return 1; } |