17.03.2011, 23:00
Hi guys, So my server is nearly finished (well getting there) but I've got commands like /PayToll1 /PayToll2 etc...
How do I make it so that one command open the object infront of the player requesting... for example.
A player drives up to a toll and enters /paytoll but it only open that toll they are facing and no others?
Hope that made sense, hard to word lol!
Here is an example of the gate commands I'm using and want to keep if possible!
How do I make it so that one command open the object infront of the player requesting... for example.
A player drives up to a toll and enters /paytoll but it only open that toll they are facing and no others?
Hope that made sense, hard to word lol!
Here is an example of the gate commands I'm using and want to keep if possible!
pawn Код:
if (strcmp(cmdtext, "/PDGate", true)==0)
{
MoveObject(PDGate,629.36450195313, -591.13940429688, 15.622407913208, 3.5);
SetTimer("PDGateClose", 5000, 0);
SendClientMessage(playerid, 0xFFFF00AA, "The Policegate Will Shut In 5 Seconds");
return 1;
}