10.02.2009, 18:42
Edit:
Just Copy from me...
Why?
Simple.. you not sayd to your Script .. that the variable "vehicleid" is the Vehicle where the player is in
Just Copy from me...
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { new vehicleid = GetPlayerVehicleID(playerid); if(newstate == PLAYER_STATE_DRIVER) if(!IsPlayerInInvalidNosVehicle(playerid,vehicleid)) { AddVehicleComponent(vehicleid,1010); } return 1; }
Simple.. you not sayd to your Script .. that the variable "vehicleid" is the Vehicle where the player is in