du machst nix falsch, das bin wenn dann ich xD
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicle, Model;
vehicle = GetPlayerVehicleID(playerid);
Model = GetVehicleModel(vehicle);
new currentstate = GetPlayerState(playerid);
if(Model == 437 )
{
if(Bus[playerid] != 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, Rot, "Du bist kein Busfahrer!");
}
}
else if(Bus[playerid] == 1)
{
print("Bus betreten");
}
Das muss gehen ist aus meinem Skript