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