Add a new command
#1

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 ? )
Reply
#2

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
Reply
#3

How the hell you 've got 10 rep points while not being able to write a 3 lines code to get a parachute??
Reply
#4

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 ...
Reply
#5

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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)