SA-MP Forums Archive
Weapons in interiors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weapons in interiors (/showthread.php?tid=273817)



Weapons in interiors - OleKristian95 - 03.08.2011

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


Re: Weapons in interiors - Kush - 03.08.2011

Define "enable weapons in a specified interior"


Re: Weapons in interiors - OleKristian95 - 03.08.2011

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


Re: Weapons in interiors - Famalamalam - 03.08.2011

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
    }



Respuesta: Weapons in interiors - Sergio_MOW - 03.08.2011

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.