change player weapon interior
#1

I want to ask how to change the interior when a player enters somewhere inside like the casino.
Example: I went inside the casino and I cannot use my weapons cause it automatically rolled to fist for me so I can't even change to any of the weapons......
Here are my codes
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(!IsPlayerConnected(playerid)) return 0;
    //Weapons in interiors
    if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
        SetPlayerArmedWeapon(playerid,0);
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
change player weapon interior - by N00bKiller - 13.06.2013, 13:41
Re: change player weapon interior - by Sandiel - 13.06.2013, 14:10
Re: change player weapon interior - by Guest123 - 13.06.2013, 14:23
Re: change player weapon interior - by N00bKiller - 13.06.2013, 14:33
Re: change player weapon interior - by N00bKiller - 13.06.2013, 15:02
Re: change player weapon interior - by Vince - 13.06.2013, 15:25
Re: change player weapon interior - by ReVo_ - 13.06.2013, 16:08
Re: change player weapon interior - by N00bKiller - 13.06.2013, 17:17

Forum Jump:


Users browsing this thread: 3 Guest(s)