Need Help . lost weapon when out car ?
#4

I think the problem is from SetPlayerWeaponEx function, as you said the player lost their weapons when they leave a vehicle.
Maybe, show us SetPlayerWeaponEx() function?
and use pastebin next time if you want to post long code.
Код:
if(oldstate == PLAYER_STATE_DRIVER)
{
	if (_vhudVisible[playerid] == 1)
	{
		HideSpeedo(playerid); // incase vehicle despawns
	}
	if (CarRadars[playerid] > 0)
	{
		PlayerTextDrawHide(playerid, _crTextTarget[playerid]);
		PlayerTextDrawHide(playerid, _crTextSpeed[playerid]);
		PlayerTextDrawHide(playerid, _crTickets[playerid]);
		DeletePVar(playerid, "_lastTicketWarning");
	}

	SetPlayerWeaponsEx(playerid);
}
else if(oldstate == PLAYER_STATE_PASSENGER) SetPlayerWeaponsEx(playerid);
Reply


Messages In This Thread
Need Help . lost weapon when out car ? - by ongnung147 - 01.11.2016, 13:21
Re: Need Help . lost weapon when out car ? - by iLearner - 01.11.2016, 13:54
Re: Need Help . lost weapon when out car ? - by ongnung147 - 01.11.2016, 14:12
Re: Need Help . lost weapon when out car ? - by X337 - 01.11.2016, 14:29
Re: Need Help . lost weapon when out car ? - by ongnung147 - 01.11.2016, 14:43
Re: Need Help . lost weapon when out car ? - by X337 - 01.11.2016, 14:52
Re: Need Help . lost weapon when out car ? - by ongnung147 - 02.11.2016, 04:54
Re: Need Help . lost weapon when out car ? - by iLearner - 02.11.2016, 06:57
Re: Need Help . lost weapon when out car ? - by ongnung147 - 02.11.2016, 09:51
Re: Need Help . lost weapon when out car ? - by ongnung147 - 02.11.2016, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)