Interior
#2

This is how you do it. Under the command called /enter, Check if the player is near a bank.

You can do this by using the function IsPlayerInRangeOfPoint();. The X, Y, Z coord of the function corresponds to the X, Y, Z coord of the bank entrance. Then under the if statement, Set the player pos and his interior.

A list of interior ids and location can be found here: CLICK ME

So in conclusion, Your code should look something like this.

PHP код:
if (strcmp("/enter"cmdtexttrue10) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playeridrangeFloat:xFloat:yFloat:z)) {
            
SetPlayerPos(playeridFloat:xFloat:yFloat:z);
            
SetPlayerInterior(playeridinteriorid);
        }
        return 
1;
    } 
Reply


Messages In This Thread
Interior - by TechSil - 21.05.2018, 15:47
Re: Interior - by DarkSkull - 21.05.2018, 16:07
Re: Interior - by TechSil - 21.05.2018, 16:13
Re: Interior - by DarkSkull - 21.05.2018, 16:39
Re: Interior - by TechSil - 21.05.2018, 16:44
Re: Interior - by DarkSkull - 22.05.2018, 06:11

Forum Jump:


Users browsing this thread: 1 Guest(s)