Weapons in interiors
#1

Is it possible to enable weapons in a specified interior and in a specified world?
Would be cool if it was, I wan't to mak DM rooms inside an interior.
If it is, please show me how
Reply
#2

Define "enable weapons in a specified interior"
Reply
#3

Quote:
Originally Posted by Kush
Посмотреть сообщение
Define "enable weapons in a specified interior"
huh? I dont understand
Reply
#4

Use something like this in OnPlayerUpdate:

pawn Код:
if(GetPlayerInterior(playerid) != 0 && GetPlayerInterior(playerid) != INTERIOR_YOU_WANT_TO_USE && GetPlayerWeapon(playerid) != 0)
    {
        SetPlayerArmedWeapon(playerid,0); // fists
        return 1; // no syncing until they change their weapon
    }
Reply
#5

Code for reset.
pawn Код:
if(GetPlayerInterior(playerid) != 0) return ResetPlayerWeapons(playerid);
this /\ code reset the weapons, don't "save" the weapons.

psorry for the bad english.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)