Parachute Command! +REP
#1

Hello!

Im just wondering how i can make a command that gives someone a parachute!

Like /parachute

or for short /para

In the format for example like the command below!

Quote:

if(strcmp(cmdtext,"/exit",true)==0) {
if(IsInGunShop[playerid] == 1) {
if( GetPlayerInterior(playerid) != 0 ) {
IsInGunShop[playerid] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);

if(GunShopID[playerid] == 1) {
SetPlayerPos(playerid, 777.4450+2,1871.4246+10,4.9067);
}
if(GunShopID[playerid] == 2) {
SetPlayerPos(playerid, -315.0909,828.4446,15.2422);
}
if(GunShopID[playerid] == 3) {
SetPlayerPos(playerid, -310.8963,1768.0930,43.6406);
}
if(GunShopID[playerid] == 4) {
SetPlayerPos(playerid, -604.3909+2,2716.7764+10,72.7231);
}
if(GunShopID[playerid] == 7 ) {
SetPlayerPos(playerid, -286.3451,2693.2859,62.6875);
}
if(GunShopID[playerid] == 6 ) {
SetPlayerPos(playerid, -181.6294,1166.3633,19.7500);
}

GunShopID[playerid] = 0;
}
}
return 1;
}

Reply
#2

pawn Код:
if (strcmp("/para", cmdtext, true, 10) == 0)
    {
        GivePlayerWeapon(playerid, 46, 1);
        return 1;
    }
pawn Код:
if(GunShopID[playerid] == 7 ) {
        GivePlayerWeapon(playerid, 46, 1);
}
Reply
#3

Quote:
Originally Posted by Oscii
Посмотреть сообщение
Hello!

Im just wondering how i can make a command that gives someone a parachute!

Like /parachute

or for short /para

In the format for example like the command below!
pawn Код:
if(!strcmp(cmdtext, "/para", true))
{
        GivePlayerWeapon(playerid, 46, 1); //Give playerid parachute
        return 1;
}
Reply
#4

Thank you very much!,

Now i know how to do these commands!

+rep for you two.
Reply
#5

Quote:
Originally Posted by Oscii
Посмотреть сообщение
Thank you very much!,

Now i know how to do these commands!

+rep for you two.
Here's a list of weapon ID's for you.

https://sampwiki.blast.hk/wiki/Weapons

Ps: The rep thingy won't be added because you have less then 50 posts lol.
-FalconX
Reply
#6

Quote:
Originally Posted by FalconX
Посмотреть сообщение
Ps: The rep thingy won't be added because you have less then 50 posts lol.
-FalconX
^ He's right.

FalconX,lol'd at your Location.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)