Pm cmd help
#2

Here my pm code it shows whole message

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;

Reply


Messages In This Thread
Pm cmd help - by Face9000 - 25.10.2012, 10:30
Re: Pm cmd help - by -=Dar[K]Lord=- - 25.10.2012, 10:36
Re: Pm cmd help - by Riddick94 - 25.10.2012, 10:38
Re: Pm cmd help - by -=Dar[K]Lord=- - 25.10.2012, 10:39
Re: Pm cmd help - by Lordzy - 25.10.2012, 10:44
Re: Pm cmd help - by Face9000 - 25.10.2012, 10:44
Re: Pm cmd help - by -=Dar[K]Lord=- - 25.10.2012, 10:44
Re: Pm cmd help - by niels44 - 25.10.2012, 10:45
Re: Pm cmd help - by Face9000 - 25.10.2012, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)