08.03.2013, 13:39
(
Последний раз редактировалось Colossus874; 08.03.2013 в 14:17.
)
----
CMD:weaponstats(playerid,params[])
{
for(new x; x < 13; x++)
{
GetPlayerWeaponData(playerid,x,PlayerInfo[playerid][pWeapons][x],PlayerInfo[playerid][pWeaponAmmo][x]);
if(!PlayerInfo[playerid][pWeapons][x] && PlayerInfo[playerid][pWeaponAmmo][x] != 0)
{
new string[128],ammo;
new weapon;
ammo = PlayerInfo[playerid][pWeaponAmmo][x];
weapon = PlayerInfo[playerid][pWeapons][x];
format(string,sizeof(string),"[%s with %i ammo.]", aWeaponNames[weapon],ammo);
SendClientMessage(playerid, COLOR_WHITE,string);
}
}
return 1;
}
pawn Код:
|