07.07.2009, 12:24
Were here can I check a player has Weapon "30". I know there is a GivePlayerWeapon(playerid,30,100); inside, But its to purchase bullets.
Originally Posted by M4DKiLLA
Edit: Fixed
|
else if (strcmp(text,"7",true) == 0)
{
new playerWeapons = GetPlayerWeapon(playerid);
if(playerWeapons == 23)
{
new Playermoney = GetPlayerMoney(playerid);
if (Playermoney < 100)
{
SendClientMessage(playerid,red,"You Do not have enough Cash");
return 1;
}
GivePlayerMoney(playerid, -100);
GivePlayerWeapon(playerid,23,300);
buyammu1[playerid] = 1;
}
else
{
SendClientMessage(playerid,red,"You Need to buy a Silencer to buy this ammo");
}
return 0;
}