SA-MP Forums Archive
Help with cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with cmd (/showthread.php?tid=590306)



Help with cmd - itachi - 27.09.2015

I want create cmd...

if admin send cmd /p ID
so player view text : Welcome to the Roleplay Gaming,for all command /cmds /help....

please help


Re : Help with cmd - KillerDVX - 27.09.2015

PHP код:
dcmd(p,1,cmdtext);
dcmd_p(playerid,params[])
{
    new 
ID;
    if(
sscanf(params"us[100]"ID))
    {
        
SendClientMessage(playerid,COLOR_ERROR,"/p (ID)");
        return 
1;
    }
    
SendClientMessage(ID,-1,"Welcome...);
    return 1;