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; } |
if (strcmp("/para", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
if(GunShopID[playerid] == 7 ) {
GivePlayerWeapon(playerid, 46, 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! |
if(!strcmp(cmdtext, "/para", true))
{
GivePlayerWeapon(playerid, 46, 1); //Give playerid parachute
return 1;
}
Thank you very much!,
Now i know how to do these commands! +rep for you two. |
Ps: The rep thingy won't be added because you have less then 50 posts lol.
-FalconX |