SA-MP Forums Archive
ZCMD '//' command - 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: ZCMD '//' command (/showthread.php?tid=537340)



ZCMD - Don_Cage - 14.09.2014

Fixed.


Re: ZCMD '//' command - Abagail - 14.09.2014

I dont think this is possible without modifying the actual include, how-ever I could be wrong. I'd recommend using something such as @ as / is not really practical.


Re: ZCMD '//' command - Jefff - 14.09.2014

You need edit ZCMD inc for this or use ZCMD OnPlayerCommandReceived


Re: ZCMD '//' command - Don_Cage - 14.09.2014

Quote:
Originally Posted by Jefff
Посмотреть сообщение
You need edit ZCMD inc for this or use ZCMD OnPlayerCommandReceived
How could I use OnPlayerCommandRecived for that?


Re: ZCMD '//' command - Jefff - 14.09.2014

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"//",true,2) && IsAdminVariable(playerid))
    {
        // put your old cmd here
        return 0;
    }
    return 1;
}
should work


Re: ZCMD '//' command - Don_Cage - 14.09.2014

.....


Re: ZCMD '//' command - Stinged - 15.09.2014

You can use cmdtext[3] for this, or use sscanf to split cmdtext into cmd and params.