11.06.2011, 23:25
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.
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.");
}