31.03.2017, 13:28
Quote:
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]); } |
Код:
for (new i, weapon, ammo; i <= 12; i++) { GetPlayerWeaponData(playerid, i, weapon, ammo); //send a message here maybe }