Guest User

Untitled

a guest
Jul 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // góra mapy
  2. enum bloki
  3. {
  4. gangmoze
  5. }
  6. new Czas[MAX_PLAYERS][bloki];
  7.  
  8. WPrzykład wykorzystania Czas[playerid][gangmoze]
  9.  
  10. CMD:Gang
  11. if(Czas[playerid][gangmoze] == 1)
  12. return MSG Nie możesz korzystac z cmd
  13.  
  14. Czas[playerid][gangmoze] = 1
  15. SetTimerEx("MozeGang",30000,0,"d",playerid); //30s
  16.  
  17.  
  18. forward MozeGang(playerid);
  19. public MozeGang(playerid)
  20. {
  21. Czas[playerid][gangmoze] = 0;
  22. SendClientMessage(playerid,-1, "Mozesz wpisac juz ta cmd");
  23. return 1;
  24. }
Add Comment
Please, Sign In to add comment