Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd,"/english",true) == 0)
- {
- if(AccountInfo[playerid][AdminLevel] >= 1)
- {
- SendClientMessageToAll(COLOR_LBLUE,"This is an International server, please speak English in the main chat only");
- return 1;
- }
- else return SendClientMessage(playerid,COLOR_RED,"You're not authorized to use this command");
- }
- if(strcmp(cmd,"/rulez",true) == 0)
- {
- if(AccountInfo[playerid][AdminLevel] >= 1)
- {
- SendClientMessageToAll(COLOR_LBLUE,"Please read the rules with /rules");
- return 1;
- }
- else SendClientMessage(playerid,COLOR_RED,"You're not authorized to use this command"); return 1;
- }
- if(strcmp(cmd,"/dm",true) == 0)
- {
- if(AccountInfo[playerid][AdminLevel] >= 1)
- {
- SendClientMessageToAll(COLOR_LBLUE,"This is a role-playing server, no Deathmatching please");
- return 1;
- }
- else SendClientMessage(playerid,COLOR_RED,"You're not authorized to use this command"); return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /warn [playerid] [reason]");
- return 1;
- }
- format(string, sizeof(string), "You got warned by Admin %s [Reason: %s]", player, reason);
- SendClientMessage(giveplayerid, ADMIN_RED, string);
- format(string, sizeof(string), "Admin %s warned %s [Reason: %s ]",player ,giveplayer, reason);
- SendClientMessageToAdmins(ADMIN_RED,string,1);
- return 1;
- }
- reason = bigstrtok(cmdtext, idx);
- if(!strlen(reason)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /kick [playername/id] [reason]");
- printf("ADMIN: Admin %s kicked %s. Reason: %s", sendername, giveplayername, reason);
- format(string, sizeof(string), "Admin %s kicked %s for: %s", sendername, giveplayername, reason);
- SendClientMessageToAll(ADMIN_RED, string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement