Code
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new name[MAX_PLAYER_NAME], s[128];
GetPlayerName(playerid,name,sizeof(name));
format(s,sizeof(s),"acc/%s.ini",name);
new bikeschein = dini_Int(s, "bikeschein");
new vehicleid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(benzin[GetPlayerVehicleID(playerid)]==0)
{
TogglePlayerControllable(playerid, 0);
}
if(IsABike(vehicleid))
{
if(bikeschein == 0)
}
else
{
SendClientMessage(playerid, rot, " Du hast keinen Mottoradschein! ");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
Alles anzeigen
Abend findet jemand nen klammer fehler also ich nicht
Helft mir bitte