SA-MP Forums Archive
help with ZCMD - 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 ZCMD (/showthread.php?tid=629723)



help with ZCMD - andrejc999 - 02.03.2017

Hi guys. Is there a way to combine 2 commands into one with zcmd?

I mean something like this:

Код:
if(strcmp(cmd, "/st", true) == 0 || strcmp(cmd, "/something", true) == 0)
but using ZCMD so CMD:...

thx in advanced


Re: help with ZCMD - Eoussama - 02.03.2017

PHP код:
CMD:heal(playerid){
    
SetPlayerHealth(playerid100);
    
SendClientMessage(playerid0x00FF0088"You have healed yourself");
    return 
1;
}
CMD:h(playerid) return heal(playerid); 



Re: help with ZCMD - andrejc999 - 02.03.2017

Nice, thank you a lot...


Re: help with ZCMD - andrejc999 - 02.03.2017

It gives me these errors:

Код:
CMD:gov(playerid, params[]) return goverment(playerid, params[]);

F:\Samp server\gamemodes\BalkanKingRP.pwn(10747) : warning 211: possibly unintended assignment
F:\Samp server\gamemodes\BalkanKingRP.pwn(10751) : warning 211: possibly unintended assignment
F:\Samp server\gamemodes\BalkanKingRP.pwn(10761) : error 017: undefined symbol "goverment"



Re: help with ZCMD - silverms - 02.03.2017

PHP код:
CMD:cmds(playeridparams[])
{
    return 
cmd_commands(playeridparams);
}
CMD:commands(playeridparams[])
{
        return 
1;

try this it should work


Re: help with ZCMD - andrejc999 - 02.03.2017

nah still doesn't work...

EDIT:nvm it does thx...


Re: help with ZCMD - silverms - 02.03.2017

okay good np