04.02.2016, 13:46
My code is like:
OnPlayerUpdate(playerid)
if(pWeapon[3] = 25 &&GetPlayerWeapon(playerid) != 25)
{
SetPlayerAttachedObject(...);//attach shotgun
}
if(pWeapon[4] = 29 &&GetPlayerWeapon(playerid) != 29)
{
SetPlayerAttachedObject(...);//attach mp5
}
but when I have both guns and not holding any of them... It only attach mp5.
OnPlayerUpdate(playerid)
if(pWeapon[3] = 25 &&GetPlayerWeapon(playerid) != 25)
{
SetPlayerAttachedObject(...);//attach shotgun
}
if(pWeapon[4] = 29 &&GetPlayerWeapon(playerid) != 29)
{
SetPlayerAttachedObject(...);//attach mp5
}
but when I have both guns and not holding any of them... It only attach mp5.

