[Tutorial] How To Use ZCMD [ My First Tutorial]
#1

Hey Guys, I Am here with my first tutorial about how to use ZMCD.

Downloaded ZCMD? But dont know how to use it?? Well, im gonna tell u my best.

i prefer to use sscnf too.


So first, we areg onna make some defines.

Код:
//put these on top of ur script!
#include a_samp // this is the main include in scripting
#include zmcd //this is the define which will use zcmd in script
#include sscanf2 //it loads sscanf
Now, ill tell u a simple cmd, like /healme!

Код:
//put this anywhere in ur script:

CMD:healme(playerid, params[]) // this will tell the server the cmd to heal
{ //opening brackets
SetPlayerHealth(playerid, 100); //this function will set the player's health to 100 whoever uses this cmd
return 1; //this is the return
} //closing brackets
Was'nt it easy? now if u want this cmd only be usable my RCON login admins?
Here u get it

CMD:healme(playerid, params[]) // this will tell the server the cmd to heal
{//opening brackets
If(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You Are Not Authorized To Use This Command!"); //this will check if the player is admin or not
SetPlayerHealth(playerid, 100); //this function will set the player's health to 100 whoever uses this cmd
return 1; //this is the return
} //closing brackets[/CODE]

Done! look its so easy!

i tried my best to teach u something even if im also not a good scripter.
remember to rep!

Have fun!
Reply


Messages In This Thread
How To Use ZCMD [ My First Tutorial] - by TahaAsif12 - 08.11.2013, 15:29
Re: How To Use ZCMD [ My First Tutorial] - by coool - 08.11.2013, 16:30
Re: How To Use ZCMD [ My First Tutorial] - by PakistaniBaba - 08.11.2013, 17:24
Re: How To Use ZCMD [ My First Tutorial] - by TahaAsif12 - 09.11.2013, 04:11
Re: How To Use ZCMD [ My First Tutorial] - by PakistaniBaba - 09.11.2013, 07:27

Forum Jump:


Users browsing this thread: 1 Guest(s)