07.01.2014, 18:24
I understood that you want that the player has always 'X' it arms and that could not change it.
It changes the 'weaponid' to the weapon that you wish not to change.
Im sorry if I was wrong on the doubt.
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;
}
Im sorry if I was wrong on the doubt.