Quote:
Originally Posted by WellDone
As you can see, here is the original OnPlayerExitVehicle:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid) { for(new i=0;i<26;i++) { if(RCWarCar[i] == vehicleid) Cars[i] = 0; if(Kart[i] == vehicleid) { Karts[i] = 0; Player[playerid] = 0; SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1173.4355,1355.9640,10.9219); SetPlayerFacingAngle(playerid,88.9805); SendClientMessage(playerid,0x00C7FFAA,"Bye, noob"); } } return 1; }
and all author's actions are working well. The only thing that is not working is my SetPlayerPos.
|
dude i think the main prob is onplayerentervehicle cuz u are getting the old position of the player not the new one where the player has driven his vehicle ... so it spawns u where last entered ur vehicle so u need to update your X,Y,Z,Angle every sec that might help