05.08.2018, 13:25
Hi. I want to add /entergarage and /exitgarage command, but if player is in a car while using this, i want to teleport him with the car, and being in the car too, and if there's any pasager (g)
how can I do this?
PHP код:
CMD:exitgarage(playerid, params[])
{
if(pInfo[playerid][pFaction] != 1 return SendClientMessage(playerid, -1, "You are not from this faction!");
if IsPlayerInRangeOfPoint(playerid, 5.0, 1587.9971, -1641.0372, 13.6033))
{
SetPlayerPos(playerid, 55.6726, -135.0379, 2.4967);
}
return 1;
}