Making commands In-Game ( BASIC REVIEW ) -
JohnBlaze1971 - 26.04.2017
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.
Code:
CMD:cmdname(playerid,params[])
{
main_cmdnumber = 1;
ingamecmd_Response(playerid);
return 1;
}
Let me explain all the lines step wise.
Code:
CMD:cmdname(playerid,params[])
This is made using ZCMD command processor. You must enter your command name in place of "cmdname".
Code:
main_cmdnumber = 1;
Ingame when you type /editcommand, To edit this command you need to Select Command 1.
Code:
ingamecmd_Response(playerid);
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:
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;
}
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.
Re: Making commands In-Game ( BASIC REVIEW ) -
JohnBlaze1971 - 26.04.2017
I have uploaded this at a wrong place. Any moderator can move this to this section
http://forum.sa-mp.com/forumdisplay.php?f=83 Thank you.
Re: Making commands In-Game ( BASIC REVIEW ) -
ElMaestro123 - 26.04.2017
This is totally unneeded.
Re: Making commands In-Game ( BASIC REVIEW ) -
JohnBlaze1971 - 26.04.2017
It allows players to make commands without writing codes. How can it be unnecessary ?
Re: Making commands In-Game ( BASIC REVIEW ) -
khRamin78 - 26.04.2017
and why we should need that ?
Re: Making commands In-Game ( BASIC REVIEW ) -
Vin Diesel - 26.04.2017
Greatly Done. +rep.
Re: Making commands In-Game ( BASIC REVIEW ) -
jlalt - 26.04.2017
Quote:
Originally Posted by JohnBlaze1971
It allows players to make commands without writing codes. How can it be unnecessary ?
|
Because its features limited.
You may add the whole possibilitys to script, so player will script whatever he wants to [ supporting all sa-mp functions ]
Re: Making commands In-Game ( BASIC REVIEW ) -
JohnBlaze1971 - 27.04.2017
Well, i think you have read the whole post. I am going to make the advance version of this, if players want me to. Which will have almost each and every function present in samp.
Even commands that needs params can be made by it.
Re: Making commands In-Game ( BASIC REVIEW ) -
iLearner - 27.04.2017
Nahhhhh you can only make basic commands with that thing, veeeeery basic.
and besides most of server developers around know how to script with pawn... Pretty easy as language.
Re: Making commands In-Game ( BASIC REVIEW ) -
Pottus - 27.04.2017
1-star there is nothing here of any real value. I would flag this to be deleted but is barely good enough not to.
Re: Making commands In-Game ( BASIC REVIEW ) -
ShaharG - 27.04.2017
nice cript,
pleas leave me a rep by clicking the star