Electric Vence
#1

Hello everyone. I have made myself a 'Parking Place' and before entering it you have to pass a Electric Vence.
This is it:


Well now my question is: Can i let the vence open automatic if yes how
Or do i have to make commands like /opengate /closegate

Thank you,
Zaka
Reply
#2

well you could do with Area, get the coords around the gate and a CP in middle and u make an area if player in area open gate :P but simpler is make a command and a timer to close it :P
Reply
#3

Quote:
Originally Posted by cmg4life
well you could do with Area, get the coords around the gate and a CP in middle and u make an area if player in area open gate :P but simpler is make a command and a timer to close it :P
I wish i could do that
Reply
#4

this is my two pdgates
OnTop
pawn Код:
New pdngate;
New pdgate;
OnGameModeInit
pawn Код:
pdgate = CreateObject(969, 2237.2834, 2457.1211, 10.0000, 0.0000, 0.0000, -90);
pdngate = CreateObject(969, 2319.9072, 2450.9280, 3.0000, 0.0000, 0.0000, -90);
OnPlayerCommandText
pawn Код:
}
//pd gate 1
if (strcmp(cmdtext, "/pdopen", true)==0)
   {
   MoveObject (pdgate,2236.8877, 2465.6880, 10.0000, 2.5);
   MoveObject (pdngate,2319.2393, 2440.1260, 3.2734, 2.5);
   SendClientMessage(playerid, COLOR_YELLOW,"PdGate Open");
   return 1;
   }
if (strcmp(cmdtext, "/pdclose", true)==0)
 {
 MoveObject (pdgate,2237.2834, 2457.1211, 10.0000, 2.5);
 MoveObject (pdngate,2319.9072, 2450.9280, 3.2734, 2.5);
 SendClientMessage(playerid, COLOR_YELLOW,"PdGate Closed");
 return 1;
 }
Test It
Reply
#5

Quote:
Originally Posted by Alex
If you use YSI you can just do:

pawn Код:
CreateGate(model, XPosition, YPosition, ZPosition, XTarget, YTarget, ZTarget);
Where the targets are where the gate opens to.
I'll check this.

Quote:
Originally Posted by splitx
this is my two pdgates
OnTop
pawn Код:
New pdngate;
New pdgate;
OnGameModeInit
pawn Код:
pdgate = CreateObject(969, 2237.2834, 2457.1211, 10.0000, 0.0000, 0.0000, -90);
pdngate = CreateObject(969, 2319.9072, 2450.9280, 3.0000, 0.0000, 0.0000, -90);
OnPlayerCommandText
pawn Код:
}
//pd gate 1
if (strcmp(cmdtext, "/pdopen", true)==0)
   {
   MoveObject (pdgate,2236.8877, 2465.6880, 10.0000, 2.5);
   MoveObject (pdngate,2319.2393, 2440.1260, 3.2734, 2.5);
   SendClientMessage(playerid, COLOR_YELLOW,"PdGate Open");
   return 1;
   }
if (strcmp(cmdtext, "/pdclose", true)==0)
 {
 MoveObject (pdgate,2237.2834, 2457.1211, 10.0000, 2.5);
 MoveObject (pdngate,2319.9072, 2450.9280, 3.2734, 2.5);
 SendClientMessage(playerid, COLOR_YELLOW,"PdGate Closed");
 return 1;
 }
Test It
Thanks, will check this too.
Reply
#6

No prob
Reply
#7

Quote:
Originally Posted by splitx
No prob
man i really don't know how to get it working..

btw what is
pdngate
&
pdgate
my createobject = CreateObject(969, 1376.948242, -1644.223633, 12.549690, 0, 0, 270);
but i don't onderstand how to use etc..
Reply
#8

Add me on msn i will help ya

splitx@live.se
Reply
#9

Fence..........Vence?
Reply
#10

Did you honestly have to bump a 2 year old topic?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)