SA-MP Forums Archive
ZCMD Not working - 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 Not working (/showthread.php?tid=355642)



ZCMD Not working - PaulDinam - 30.06.2012

i started new gamemode with zcmd
but when i add command it doesn't works..


COMMAND:heal(playerid, params[])
{
SendClientMessage(COLOR_WHITE, playerid, "Healed!");
SetPlayerHealth(playerid, 100.00); // Set players health
return true;
}


Re: ZCMD Not working - Yuryfury - 30.06.2012

What errors do you get? You should get at least one warning (params is never used). Is it placed outside all other call backs?


Re: ZCMD Not working - Toreno - 30.06.2012

Don't forget SendClientMessage, playerid comes before color.


Re: ZCMD Not working - kaiks - 30.06.2012

Yup,
pawn Code:
SendClientMessage(COLOR_WHITE, "Healed!", playerid);
or
pawn Code:
SendClientMessage(playerid, COLOR_WHITE, "Healed!");