29.03.2014, 22:33
pawn Код:
CMD:w(playerid,params[])
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(sscanf(params,"s[128]",params)) return SendClientMessage(playerid,COLOR_ERROR,"USAGE: /w (Message)");
if(PlayerToPlayer(playerid, i, < 10))
{
format(string,sizeof(string),"%s(%d) whispered : %s",GetName(playerid),playerid,params);
SendClientMessage(i,COLOR_PURPLE,string);
return 1;
}
}
return 1;
}