public schulpunkte(playerid)
{
if(PlayerToPoint(2, playerid,-2045.0388,-72.8505,35.0420))
{
if(schule == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -2004.2130,-28.2393,34.9434);
schule = 2;
}
}
else if(PlayerToPoint(2, playerid,-2003.4468,88.8432,27.4140))
{
if(schule == 2)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -1992.1306,146.2069,27.4140);
schule = 3;
}
}
else if(PlayerToPoint(2, playerid,-2061.0156,-73.1989,35.0469))
{
if(schule == 3)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,gelb,"Fahr zurück zur Fahrschule");
SetPlayerCheckpoint(playerid, -2089.5950,-97.0564,35.0390);
schule = 4;
}
}
else if(PlayerToPoint(2, playerid,-2089.5950,-97.0564,35.0390))
{
if(schule == 4)
{
new string[MAX_PLAYER_NAME];
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "fahrscheine/%s.ini", plname);
if(fexist(string) || SpielerInfo[playerid][fahrschein] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "***Sie Besitzen schon ein Schein ***");
SetPlayerPos(playerid,-2089.5950,-97.0564,35.0390);
Schulstart[playerid] = 0;
DestroyVehicle(fahrschulecar);
DisablePlayerCheckpoint(playerid);
schule = 0;
return 1;
}
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,gelb,"Du hast die Fahrprüfung bestanden. Glückwunsch !");
DestroyVehicle(fahrschulecar);
GivePlayerMoney(playerid,-5000);
SetPlayerPos(playerid,-2089.5950,-97.0564,35.0390);
Schulstart[playerid] = 0;
schule = 0;
SpielerInfo[playerid][spieler] = plname;
SpielerInfo[playerid][fahrschein] = 1;
scheinsave(playerid);
}
}
else if (PlayerToPoint(2.0, playerid, -2089.5950,-97.0564,35.0390))
{// Fahrschule
if(schule == 0)
{
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, "~w~Tippe /info ein um infos zur Fahrschule zu kriegen", 5000, 5);
}
}
return 1;
}
wenn ich mit denn auto durchfahre sollte der CP verschwinden und der nächste kommen aber das tut er nicht )=
bitte helft mir
MFG Mipu !