SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/06/2012, 08:02 PM   #1
PaulDinam
Gangsta
 
Join Date: Jun 2011
Posts: 887
Reputation: 45
Default 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;
}
PaulDinam is offline   Reply With Quote
Old 30/06/2012, 08:08 PM   #2
Yuryfury
Huge Clucker
 
Join Date: Sep 2008
Posts: 250
Reputation: 26
Default 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?
Yuryfury is offline   Reply With Quote
Old 30/06/2012, 09:00 PM   #3
Toreno
Gangsta
 
Join Date: Nov 2010
Posts: 725
Reputation: 41
Default Re: ZCMD Not working

Don't forget SendClientMessage, playerid comes before color.
Toreno is offline   Reply With Quote
Old 30/06/2012, 09:11 PM   #4
kaiks
Big Clucker
 
kaiks's Avatar
 
Join Date: Jul 2009
Location: Big Smoke's
Posts: 72
Reputation: 3
Default Re: ZCMD Not working

Yup,
pawn Code:
SendClientMessage(COLOR_WHITE, "Healed!", playerid);
or
pawn Code:
SendClientMessage(playerid, COLOR_WHITE, "Healed!");
kaiks is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Commands not working with ZCMD JRISETH Scripting Help 2 03/05/2012 08:59 AM
ZCMD NOT WORKING! SkiT'aZ Scripting Help 10 21/01/2012 02:26 PM
Working ZCMD /invite No Fear Scripting Help 6 03/01/2012 10:37 AM
ZCMD Siren Not Working Smithy Scripting Help 1 30/11/2011 12:09 PM
MoveObject not working (zcmd) [NTX]MikeQ Help Archive 5 01/06/2010 07:04 PM


All times are GMT. The time now is 03:41 AM.


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