When someone shoot
#5

I understood that you want that the player has always 'X' it arms and that could not change it.


pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerWeapon(playerid) != WeaponID) //It checks if the player does not have this weapon.
    {
        SetPlayerArmedWeapon(playerid, WeaponID); //It gives him the weapon.
    }
    return 1;
}
It changes the 'weaponid' to the weapon that you wish not to change.


Im sorry if I was wrong on the doubt.
Reply


Messages In This Thread
When someone shoot - by iBots - 07.01.2014, 16:18
Re: When someone shoot - by offon - 07.01.2014, 16:18
Re: When someone shoot - by Emmet_ - 07.01.2014, 16:21
Re: When someone shoot - by iBots - 07.01.2014, 17:49
Respuesta: When someone shoot - by Swedky - 07.01.2014, 18:24
Re: When someone shoot - by iBots - 07.01.2014, 18:32
Respuesta: Re: When someone shoot - by Swedky - 07.01.2014, 18:59
Re: When someone shoot - by iBots - 07.01.2014, 19:32

Forum Jump:


Users browsing this thread: 2 Guest(s)