Auto Parachute - 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: Auto Parachute (
/showthread.php?tid=568997)
Auto Parachute -
jeffery30162 - 27.03.2015
How can I stop The player from receiving the free parachute when exiting aircraft?
Re: Auto Parachute -
Aly - 27.03.2015
You can try to remove it:
Код:
ResetPlayerWeaponsEx(playerid, 46); // 46 - Parachute ID
Re: Auto Parachute -
HydraHumza - 27.03.2015
Quote:
GivePlayerWeapon(playerid, 46
|
Search it in ur gm and remove it
Re: Auto Parachute -
jeffery30162 - 27.03.2015
its in the san andreas game to automatically give the player A parachute
Re: Auto Parachute -
Aly - 27.03.2015
Have you used this?
Код:
ResetPlayerWeaponsEx(playerid, 46); // 46 - Parachute ID
Re: Auto Parachute -
jeffery30162 - 27.03.2015
no, does it remove only parachute?
Re: Auto Parachute -
Aly - 27.03.2015
Yes .
Re: Auto Parachute -
jeffery30162 - 27.03.2015
ok im going to try it
Re: Auto Parachute -
jeffery30162 - 27.03.2015
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
Re: Auto Parachute -
Aly - 27.03.2015
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);
Re: Auto Parachute -
Konstantinos - 27.03.2015
http://forum.sa-mp.com/showpost.php?...39&postcount=9