Commands in Bank 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)
+--- Thread: Commands in Bank interiors (
/showthread.php?tid=588006)
Commands in Bank interiors -
karemmahmed22 - 04.09.2015
Ok, i creating bank system, i'm still a lil bit newbie in scripting so, i just need to know, how to check if is player in one of 24/7 interiors, then i allow him to use bank commands, any info how to do it? i know its can be done with is player on range of point but, it only will work in 1 interior :S, i need it for all interiors
Re: Commands in Bank interiors -
Michael B - 04.09.2015
Something like this?
PHP код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(newinteriorid == ID) //Change it to your building's intrior ID.
{
//Your code here.
}
return 1;
}
Re: Commands in Bank interiors -
karemmahmed22 - 04.09.2015
Yeah but, i need it for all 24/7 interiors
if(player in 24/7 interior)
{
my commands here :S
}
Re: Commands in Bank interiors -
Sellize - 04.09.2015
PHP код:
if(GetPlayerInterior(playerid) == your_interior_id){ /*do something*/ }
Re: Commands in Bank interiors -
karemmahmed22 - 04.09.2015
Yeah but it will do in the whole interior, not only 24/7 lol