lspd gates
#1

Hello someone can help me? I want to ad some gates to my game mode, i make the script but i dont see gates i saw only the text.I need place it in mta then convert it or something?Or i just need the object id?
Reply
#2

lspd gates? sure 1 sec
Reply
#3

tehe

pawn Код:
CreateObject(980,1588.21594238,-1637.91577148,15.19820213,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
CreateObject(968,1544.75622559,-1630.54687500,13.07956219,90.00000000,90.00000000,90.00000000); //object(barrierturn) (1)
CreateObject(3578,1545.62805176,-1637.81933594,13.33238983,0.00000000,0.00000000,90.00000000); //object(dockbarr1_la) (1)

CreateObject(3578,1545.73327637,-1618.40454102,13.33259487,0.00000000,0.00000000,90.00000000); //object(dockbarr1_la) (2)
there ya go 980 is gate and 968 is for a pole to enter lol

move gate to

1588.21594238,-1637.91577148,8.19820213

you can delete the last 3 if u want just a little addon
Reply
#4

#pragma tabsize 0
new pdgate;
pdgate = CreateObject(980,1588.21594238,-1637.91577148,15.19820213,0.00000000,0.00000000,0. 00000000); //object(airportgate) (1)
CreateObject(968,1544.75622559,-1630.54687500,13.07956219,90.00000000,90.00000000, 90.00000000); //object(barrierturn) (1)
CreateObject(3578,1545.62805176,-1637.81933594,13.33238983,0.00000000,0.00000000,90 .00000000); //object(dockbarr1_la) (1)


pwn(24) : error 010: invalid function or declaration

im using it what is wrong? =X
Reply
#5

only with 980 its the same error :\
Reply
#6

do you have the command to move the object?
Reply
#7

Ok in main i put it

Quote:

#pragma tabsize 0
forward GateCloseLSPDGATE();
new LSPDGATE;

Then i put it in OnGameModeInit

Quote:

CreateObject(980,1588.21594238,-1637.91577148,15.19820213,0.00000000,0.00000000,0. 00000000); //object(airportgate) (1)
CreateObject(968,1544.75622559,-1630.54687500,13.07956219,90.00000000,90.00000000, 90.00000000); //object(barrierturn) (1)
CreateObject(3578,1545.62805176,-1637.81933594,13.33238983,0.00000000,0.00000000,90 .00000000); //object(dockbarr1_la) (1)

And to finish i put it in onplayercommand

Quote:

//---------------------------------{pdGate]------------------------------------------------
if (strcmp(cmdtext, "/opengate", true)==0)
{
MoveObject(LSPDGATE,);//Fechado
MoveObject(LSPDGATE,);//Aberto
SetTimer("GateCloseLSPDGATE", 5000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"Be Welcome to the LSPD the Gate will AutoClose in 5 Seconds");
return 1;
}

How i can finish it right?
Reply
#8

How i can put the location ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)