SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   ZCMD Not working (https://forum.sa-mp.com/showthread.php?t=355642)

PaulDinam 30/06/2012 08:02 PM

ZCMD Not working
 
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;
}

Yuryfury 30/06/2012 08:08 PM

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

Toreno 30/06/2012 09:00 PM

Re: ZCMD Not working
 
Don't forget SendClientMessage, playerid comes before color.

kaiks 30/06/2012 09:11 PM

Re: ZCMD Not working
 
Yup,
pawn Code:
SendClientMessage(COLOR_WHITE, "Healed!", playerid);
or
pawn Code:
SendClientMessage(playerid, COLOR_WHITE, "Healed!");


All times are GMT. The time now is 05:57 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.