11.09.2010, 13:58
I have a /enter command that gets from one side of a gate to another but it only brings me and leaves the car behind the gate, I need it so that it brings the car with me in it.
Heres the command:
Heres the command:
pawn Код:
if(strcmp(cmd, "/entersd", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1803.6398,-1723.6239,13.5391))
{
if(gTeam[playerid] == 5)
{
SetPlayerPos(playerid, 1803.6290,-1720.1747,13.5346);
SendClientMessage(playerid, COLOR_GREY, "Welcome to the SASD HQ, /exitsd to leave.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not SASD.");
return 1;
}
}
}