Quote:
Originally Posted by ♣ ⓐⓢⓢ
maybe try that
pawn Код:
new WeapAmmo[2], name[24], string[128]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s's Weapons:", name); for(new w = 0; w < 13; w++) { GetPlayerWeaponData(playerid, w, WeapAmmo[0], WeapAmmo[1]); if(WeapAmmo[0] == 0) continue; GetWeaponName(WeapAmmo[0], name, sizeof(name)); format(string, sizeof(string), "%s %s(%d),", string, name, WeapAmmo[1]); } string[strlen(string)-1] = 0; SendClientMessage(playerid, COLOR_WHITE, string);
dont know if that will work
|
I am not sure if 13 is the maximum of holding guns.
Yes, it is. My bad.