29.01.2015, 14:34
Try This(self correction):
pawn Code:
CMD:asay(playerid, params[])
{
new str[128];
if(pInfo[playerid][Admin] >= 1)
{
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid,COLOR_WHITE, ""COL_USAGE"[SYNTAX] {FFFFFF}/asay [MESSAGE]");
format(str, sizeof(str), ""COL_ADMIN"[ADMIN] {FFFFFF}%s", GetName(playerid), params);
SendClientMessageToAll(COL_WHITE, str);
format(str, sizeof(str), "%s(%d) has used /asay", params);
SendALogMessage(string);
}
else return SCM(playerid,COLOR_WHITE,"{AFAFAF}[Error]: {FFFFFF}You do not have the correct admin level for this command.");
return 1;
}