Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.80 KB | None | 0 0
  1.     if(strcmp(cmd,"/english",true) == 0)
  2.     {
  3.         if(AccountInfo[playerid][AdminLevel] >= 1)
  4.         {
  5.             SendClientMessageToAll(COLOR_LBLUE,"This is an International server, please speak English in the main chat only");
  6.             return 1;
  7.         }
  8.         else return SendClientMessage(playerid,COLOR_RED,"You're not authorized to use this command");
  9.     }
  10.  
  11.     if(strcmp(cmd,"/rulez",true) == 0)
  12.     {
  13.         if(AccountInfo[playerid][AdminLevel] >= 1)
  14.         {
  15.             SendClientMessageToAll(COLOR_LBLUE,"Please read the rules with /rules");
  16.             return 1;
  17.         }
  18.         else SendClientMessage(playerid,COLOR_RED,"You're not authorized to use this command"); return 1;
  19.     }
  20.  
  21.     if(strcmp(cmd,"/dm",true) == 0)
  22.     {
  23.         if(AccountInfo[playerid][AdminLevel] >= 1)
  24.         {
  25.             SendClientMessageToAll(COLOR_LBLUE,"This is a role-playing server, no Deathmatching please");
  26.             return 1;
  27.         }
  28.         else SendClientMessage(playerid,COLOR_RED,"You're not authorized to use this command"); return 1;
  29.     }
  30.    
  31.    
  32.    
  33.    
  34.     SendClientMessage(playerid, COLOR_GREY, "USAGE: /warn [playerid] [reason]");
  35.     return 1;
  36. }
  37.     format(string, sizeof(string), "You got warned by Admin %s [Reason: %s]", player, reason);
  38.     SendClientMessage(giveplayerid, ADMIN_RED, string);
  39.     format(string, sizeof(string), "Admin %s warned %s [Reason: %s ]",player ,giveplayer, reason);
  40.     SendClientMessageToAdmins(ADMIN_RED,string,1);
  41.     return 1;
  42. }
  43.  
  44.     reason = bigstrtok(cmdtext, idx);
  45.     if(!strlen(reason)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /kick [playername/id] [reason]");
  46.     printf("ADMIN: Admin %s kicked %s. Reason: %s", sendername, giveplayername, reason);
  47.     format(string, sizeof(string), "Admin %s kicked %s for: %s", sendername, giveplayername, reason);
  48.     SendClientMessageToAll(ADMIN_RED, string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement