Advertisement
Peppery

fortony :D

Jan 11th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public SafeZone()
  2. {
  3. for(new i=0, m=MAX_PLAYERS; i<m; i++)
  4. {
  5. if(IsPlayerInArea(i, -381.318511, 1235.180419, -229.318511, 1379.180419) && !EnterSafeZone[i])
  6. {
  7. SetPVarInt(i, "weapons", GetPlayerWeapon(i));
  8. SetPVarInt(i, "ammo", GetPlayerAmmo(i));
  9. ResetPlayerWeapons(i);
  10. EnterSafeZone[i] = 1;
  11. }
  12. else if(EnterSafeZone[i])
  13. {
  14. GivePlayerWeapon(i,GetPVarInt(i,"weapons"),GetPVarInt(i,"ammo"));
  15. EnterSafeZone[i] = 0;
  16. }
  17. }
  18. return true;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement