28.03.2018, 10:50
Hey guys, i was trying to make a drinving school for my german roleplay script,
So first i got something that checks if the car is bike so you don't get the message how to turn the engine on (WithoutMotor) then i got some Driving car for the Drivingschool (Fahrschulauto) and i got something that turns to 1 so he can drive the drivingschool car (pInfo[playerid][pFahrstunde]) but when i get on a Bike ( so a car without an engine) it tells me i don't startet the drivingtest
So first i got something that checks if the car is bike so you don't get the message how to turn the engine on (WithoutMotor) then i got some Driving car for the Drivingschool (Fahrschulauto) and i got something that turns to 1 so he can drive the drivingschool car (pInfo[playerid][pFahrstunde]) but when i get on a Bike ( so a car without an engine) it tells me i don't startet the drivingtest
Код:
if(newstate == PLAYER_STATE_DRIVER)
{
for(new p; p < sizeof(Fahrschulauto); p++)
{
new vehid=GetPlayerVehicleID(playerid);
if(vehid == p)
{
if(pInfo[playerid][pFahrstunde] != 1)
{
SendClientMessage(playerid, -1,"{c45461}Du musst zuerst die Fahrstunde starten um mit der Prьfung anzufangen.");
return RemovePlayerFromVehicle(playerid);
}
}
}
}
new vehicleid=GetPlayerVehicleID(playerid);
if(WithoutMotor(vehicleid))
{
if(newstate == PLAYER_STATE_DRIVER)
if(pInfo[playerid][pAutoschein]== 0)
{
SendClientMessage(playerid, -1,"{c45461}Du hast noch keinen Autoschein.");
return RemovePlayerFromVehicle(playerid);
}
else
{
SendClientMessage(playerid,-1,"{FAFAFA}Benutze den Befehl{009BFF} /Motor{FAFAFA} um den Motor zu starten. Mit den Befehl {009BFF}/Licht{FAFAFA} schaltest du das Licht ein.");
}
}

