Display weapon id/name and ammo in /spec?
#1

I have tried this, but it showed [] (blank)

I really need this urgently, and I have no clue how to do that. It would be better if I can get weapon name and not ID:

pawn Код:
new weapons[13][2];
new weapdata[MAX_PLAYERS];
for (new i = 0; i <= 12; i++)
{
        weapdata[player] = GetPlayerWeaponData(player, i, weapons[i][0], weapons[i][1]);
}
format(tdstring,sizeof(tdstring),"[~r~%s~w~]", weapdata[player]);
Reply


Messages In This Thread
Display weapon id/name and ammo in /spec? - by MythicalMarauder - 12.12.2014, 09:25
Re: Display weapon id/name and ammo in /spec? - by Matess - 12.12.2014, 09:33
Re: Display weapon id/name and ammo in /spec? - by MythicalMarauder - 12.12.2014, 09:44
Re: Display weapon id/name and ammo in /spec? - by Write - 12.12.2014, 10:14
Re: Display weapon id/name and ammo in /spec? - by MythicalMarauder - 12.12.2014, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)