How can i find if a player has a weapon ?
#4

Код:
new weapons[13][2];
for (new i = 0; i < 13; i++)
{
    GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
to get the weapon data.

Source: https://sampwiki.blast.hk/wiki/GetPlayerWeaponData

Then check this out

https://sampwiki.blast.hk/wiki/Weapons

And use

Код:
if(weapons[input the weapon slot here][0] == weapon id)
{
        //do something
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)