Kann mir jemand helfen was hier falsch ist./*
main() {
#define TEAM_Transport Gmbh 1
#define TEAM_COPS 2
#define TEAM_Newsreporter 3
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 1 )
{
gTeam[playerid] = TEAM_TRANSPORTGMBH;
}
if(classid == 2) //wenn der Spieler den zweiten Skin auswählt
{
gTeam[playerid] = TEAM_COPS;
}
if(classid == 3) //wenn der Spieler den dritten Skin auswählt
{
gTeam[playerid] = TEAM_Newsreporter;
}
return 01;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new newcar= GetPlayerVehicleID(playerid);
new carmodel = GetVehicleModel(newcar);
if(carmodel == 598)
{
if(gteam == TEAM_Polizei)
{
}
else
{
RemovePlayerFromVehicle(playerid);
}
}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new newcar= GetPlayerVehicleID(playerid);
new carmodel = GetVehicleModel(newcar);
if(carmodel == 514 || carmodel == 515 || carmodel == 403)
{
if(gteam == TEAM_Transport Gmbh)
{
}
else
{
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}