21.11.2009, 22:19
hello everybody i have the problem that when iґam on a huge map and iam in a car i cant see the objects i can see them first when i get out of the car so i want to script something that removes the player from his car and put the player back again in his car but i have a problem the player removes but he dont go back in his car ?
i have use this here
and i have put this in my command
but it dont works can somebody help me please ?
i have use this here
Код:
public OnPlayerExitVehicle(playerid, vehicleid) { SetTimerEx("PutOn", 1000, false, "ii", playerid, vehicleid); return 1; } forward PutOn(playerid, vehicleid); public PutOn(playerid, vehicleid) { PutPlayerInVehicle(playerid, vehicleid, 0); return 1; }
Код:
new gVeh = GetPlayerVehicleID(playerid); RemovePlayerFromVehicle(playerid); OnPlayerExitVehicle(playerid, gVeh);