Interior
#6

Quote:
Originally Posted by TechSil
Посмотреть сообщение
Not really
Okay, So I made a little error in the previous code. I misread your help.

Add this on top of your script.

PHP код:
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) 
Then put this under OnPlayerKeyStateChange.

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
PRESSED(KEY_SECONDARY_ATTACK)) {
        if(
IsPlayerInRangeOfPoint(playerid3Float:xFloat:yFloat:z)) {
        
SetPlayerPos(playerid2315.952880,-1.618174,26.742187);
        
SetPlayerInterior(playerid0);
    }
    return 
1;

Change the Float:x, Float:y, Float:z to the coords in front of the bank.

If You don't know how to script, I suggest you start with the basics first. This forum is filled with a lot of tutorials, You can how to make anything here. I should also remind you, since you're new here, that Scripting Help section is for helping other people with their code, not making it for them. All the best!
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)