Quote:
Originally Posted by DarkSkull
Try this:
PHP код:
CMD:gub(playerid)
{
new ammo2, weapon=0;
GetPlayerWeaponData(playerid, 2, weapon, ammo2);
if((weapon !=22 && weapon !=23 && weapon !=24) || ammo2 == 0)
{
GivePlayerWeapon(playerid, 24, 3);
}
else
{
new string[99];
format(string, sizeof(string), "Weapon slot taken %i", weapon);
SendClientMessage(playerid, -1, string);
}
return 1;
}
|
Thanks, havent thought about this