Edit command
#2

pawn Код:
#include a_samp
#include sscanf2
#include zcmd


CMD:pm(playerid,x[])
{
    new
        idx,str[2][60],text[128],name[24];
    GetPlayerName(playerid,name,24);
    if(sscanf(x,"is[128]",idx,text)) return SendClientMessage(playerid,-1,"use: /pm [playerid] [text]");
    format(str[0],60,"PM %s: %s",name,text);
    format(str[1],60,"Your pm: %s",str);
    SendClientMessage(idx,-1,str[0]);
    SendClientMessage(playerid,-1,str[1]);
    return 0x1;
}
Reply


Messages In This Thread
Edit command - by Join7 - 23.10.2011, 12:26
Re: Edit command - by Paramount. - 23.10.2011, 14:41
Re: Edit command - by Join7 - 23.10.2011, 18:51
Re: Edit command - by Join7 - 30.10.2011, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)