12.04.2011, 13:21
Quote:
Код:
dcmd_a(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][AdminLevel] >= 1) { if(!strlen(params)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /a [text]"); return 1; } new str[128], pName[24]; GetPlayerName(playerid, pName, sizeof(pName)); format(str, sizeof(str), "(Admin Chat): %s said %s", pName,params[0] ); SendAdminMessage(0xF6A442FF, str); } else { SendClientMessage(playerid,COLOR_GRAD1,"You are not authorized to use that command!"); } return 1; } |
works perfectly :3
Quote:
pawn Код:
Make sure you have included ZCMD. Then, you can put it in a script or a filterscript |