Need Help With Weapons - 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: Need Help With Weapons (
/showthread.php?tid=516008)
Need Help With Weapons -
Vaishnav - 29.05.2014
hi guys,
My problem is I am making a Minigame and when he join the minigame it gives a Dialog to the player and in the dialog he can choose weapon sets but after death his weapon set get reset I just want to save the player weapon set..
Please someone Help :\
Re: Need Help With Weapons -
Ciandlah - 29.05.2014
here you can choose what weapons and It also saves too
https://sampforum.blast.hk/showthread.php?tid=284749
Kinds Regards
Ciandlah
Please use search tab next time before asking
Re: Need Help With Weapons -
Vaishnav - 29.05.2014
lol ? I already searched I don't want this bro I want just it save the player weapon in minigame and when left the minigame it don't save it :\ ... btw thanks for the help
Re: Need Help With Weapons -
Ciandlah - 29.05.2014
Then give him the weapon he needs and when he leaves the mini game
Код:
ResetPlayerWeapons(playerid);
Kind Regards
Ciandlah
Re: Need Help With Weapons -
Vaishnav - 29.05.2014
ugh bro u r not understanding me read my first post pls.
Re: Need Help With Weapons -
Ciandlah - 29.05.2014
Your not making sense; I am answering to what you are requesting what you want.
Re: Need Help With Weapons -
Vaishnav - 29.05.2014
I can't understand :\
Re: Need Help With Weapons -
Rittik - 29.05.2014
Under OnPlayerSpawn
Код:
if(inMini[playerid]==1)
{
SetPlayerPos(playerid,x,y,z); //coordinates according to the mini game position.
if(wslot1[playerid]==1)
{
GivePlayerWeapon(playerid,weaponid,ammo); //according to the weapon in slot 1, you have to add weapons according to slot.
}
}