What is the problem there ?
#2

You should use playerid id in CMD:ac and not i.

Код:
CMD:ac(playerid, params[])
{
    if(PlayerInfo[playerid][pAdminLevel] == 0)return SendClientMessage(playerid,-1,"{FF0000}[ERROR]:{FAF5F5}You are not{FF0000} Administrator {FAF5F5}to use admin chat");
    new name[1024], text[126];
    if(sscanf(params, "s[126]", text))return SendClientMessage(playerid,-1,"{FF0000}[System Usage]:{FAF5F5}/ac [text]");
    GetPlayerName(playerid, name, sizeof(name));
    format(text, sizeof(text), "{FFD700}[%s] %s: %s", GetPlayerAdminRank(playerid),name ,text);
    SendMessageToAdmins(text);
    return 1;
}
Reply


Messages In This Thread
What is the problem there ? - by SilentSoul - 02.09.2013, 01:39
Re: What is the problem there ? - by Borg - 02.09.2013, 01:46
Re: What is the problem there ? - by SilentSoul - 02.09.2013, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)