31.03.2017, 11:31
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:
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]); }