18.01.2012, 12:18
Код:
format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z); SendClientMessage(playerid, 0xBBBBBBAA, string); } } return 1; } //warn cmd dcmd_warn(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { new tmp = strtok(params,Index); new tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]"); new warned = strval(tmp), str[128]; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; // if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");