Add a new command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Add a new command (
/showthread.php?tid=432860)
Add a new command -
alimash - 24.04.2013
Hello
I need help for add a new command for my GM
I want when someone type /para he take a parachute
Please someone help me to script that
Thank you so much
( 2.how can i see the weapons ids for make a script for them ? )
Re: Add a new command -
DaRk_RaiN - 24.04.2013
Assuming you use ZCMD
pawn Код:
CMD:para(playerid, params[])
{
SendClientMessage(playerid, -1, "Parachute given" );
GivePlayerWeapon(playerid, 46, 500);
return 1;
}
If not use:
pawn Код:
if(!strcmp(cmdtext, "/para"))
{
SendClientMessage(playerid, -1, "Parachute given" );
GivePlayerWeapon(playerid, 46, 500);
return 1;
}
For weapon ids
Click
Re: Add a new command -
rpg894 - 24.04.2013
How the hell you 've got 10 rep points while not being able to write a 3 lines code to get a parachute??
Re: Add a new command -
XStormiest - 24.04.2013
OFFTOPIC:he is mapper, anyway : that's because mappers not scripts too much things , they just make maps, and convert them with a converter
ontopic: learn the basics functions
sa-mp wiki can be your friend ...
Re: Add a new command -
zT KiNgKoNg - 24.04.2013
Its not the skill the person has, It is the popularity he has and people like him seeing by your amount of reputation was 1 and is now 0 so think before you post my friend.
@Alimash If you would like to learn how to script try the scripting help section sometimes you may find out some new things that you didn't know before, Also good luck learning pal
Re: Add a new command -
alimash - 24.04.2013
Quote:
Originally Posted by rpg894
How the hell you 've got 10 rep points while not being able to write a 3 lines code to get a parachute??
|
Im a mapper and i was not sure how to make that CMD
-Im helping people in pm's for their server
-Some times making a vip maps
-Im working in client support
-...
Got it ?
Quote:
Originally Posted by zT KiNgKoNg
Its not the skill the person has, It is the popularity he has and people like him seeing by your amount of reputation was 1 and is now 0 so think before you post my friend.
@Alimash If you would like to learn how to script try the scripting help section sometimes you may find out some new things that you didn't know before, Also good luck learning pal
|
Yes . I really want it
Quote:
Originally Posted by XStormiest
OFFTOPIC:he is mapper, anyway : that's because mappers not scripts too much things , they just make maps, and convert them with a converter
ontopic: learn the basics functions
sa-mp wiki can be your friend ...
|
Nice reply thank you so much
Quote:
Originally Posted by DaRk_RaiN
Assuming you use ZCMD
pawn Код:
CMD:para(playerid, params[]) { SendClientMessage(playerid, -1, "Parachute given" ); GivePlayerWeapon(playerid, 46, 500); return 1; }
If not use:
pawn Код:
if(!strcmp(cmdtext, "/para")) { SendClientMessage(playerid, -1, "Parachute given" ); GivePlayerWeapon(playerid, 46, 500); return 1; }
For weapon ids Click
|
Thank you so much +rep