03.10.2011, 23:20
PHP код:
CMD:setrank(playerid, params[])
{
new
id,
rank[24];
if(sscanf(params, "us[64]", id, rank)) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_DGREY"[CMD] / "#COL_SGREY"[PlayerID/PartOfName] [Rank]");
else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_ORANGE"[ERROR]"#COL_LRED" Player not connected!");
{
PlayerInfo[id][Rank] = rank;
}
return 1;
}