01.11.2016, 14:29
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.
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);