10.07.2015, 17:26
Well I did a little code and that's the problem why I'm asking cuz I can't figure out on my own, I tried on really simple way and it shows only one 1 weapon even I'm holding three of them so yeah what I want to do is, it will show me every weapon I have, and it should display in lines like:
Ak47
Eagle
Colt
Whatever
Code I tried ofc displays me only one weapon cuz I don't know how I can display this thing in textdraws it's much harder than SendClientMessage ^^
Ak47
Eagle
Colt
Whatever
Code I tried ofc displays me only one weapon cuz I don't know how I can display this thing in textdraws it's much harder than SendClientMessage ^^
pawn Code:
CMD:frisk(playerid,params[])
{
new Player_Weapons[13];
new Player_Ammos[13];
new i;
for(i = 1;i <= 12;i++)
{
GetPlayerWeaponData(playerid,i,Player_Weapons[i],Player_Ammos[i]);
if(Player_Weapons[i] != 0)
{
new weaponName[256],string[256];
GetWeaponName(Player_Weapons[i],weaponName,255);
format(string,255,"Weapon Name: %s | Weapon Ammo's: %d.",weaponName,Player_Ammos[i]);
//SendClientMessage(playerid,0xFFFFFFAA,string);
TextDrawSetString(Weapons, string);
TextDrawShowForPlayer(playerid, Weapons);
}
}
return 1;
}

