11.12.2014, 13:09
pawn Код:
stock GetAllPlayerWeapons(playerid)
{
new fstr[175], count, weapons[13][2];
for(new w = 0; w < 13; w++)
{
GetPlayerWeaponData(playerid, w, weapons[w][0], weapons[w][1]);
if(weapons[w][0])
{
new str[21];
GetWeaponName(weapons[w][0], str, sizeof(str));
format(str, sizeof(str), ((count) ? (", %s") : ("%s")), str);
strcat(fstr, str);
count++;
}
}
return fstr;
}
pawn Код:
SendClientMessage( ADMIN, -1, GetAllPlayerWeapons( TARGET ));