02.05.2014, 18:49
How do I remove players weapons when they enter a certain DDoor but give them back to them when the exit the DD?
public OnPlayerUpdate(playerid){
if(GetPlayerInterior(playerid) != 0) {
SetPlayerArmedWeapon(playerid,0);
}
return 1;
}
public OnPlayerUpdate(playerid){ if(GetPlayerInterior(playerid) == 1 && GetPlayerVirtualWorld(playerid)==24) { SetPlayerArmedWeapon(playerid,0); } return 1; }
All that function does, is sets players armed ( weapon in hands ) to fists, so they have weapons all the time, but they can't switch to it.
|