SA-MP Forums Archive
[HELP]Weapons Problem! - 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]Weapons Problem! (/showthread.php?tid=660884)



[HELP]Weapons Problem! - murilo2929 - 16.11.2018

hello guys, so I have a problem with my GM that when I try to get any gun it disappears, I try to give it to me or to get it in the Org locker it appears for about 2 sec in the hand and disappears.


Re: [HELP]Weapons Problem! - Heress - 16.11.2018

Eh...We need some code...


Re: [HELP]Weapons Problem! - murilo2929 - 16.11.2018

Quote:
Originally Posted by Heress
Посмотреть сообщение
Eh...We need some code...
What type of code? because i don't use FS, all is in GM


Re: [HELP]Weapons Problem! - UFF - 16.11.2018

use ResetPlayerWeapons(playerid); before giving any weapon, or check whether does it resetplayerweapon after giving player the weapon.


Re: [HELP]Weapons Problem! - Mencent - 16.11.2018

Hello!

Do you have a timer which disappears your weapons?
Search in your gamemode "ResetPlayerWeapons" and "SetPlayerArmedWeapon".
Show us the code when you think it's this.

Best regards


Re: [HELP]Weapons Problem! - murilo2929 - 16.11.2018

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Do you have a timer which disappears your weapons?
Search in your gamemode "ResetPlayerWeapons" and "SetPlayerArmedWeapon".
Show us the code when you think it's this.

Best regards
i found alot of SetPlayerArmedWeapon and ResetPlayerWeapons.


Re: [HELP]Weapons Problem! - Mencent - 16.11.2018

I thought that but you have to check wheather one of that will be used after you get a weapon.
Look where you use this and check wheather it makes sense in this case. You can ask when you are the opinion that this is the right code.


Re: [HELP]Weapons Problem! - murilo2929 - 16.11.2018

Quote:
Originally Posted by Mencent
Посмотреть сообщение
I thought that but you have to check wheather one of that will be used after you get a weapon.
Look where you use this and check wheather it makes sense in this case. You can ask when you are the opinion that this is the right code.
you can add me on discord? Estrela#2822
and i share my screen with you, ty.


Re: [HELP]Weapons Problem! - Mencent - 16.11.2018

Sorry, I don't use discord.

Look in your gamemode wheather you use a timer and one of these commands (SetPlayerArmedWeapon or ResetPlayerWeapons) in this timer.
Also you can check in OnPlayerUpdate or something like this callbacks wheather you use one of the both commands.
When you are the opinion that you found the right code you can show us this and we can help you.