14.04.2013, 00:57
pawn Код:
CMD:a(playerid, params[])
{
new result[128],name[MAX_PLAYER_NAME],string[128];
if(sscanf(params, "s[128]", result)) return SendClientMessage(playerid, COLOR_WHITE, "Use: /a [Text]");
if(PlayerInfo[playerid][pAdmin] >=2 || IsPlayerAdmin(playerid)) //
{
format(string, sizeof(string), "Trial Admin %s: %s.",name,result);
SendAdminMessage(COLOR_GREEN,string);
}
if(PlayerInfo[playerid][pAdmin] >=3)
{
format(string, sizeof(string), "Admin %s: %s.",name,result);
SendAdminMessage(COLOR_GREEN,string);
}
if(PlayerInfo[playerid][pAdmin] >=4)
{
format(string, sizeof(string), "Senior Admin %s: %s.",name,result);
SendAdminMessage(COLOR_GREEN,string);
}
if(PlayerInfo[playerid][pAdmin] >=5)
{
format(string, sizeof(string), "Owner %s: %s.",name,result);
SendAdminMessage(COLOR_GREEN,string);
}
return 1;
}
can someone tell me what im doing wrong?