help fast please!
#4

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;
}
Reply


Messages In This Thread
help fast please! - by aCloudy - 29.01.2015, 14:19
Re: help fast please! - by aCloudy - 29.01.2015, 14:28
Re: help fast please! - by ATGOggy - 29.01.2015, 14:33
Re: help fast please! - by KayJ - 29.01.2015, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)