How can i? [+REPP] fast!
#1

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
Reply
#2

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(playerid10.0XY)) {
MoveObject(keypad,X,Y,Z-8,2.00);
} else {
MoveObject(keypadX,Y,Z+8,2.00);
}
return 
1;

Reply
#3

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
Reply
#4

Quote:
Originally Posted by MrGtasagamer
Посмотреть сообщение
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
Gates can be opened with rZ ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)