Quote:
Originally Posted by Jari_Johnson*
here's an example
pawn Код:
new Lastid[MAX_PLAYERS];
public OnPlayerExitVehicle(playerid,vehicleid) { Lastid[playerid] = vehicleid; } CMD:lvget(playerid,params[]) { if(Lastid[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You haven't left any vehicles yet!"); new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); SetVehiclePos(Lastid[playerid],x+3,y,z); SendClientMessage(playerid,COLOR_GREEN,"The last vehicle you exited was teleported to you!"); return 1;
It would be something like this
|
This is somewhat near to it but its not teleporting the last car to me.Need to get a bit closer in it.Btw a rep++; for you.