02.08.2011, 18:29
PHP код:
CMD:og(playerid, params[])
{
new gangsterrank[MAX_PLAYER_NAME], gangsterlevel, id;
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (sscanf(params, "ui", id, gangsterlevel)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /set_glevel [id] [gangsterlevel]");
if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "System: Invalid ID");
GetPlayerName(id, gangstername, sizeof(gangstername));
new str[128];
format(str,128,"System: %s [ID %d] has set %s [ID %d] gangsterlevel to %i",adminname, playerid, gangsterrank, id, gangsterlevel);
SendClientMessage(playerid,COLOR_YELLOW,str);
return 1;
}
else return SendClientMessage(playerid,COLOR_RED," You are not allowed to use this command!");
}