Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
  2. {
  3. if(!IsPlayerConnected(playerid))
  4. {
  5. SendClientMessage(playerid,-1,"{F5052D}[ERROR] {FFFFFF}Ne mozete sad koristiti komande morate se prvo ulogovati!");
  6. return 0;
  7. }
  8. if(PI[playerid][Admin] == 0)
  9. {
  10. if(GetTickCount()-gtc_Cmd[playerid] < 2000)
  11. {
  12. SendClientMessage(playerid, GRAD2, "Server - Komande mozete koristiti svake 2 sekunde.");
  13. return(false);
  14. }
  15. }
  16. gtc_Cmd[playerid] = GetTickCount();
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement