11.06.2011, 23:13
pawn Код:
command(noteplayer, playerid, params[])
{
new pid;
new note[128];
new string[128];
if( PlayerInfo[playerid][Admin] >= 1)
{
if(sscanf(params, "i", pid, note))
{
SendClientMessage(playerid, COLOUR_ORANGE, "Hint: /noteplayer (playerid) (note)");
return 1;
}
if(!IsPlayerConnected(pid))
{
SendClientMessage(playerid, COLOUR_ORANGE, "That player ID is not connected.");
return 1;
}
format(string, sizeof(string), "%s",note);
GameTextForPlayer(pid, "~r %s", 10000, 0);
}
return 1;
}