25.10.2012, 10:36
Here my pm code it shows whole message
I recommend u instead of putting str2 and all put params[]
I recommend u instead of putting str2 and all put params[]
PHP код:
CMD:pm(playerid,params[])
{
new player = strval(params);
new text = params[1];
if(sscanf(params,"uc",player,text))return SendClientMessage(playerid,Red,"[Usage]: /pm [playerid] [ Message]");
if(!IsPlayerConnected(player))return SendClientMessage(playerid,Red,"[ERROR]:Player Not Connected");
new string[256];
format(string,sizeof(string),"PM To %s(%d): %s",Playername(player),player,params[1]);
SendClientMessage(playerid,Yellow,string);
format(string,sizeof(string),"PM From %s(%d): %s",Playername(playerid),playerid,params[1]);
SendClientMessage(player,Yellow,string);
return 1;
}