Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
- {
- if(!IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid,-1,"{F5052D}[ERROR] {FFFFFF}Ne mozete sad koristiti komande morate se prvo ulogovati!");
- return 0;
- }
- if(PI[playerid][Admin] == 0)
- {
- if(GetTickCount()-gtc_Cmd[playerid] < 2000)
- {
- SendClientMessage(playerid, GRAD2, "Server - Komande mozete koristiti svake 2 sekunde.");
- return(false);
- }
- }
- gtc_Cmd[playerid] = GetTickCount();
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement