23.11.2006, 04:55
SInterior 2.0
By Sacky
Download 2.0What 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>
Credits:
Spectre for his hidden interior's script