20.01.2015, 13:00
hello everybody, this newbie scripters tutorial for scripting with zcmd.
Steps for using zcmd:
1. You must download the include of zcmd Here http://sampff.weebly.com/download.html, press f3 and type ZCMD.inc .
2. Add the "Zcmd.inc" file to pawno\include.
3. Include the zcmd by type #include <zcmd> at top of pawno.
Okey, now the steps of scripting with zcmd.
1. To script you need to do this
What is "my codes"?
All new scripters ( i'm one of them lmao ) asks why all scripters type on tutorials "My codes" and what is this?
let me give an example what is this.
examples:
and to send a message to cmd typer you must do this.
and here you done, imma make full command.
Credits:
Thanks to Zeekx for ZCMD
Description:
Sorry for my bad english, i'm just beginer scripter sorry if there any mistake ( i don't think there is ).
This is my first release.
Steps for using zcmd:
1. You must download the include of zcmd Here http://sampff.weebly.com/download.html, press f3 and type ZCMD.inc .
2. Add the "Zcmd.inc" file to pawno\include.
3. Include the zcmd by type #include <zcmd> at top of pawno.
Okey, now the steps of scripting with zcmd.
1. To script you need to do this
pawn Code:
CMD:mycommand(playerid, params[])
{
//my codes
return 1;
}
All new scripters ( i'm one of them lmao ) asks why all scripters type on tutorials "My codes" and what is this?
let me give an example what is this.
examples:
pawn Code:
SetPlayerHealth(playerid, amount);
SetPlayerArmor(playerid, amount);
PutPlayerInVehicle(playerid, seatid);
pawn Code:
SendClientMessage(playerid, COLORYOUWANT, " test command ");
pawn Code:
CMD:healme(playerid, params[]) // thats first setup
{
SetPlayerHealth(playerid, 100); // this is the second setup "mycodes"
SendClientMessage(playerid, -1, " You has been healed ");
return 1;
}
// the " } " depands in how many " { " there is in the command. if you add two " { " and close with one " } " it will give you alot of errors.
Thanks to Zeekx for ZCMD
Description:
Sorry for my bad english, i'm just beginer scripter sorry if there any mistake ( i don't think there is ).
This is my first release.