SA-MP Forums Archive
Help with Weapon! - 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: Help with Weapon! (/showthread.php?tid=428855)



Help with Weapon! - Configuration - 07.04.2013

i need help with weapon if player spwn get weapon and if he death and spawn again dont see more Dialog.


Re: Help with Weapon! - Desi_Dude - 07.04.2013

Can you explain more and show us the code perhaps? if any.


Re: Help with Weapon! - BigGroter - 07.04.2013

Just add GivePlayerWeapon(); under OnPlayerSpawn();
I'm on my phone so I can't really show you.


Re: Help with Weapon! - Configuration - 07.04.2013

i dont know how to explain that :/


Re: Help with Weapon! - ReVo_ - 07.04.2013

Ok, i understand you and you should be more specific (You first talk about a generic weapon then of a dialog)

top:
Код:
new bool:playerHaveWeapon[MAX_PLAYERS] = {false, ...};
OnPlayerSpawn
Код:
if (!playerHaveWeapon[playerid]) {
// Show the dialog
playerHaveWeapon [playerid] = true;
}
If you want to let the player to re-choose his weapons change playerHaveWeapon to false.