GetPlayerWeapon/GetPlayerWeaponData
#2

GetPlayerWeapon give you the ID of the currently holding weapon by the player (https://sampwiki.blast.hk/wiki/GetPlayerWeapon) and GetPlayerWeaponData give you informations with details (https://sampwiki.blast.hk/wiki/GetPlayerWeaponData)
Code from the wiki to get a list of all player's weapon:
Код:
new weapons[13][2];
 
for (new i = 0; i <= 12; i++)
{
    GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
Reply


Messages In This Thread
GetPlayerWeapon/GetPlayerWeaponData - by LeeXx - 31.03.2017, 11:04
Re: GetPlayerWeapon/GetPlayerWeaponData - by Dayrion - 31.03.2017, 11:31
Re: GetPlayerWeapon/GetPlayerWeaponData - by GoldenLion - 31.03.2017, 13:28
Re: GetPlayerWeapon/GetPlayerWeaponData - by LeeXx - 31.03.2017, 18:40
Re: GetPlayerWeapon/GetPlayerWeaponData - by Jefff - 01.04.2017, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)