22.05.2018, 06:11
Okay, So I made a little error in the previous code. I misread your help.
Add this on top of your script.
Then put this under OnPlayerKeyStateChange.
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!
Add this on top of your script.
PHP код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SECONDARY_ATTACK)) {
if(IsPlayerInRangeOfPoint(playerid, 3, Float:x, Float:y, Float:z)) {
SetPlayerPos(playerid, 2315.952880,-1.618174,26.742187);
SetPlayerInterior(playerid, 0);
}
return 1;
}
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!