26.04.2017, 15:51
Hello guys, Good day.
I have been working on a new project in which we can make commands In-Game itself. There are many people who don't know to script or try to learn but fail to do so. So, i am making this include.
Features of this basic version:
You can create 10 commands.
You can edit their Health, Armour.
You can set the weapons and ammo ( MAX SLOTS 5 )
Everything can be edited.
How to use this include and filterscript?
First of all. Download the include file from the below given link.
Move it to your pawno's include folder.
Now, download the filterscript from the below given link.
Move it to your filterscript folder.
Add the filterscript name to the server.cfg and you are done.
How to make new commands?
You just need to add this 3 lines in the filterscript. Let me go step by step.
Let me explain all the lines step wise.
This is made using ZCMD command processor. You must enter your command name in place of "cmdname".
Ingame when you type /editcommand, To edit this command you need to Select Command 1.
This is where the include works. Everything is already been set. So you don't need to worry.
NOTE: Add this command in "ingame" filterscript.
Example coding:
Now after doing this compile your filterscript. And go ingame.
After going ingame.
Follow this steps:
1) RCON LOGIN
2) After successful RCON Login, type command /editcommand.
3) Now choose "COMMAND 1"
4) Now choose "Health"
5) Enter amount, since we are setting health for "/halfhealth" write amount 50.
6) Press Enter.
Now type : /halfhealth
Your health will be set to 50.
This is how you can make any kind of command. Right now the include is limited to:
Health
Armour
Weapon
Later in future when i upload the advance version you will be able to do the following or more:
Health
Armour
Weapon
Message
Vehicle
Checkpoint
Pickup
Position
Interior
Virtual World
and alot more.
Phases
What are Phases?
After you created a checkpoint, What must happen when you enter the checkpoint is Phase 1.
This include will allow you do create as many phases you want. So, that you can make any kind of difficult command easily.
Download links:
ingamecmd.inc
Ingame.pwn
Ingame.amx
Please suggest me any kind of addition.
If any bugs or any queries just post down or PM me directly.
And let me know if i must make the advance version of this include or not.
Why may you use this to make commands?
Well, many of the players have difficulty in scripting. This command will help them to make any command with just 3 lines of codes. And they can edit it ingame by just 1 command ( /editcommand ). Making the work alot easier.
Thank you.
I have been working on a new project in which we can make commands In-Game itself. There are many people who don't know to script or try to learn but fail to do so. So, i am making this include.
Features of this basic version:
You can create 10 commands.
You can edit their Health, Armour.
You can set the weapons and ammo ( MAX SLOTS 5 )
Everything can be edited.
How to use this include and filterscript?
First of all. Download the include file from the below given link.
Move it to your pawno's include folder.
Now, download the filterscript from the below given link.
Move it to your filterscript folder.
Add the filterscript name to the server.cfg and you are done.
How to make new commands?
You just need to add this 3 lines in the filterscript. Let me go step by step.
Code:
CMD:cmdname(playerid,params[]) { main_cmdnumber = 1; ingamecmd_Response(playerid); return 1; }
Code:
CMD:cmdname(playerid,params[])
Code:
main_cmdnumber = 1;
Code:
ingamecmd_Response(playerid);
NOTE: Add this command in "ingame" filterscript.
Example coding:
Code:
CMD:halfhealth(playerid,params[]) //MY COMMAND NAME IS /health { main_cmdnumber = 1; //COMMAND NUMBER is 1 ingamecmd_Response(playerid); // INCLUDE FUNCTION. ( DONT CHANGE ) return 1; }
After going ingame.
Follow this steps:
1) RCON LOGIN
2) After successful RCON Login, type command /editcommand.
3) Now choose "COMMAND 1"
4) Now choose "Health"
5) Enter amount, since we are setting health for "/halfhealth" write amount 50.
6) Press Enter.
Now type : /halfhealth
Your health will be set to 50.
This is how you can make any kind of command. Right now the include is limited to:
Health
Armour
Weapon
Later in future when i upload the advance version you will be able to do the following or more:
Health
Armour
Weapon
Message
Vehicle
Checkpoint
Pickup
Position
Interior
Virtual World
and alot more.
Phases
What are Phases?
After you created a checkpoint, What must happen when you enter the checkpoint is Phase 1.
This include will allow you do create as many phases you want. So, that you can make any kind of difficult command easily.
Download links:
ingamecmd.inc
Ingame.pwn
Ingame.amx
Please suggest me any kind of addition.
If any bugs or any queries just post down or PM me directly.
And let me know if i must make the advance version of this include or not.
Why may you use this to make commands?
Well, many of the players have difficulty in scripting. This command will help them to make any command with just 3 lines of codes. And they can edit it ingame by just 1 command ( /editcommand ). Making the work alot easier.
Thank you.