Can someone take a look at this?
#2

Lol... The script isn't complet.

Try this... not tested, i just wrote it right now. if it doesn0t work, try to replace "i" with "ui" in your script.
pawn Код:
COMMAND:noteplayer(playerid, params[])
{
    new pid;
    new note[128];
    new string[128];
    if(IsPlayerConnected(pid))
    {
    if( PlayerInfo[playerid][Admin] >= 1)
    {
        if(sscanf(params, "ui", pid, note))
            {
        format(string, sizeof(string), "An Admin has sent you a note: %s",note);
        SendClientMessage(playerid, COLOUR_ORANGE, string);
        }          
        else return SendClientMessage(playerid, COLOUR_ORANGE, "You are not an admin.");
    }
    else return SendClientMessage(playerid, COLOUR_ORANGE, "Hint: /noteplayer (playerid) (note)");
    }
    else return SendClientMessage(playerid, COLOUR_ORANGE, "That player id is not connected.");
}
Reply


Messages In This Thread
Can someone take a look at this? - by cloudysky - 11.06.2011, 23:13
Re: Can someone take a look at this? - by ricardo178 - 11.06.2011, 23:25
Re: Can someone take a look at this? - by cloudysky - 12.06.2011, 10:57
Re: Can someone take a look at this? - by PrawkC - 12.06.2011, 11:02
Re: Can someone take a look at this? - by cloudysky - 12.06.2011, 11:14
Re: Can someone take a look at this? - by PrawkC - 12.06.2011, 12:11

Forum Jump:


Users browsing this thread: 2 Guest(s)