Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SafeZone()
- {
- for(new i=0, m=MAX_PLAYERS; i<m; i++)
- {
- if(IsPlayerInArea(i, -381.318511, 1235.180419, -229.318511, 1379.180419) && !EnterSafeZone[i])
- {
- SetPVarInt(i, "weapons", GetPlayerWeapon(i));
- SetPVarInt(i, "ammo", GetPlayerAmmo(i));
- ResetPlayerWeapons(i);
- EnterSafeZone[i] = 1;
- }
- else if(EnterSafeZone[i])
- {
- GivePlayerWeapon(i,GetPVarInt(i,"weapons"),GetPVarInt(i,"ammo"));
- EnterSafeZone[i] = 0;
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement