14.12.2009, 17:03
Hello. I'm trying to do if player exit vehicle he would be put in his last vehicle.. I do almost everything but I don't know how to but player in vehicle.. Here is the script
With player pos all good.. Server sets pos in these coords..
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(pInfo[playerid][Event][2] == true && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && pInfo[playerid][SfStuntLvl] == 1) { SetPlayerPos(StuntVeh, -1683.7195,551.2001,38.0144); SetPlayerFacingAngle(StuntVeh, 316.9490); PutPlayerInVehicle(playerid, veh.., 0); } return 1; }