Making Weapon and Ammo difference
#10

Thanks Yuryfury

PHP код:
new DesertEagle[MAX_PLAYERS];
CMD:buydeagle(playeridparams[])
{
    
DesertEagle[playerid]=1;
    
SendClientMessage(playerid,COLOR_RED,"You bought Desert Eagle.");
    
GivePlayerMoney(playerid,-2000);
    return 
1;
}
CMD:buyammo(playeridparams[])
{
    if(
GetPlayerWeapon(playerid)==24||DesertEagle[playerid]==1)
        {
            
GivePlayerWeapon(playerid,24,7);
            
GivePlayerMoney(playerid,-100);
            
SendClientMessage(playerid,COLOR_RED,"You bought 1 pack ammo of Desert Eagle.");
        }
    else 
SendClientMessage(playerid,COLOR_RED,"You don't have Desert Eagle!");
        return 
1;

@Ballu Mia yap, you're the best
Reply


Messages In This Thread
Making Weapon and Ammo difference - by Deviant96 - 23.04.2012, 04:23
Re: Making Weapon and Ammo difference - by Yuryfury - 23.04.2012, 04:30
Re: Making Weapon and Ammo difference - by MP2 - 23.04.2012, 04:32
Re: Making Weapon and Ammo difference - by Yuryfury - 23.04.2012, 04:34
Re: Making Weapon and Ammo difference - by MP2 - 23.04.2012, 04:40
Re: Making Weapon and Ammo difference - by Yuryfury - 23.04.2012, 04:50
Re: Making Weapon and Ammo difference - by Deviant96 - 23.04.2012, 04:59
Re: Making Weapon and Ammo difference - by MrEnd - 23.04.2012, 07:33
Re: Making Weapon and Ammo difference - by Ballu Miaa - 23.04.2012, 11:43
Re: Making Weapon and Ammo difference - by Deviant96 - 23.04.2012, 15:53

Forum Jump:


Users browsing this thread: 5 Guest(s)