weapon info cmd
#6

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
Reply


Messages In This Thread
weapon info cmd - by Dark-X - 05.09.2008, 18:58
Re: weapon info cmd - by Joe Staff - 05.09.2008, 19:25
Re: weapon info cmd - by Dark-X - 05.09.2008, 19:40
Re: weapon info cmd - by Nero_3D - 05.09.2008, 20:09
Re: weapon info cmd - by Dark-X - 05.09.2008, 20:32
Re: weapon info cmd - by Nero_3D - 05.09.2008, 22:01
Re: weapon info cmd - by Dark-X - 05.09.2008, 22:58
Re: weapon info cmd - by Horus - 11.03.2009, 19:12
Re: weapon info cmd - by MenaceX^ - 11.03.2009, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)