Advertisement
mrdrifter

Untitled

Jun 2nd, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. forward StrefaDM(playerid);
  2. public StrefaDM(playerid)
  3. {
  4.  
  5. for(new i=0, g=GetMaxPlayers(); i<g; i++)
  6.  
  7. {
  8.  
  9. if(!IsPlayerConnected(i)) continue;
  10.  
  11.  
  12. if(IsPlayerInArea(i, -125.6595, 560.3616, 1372.9520, 2234.3147) && isstrefa[playerid] == false )
  13. {
  14. SetPlayerArmour(i, 100.0);
  15. SendClientMessage(i, COLOR_RED, "Wkroczyłeś na Strefe DM.Przeżyj.");
  16. GivePlayerWeapon(playerid, 38, 200);
  17.  
  18. isstrefa[playerid] = true;
  19. }
  20. if(!IsPlayerInArea(i, -125.6595, 560.3616, 1372.9520, 2234.3147) && isstrefa[playerid] == true)
  21. {
  22.  
  23. ResetPlayerWeapons(playerid);
  24. GivePlayerWeapon(playerid, 24, 434);
  25. SendClientMessage(i, COLOR_RED, "Opuściłeś Strefe DM.");
  26.  
  27. isstrefa[playerid]=false;
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. return 1;//tego ci brakowalo
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement