31.08.2013, 20:14
Tente assim:
pawn Код:
if (strcmp(cmd,"/municao", true) == 0)
{
new s[128];
new arma;
new balas;
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, 1, arma, balas);
if(arma[i][1] != 0)
{
format(s,60,"Vocк tem %i balas", balas);
SendClientMessage(playerid,0xC2A2DA,s);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Vocк nao tem municao.");
}
return 1;
}
}