[Include] [INC] S:Interior 2.0 (0.2 Compatible)
#1

SInterior 2.0
By Sacky
Download 2.0

What is it:

Basically a database of almost interior in SA:MP including the interior ID's, the maximum and minimum x,y,z values, the spawn x,y,z and angle values, and the names. This allows new function's and it also allows every interior that is documented to have its own unique id.

The new function's include:

GetPlayerInteriorEx(playerid)
Returns the interior number of the player

IsPlayerInInterior(playerid,interiorid)
Returns 1 if the player is in the interior and 0 if they aren't

IsPlayerInAnyInterior(playerid)
Returns 1 if the player is in any interior and 0 if they aren't

GetPlayerInteriorID(playerid)
Returns the interiorid of the player (the internal one used in the script)

IsPlayerInInteriorID(playerid,interiorid)
Returns 1 if the player is in the interiorid and 0 if they aren't

GetInteriorName(interiorid)
Returns the interiorid name

SetPlayerInteriorID(playerid,interiorid)
Sets the player in the interiorid of choice, which will spawn them at an appropriate place

*Note: When I refer to interiors i am talking about the interiors the SA uses, when i am talking about about interiorid's I am talking about the one's used internally in the script

To Include this in your script put this at the top:
pawn Code:
#include <sinterior.pwn>
and make sure the sinterior.pwn is located in the include file

Credits:
Spectre for his hidden interior's script
Reply


Messages In This Thread
[INC] S:Interior 2.0 (0.2 Compatible) - by Sacky - 23.11.2006, 04:55
Re: [INC]SInterior 1 - by yom - 23.11.2006, 05:34
Re: [INC]SInterior 1 - by Sacky - 23.11.2006, 05:39
Re: [INC]SInterior 1 - by yom - 23.11.2006, 06:05
Re: [INC]SInterior 1 - by Sacky - 23.11.2006, 07:01
Re: [INC]SInterior 1 - by yom - 23.11.2006, 07:54
Re: [INC]SInterior 1 - by Sacky - 23.11.2006, 08:09
Re: [INC]SInterior 1 - by d.wine - 23.11.2006, 10:56
Re: [INC]SInterior 1 - by PsYcHoGoD - 23.11.2006, 15:38
Re: [INC]SInterior 1 - by d.wine - 23.11.2006, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)