PDA

View Full Version : Auto Parachute


jeffery30162
27/03/2015, 03:56 AM
How can I stop The player from receiving the free parachute when exiting aircraft?

Aly
27/03/2015, 05:09 AM
You can try to remove it:


ResetPlayerWeaponsEx(playerid, 46); // 46 - Parachute ID

HydraHumza
27/03/2015, 10:36 AM
GivePlayerWeapon(playerid, 46

Search it in ur gm and remove it

jeffery30162
27/03/2015, 06:38 PM
its in the san andreas game to automatically give the player A parachute

Aly
27/03/2015, 06:39 PM
Have you used this?

ResetPlayerWeaponsEx(playerid, 46); // 46 - Parachute ID

jeffery30162
27/03/2015, 06:45 PM
no, does it remove only parachute?

Aly
27/03/2015, 06:45 PM
Yes .

jeffery30162
27/03/2015, 06:47 PM
ok im going to try it

jeffery30162
27/03/2015, 06:50 PM
no this removes all player weapons except ones specified, umm have to do a bit of work to get this to work with my anti cheat/ server side weapons

Aly
27/03/2015, 06:56 PM
Then use this:


stock RemoveWeaponFromSlot(playerid, iWeaponSlot)
{
new wps[13][2];
for(new i = 0; i < 13; i++)
GetPlayerWeaponData(playerid, i, wps[i][0], wps[i][1]);

wps[iWeaponSlot][0] = 0;

ResetPlayerGuns(playerid);

for(new i = 0; i < 13; i++)
GivePlayerGun(playerid, wps[i][0], wps[i][1]);

return 1;
}

RemoveWeaponFromSlot(playerid, 11);

Konstantinos
27/03/2015, 07:05 PM
http://forum.sa-mp.com/showpost.php?p=2681339&postcount=9