How can i? [+REPP] fast! - 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: How can i? [+REPP] fast! (
/showthread.php?tid=586660)
How can i? [+REPP] fast! -
Toxik - 23.08.2015
I want when played is in range of this KeyPad the gates open up
so how can I make this ?
pawn Код:
//keypad
CreateObject(2886,-3293.315429,-888.127258,20.019216,0,0,-90.000);// == Keypad
//LEFT SIDE DOORS
CreateObject(3049,-3294.663085,-897.989929,10.683928,0,0,-91.800003);//Left Gate Closed
CreateObject(3049,-3294.663085,-897.989929,10.683928,0,0,-117.600006); //Left Gate Opened
////////////////////////RIGHT SIDE DOORS
CreateObject(3049,-3294.530273,-888.976806,10.473924,0,0,90.100006); //Right Gate Closed
CreateObject(3049,-3294.530273,-888.976806,10.473924,0,0,166.300018); //Right Gate Opened
Re: How can i? [+REPP] fast! -
jlalt - 23.08.2015
hope it work:
PHP код:
new keypad;
public OnGameModeInit()
{
keypad = CreateObject(2886,-3293.315429,-888.127258,20.019216,0,0,-90.000);
return 1;
}
public OnPlayerUpdate(playerid)
{
new Float:X,Float:Y,Float:Z;
GetObjectPos(keypad,X,Y,Z);
if(IsPlayerInRangeOfPoint(playerid, 10.0, X, Y, Z )) {
MoveObject(keypad,X,Y,Z-8,2.00);
} else {
MoveObject(keypad, X,Y,Z+8,2.00);
}
return 1;
}
AW: How can i? [+REPP] fast! -
MrGtasagamer - 23.08.2015
Quote:
Originally Posted by Toxik
I want when played is in range of this KeyPad the gates open up
so how can I make this ?
pawn Код:
//keypad CreateObject(2886,-3293.315429,-888.127258,20.019216,0,0,-90.000);// == Keypad //LEFT SIDE DOORS CreateObject(3049,-3294.663085,-897.989929,10.683928,0,0,-91.800003);//Left Gate Closed CreateObject(3049,-3294.663085,-897.989929,10.683928,0,0,-117.600006); //Left Gate Opened ////////////////////////RIGHT SIDE DOORS CreateObject(3049,-3294.530273,-888.976806,10.473924,0,0,90.100006); //Right Gate Closed CreateObject(3049,-3294.530273,-888.976806,10.473924,0,0,166.300018); //Right Gate Opened
|
Hello Toxik!
I would use mGates Include:
https://sampforum.blast.hk/showthread.php?pid=1908733#pid1908733
A very easy and usefull Include for creating Gates!
Try it
Re: AW: How can i? [+REPP] fast! -
Toxik - 23.08.2015
Quote:
Originally Posted by MrGtasagamer
|
Gates can be opened with rZ ?