GivePlayerWeaponData does not work correctly
#3

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
Try this:
PHP код:
CMD:gub(playerid)
{
    new 
ammo2weapon=0;
    
GetPlayerWeaponData(playerid2weaponammo2);
    if((
weapon !=22 && weapon !=23 && weapon !=24) || ammo2 == 0)
    {
    
GivePlayerWeapon(playerid243);
    }
    else
    {
    new 
string[99];
    
format(stringsizeof(string), "Weapon slot taken %i"weapon);
    
SendClientMessage(playerid, -1string);
    }
return 
1;

Thanks, havent thought about this
Reply


Messages In This Thread
GivePlayerWeaponData does not work correctly - by ax1 - 01.09.2016, 16:40
Re: GivePlayerWeaponData does not work correctly - by DarkSkull - 01.09.2016, 16:51
Re: GivePlayerWeaponData does not work correctly - by ax1 - 01.09.2016, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)