Quote:
Originally Posted by Cjgogo
pawn Код:
new LastVehicle[MAX_PLAYERS]; OnPlayerConnect(playerid) { LastVehicle[playerid]=-1; return 1; } OnPlayerExitVehicle(playerid,vehicleid) { LastVehicle[playerid]=GetVehicleModel(vehicleid); return 1; } COMMAND:v2(playerid,params[]) { if(LastVehicle[playerid]!=-1) { new LastCar; new model=LastVehicle[playerid]; new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); LastCar=CreateVehicle(model,x,y,z,0,random(100),random(100),0); SendClientMessage(playerid,COLOR_GREEN,"You spawned the last vehicle you were in!"); PutPlayerInVehicle(playerid,LastCar,0); } return 1; }
That should do the trick... 
|
I haven't tested it yet. But I knew this should to the trick. Anyway I put you in our server credits for always helping me