05.01.2010, 08:57
Hello Everyone,
I have a problem some kinda easy for pro scripters. But i tried my ass of getting it worked.
I want it like, When a player in a vehicle get to this point.
AddStaticVehicle(596,-126.1846,-3707.7759,102.6719,323.4586,0,1);
He get tped to this place.
AddStaticVehicle(596,-169.7463,-3698.6672,101.1241,257.9296,0,1);
I tried something like this,
but its not working, Its like. When a player on foot get to the point. He get tped but not when hes inside the vehicle.
Please help me with this.
I have a problem some kinda easy for pro scripters. But i tried my ass of getting it worked.
I want it like, When a player in a vehicle get to this point.
AddStaticVehicle(596,-126.1846,-3707.7759,102.6719,323.4586,0,1);
He get tped to this place.
AddStaticVehicle(596,-169.7463,-3698.6672,101.1241,257.9296,0,1);
I tried something like this,
Код:
else if (PlayerToPoint(1.0, playerid,-127.0548,-3652.8835,102.7324, cx,cy,cz)) { //Car Parking if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(playerid, -1398.8077,-263.6243,5.7211); } else { SetPlayerPos(playerid, -1398.8077,-263.6243,5.7211); } SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Car Parking", 5000, 3); SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pInt] = 0; }
Please help me with this.