ArmedWeapon function appears to be not working
#1

I got this weird bug with ArmedWeapon func, i tried it on state change/onplayerupdate to set to FISTS but none of them worked, it justs keeps holding tec9, anyone know why?


P.S it works on other mode with the same 2ways.
Reply
#2

Bumpty bump
Reply
#3

Post the functions script plx.
Reply
#4

ArmedWeapon function doesn't seem to be an Official function? Atleas https://sampwiki.blast.hk/wiki/ArmedWeapon does not exist.

If you're using a third-party include to have this function, post In that release-topic to get support.
Reply
#5

Is this the function your reffering to?

pawn Код:
GetPlayerArmedWeapon(playerid) == /*Wep id*/)
  {
              //Do somthing here.. like mstrbte.
  }
Reply
#6

You got to be kidding me right?,

SetPlayerArmedWeapon is the function if you didn't realize it.

pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerArmedWeapon(playerid,0);
}
return 1;
}
This doesn't work, tho it works on my other gamemode with the same code
Reply
#7

i dont think you can set player armed weapon to 0 while they are in car.
Reply
#8

Weapon data, except those of SMG's & other window weapons, isn't updated whilst in a vehicle.
Reply
#9

O rly? cause it works in my other script perfectly.
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)