SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/09/2015, 06:18 PM   #1
karemmahmed22
Big Clucker
 
karemmahmed22's Avatar
 
Join Date: Jun 2015
Location: Mars
Posts: 183
Reputation: 17
Default Commands in Bank interiors

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
karemmahmed22 is offline   Reply With Quote
Old 04/09/2015, 06:30 PM   #2
Michael B
High-roller
 
Michael B's Avatar
 
Join Date: Oct 2014
Location: Romania
Posts: 1,004
Reputation: 127
Default Re: Commands in Bank interiors

Something like this?
PHP Code:
public OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
    if(
newinteriorid == ID//Change it to your building's intrior ID.
    
{
        
//Your code here.
    
}
    return 
1;

__________________
Michael B is offline   Reply With Quote
Old 04/09/2015, 06:33 PM   #3
karemmahmed22
Big Clucker
 
karemmahmed22's Avatar
 
Join Date: Jun 2015
Location: Mars
Posts: 183
Reputation: 17
Default Re: Commands in Bank interiors

Yeah but, i need it for all 24/7 interiors
if(player in 24/7 interior)
{
my commands here :S
}
karemmahmed22 is offline   Reply With Quote
Old 04/09/2015, 06:34 PM   #4
Sellize
Gangsta
 
Sellize's Avatar
 
Join Date: Jan 2013
Location: (ง ͠ ͟ل͜ ͡)ง fight me irl
Posts: 708
Reputation: 293
Default Re: Commands in Bank interiors

PHP Code:
if(GetPlayerInterior(playerid) == your_interior_id){ /*do something*/ 
__________________
dead
Sellize is offline   Reply With Quote
Old 04/09/2015, 06:39 PM   #5
karemmahmed22
Big Clucker
 
karemmahmed22's Avatar
 
Join Date: Jun 2015
Location: Mars
Posts: 183
Reputation: 17
Default Re: Commands in Bank interiors

Yeah but it will do in the whole interior, not only 24/7 lol
karemmahmed22 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Smart & Fast & Simple - Bank System [BR Bank] (Without registration) BlueRey Filterscripts 16 05/07/2012 05:15 PM
Does 'interiors.txt' contain all interiors in GTA San Andreas? Gergo1352 General 2 14/08/2009 09:33 AM
Rob Bank Commands Jason_Larson Help Archive 4 25/03/2009 10:38 PM


All times are GMT. The time now is 06:13 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.