How To Use ZCMD [ My First Tutorial] -
TahaAsif12 - 08.11.2013
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!
Re: How To Use ZCMD [ My First Tutorial] -
coool - 08.11.2013
Why u said use sscanf and you not used any functions of sscanf?
Re: How To Use ZCMD [ My First Tutorial] -
PakistaniBaba - 08.11.2013
Mate , You give guide that "How we make COMMAND's by ZCMD"
This is not uses of ZCMD *LOl*
Re: How To Use ZCMD [ My First Tutorial] -
TahaAsif12 - 09.11.2013
Quote:
Originally Posted by PakistaniBaba
Mate , You give guide that "How we make COMMAND's by ZCMD"
This is not uses of ZCMD *LOl*
|
LOL. This is ZCMD cmds! i think u have no sense about ZCMD
Re: How To Use ZCMD [ My First Tutorial] -
PakistaniBaba - 09.11.2013
Quote:
Originally Posted by TahaAsif12
LOL. This is ZCMD cmds! i think u have no sense about ZCMD
|
Lol , First read your TOPIC NAME
You dont know ENGLISH lOl!!