03.06.2014, 11:55
anyone can help me how can i add another cmd for this, "/admsg" i want it just to be "#" in shortcut but not totally will remove /admsg .. pls help me
Код:
dcmd_admsg(playerid,params[]) { new string[128]; if(!strlen(params)) { SendClientMessage(playerid,COLOR_ERROR,"USAGE: /admsg (Message)"); return 1; } if(IsSpawned[playerid] == 0) { SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command."); return 1; } format(string,sizeof(string),"4[ADMIN CHAT] %s(%d): %s",PlayerName(playerid),playerid,params); IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string); for(new i=0; i<MAX_PLAYERS; i++) { if(AdminLevel[i] >= 1) { format(string,sizeof(string),"[ADMIN CHAT] %s(%d): %s",PlayerName(playerid),playerid,params); SendClientMessage(i,COLOR_ADMIN,string); } } return 1; }