Hallo Liebe Leute!
Ich habe paar Probleme mit meinen Checkpoints, also der Erste Funktioniert richtig aber wenn ich einen 2ten erstellen möchte Funktioniert der garnicht. Das heißt, dass Man 15 Sekunden gefreezt wird, nach den 15 Sekunden enfreezt jedoch wird dann kein Checkpoint mehr angezeigt....
Code:
public OnPlayerEnterCheckpoint(playerid)
{
if (job[playerid] == 1)
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("mission",15000, false,"i",playerid);
SendClientMessage(playerid,0xFF6400FF,"Bitte warte 15 Sekunden!");
job[playerid] = 2;
}
if (job[playerid] == 2)
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("mission",15000, false,"i",playerid);
SendClientMessage(playerid,0xFF6400FF,"Bitte warte 15 Sekunden!");
job[playerid] = 3;
}
if (job[playerid] == 3)
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("mission",15000, false,"i",playerid);
SendClientMessage(playerid,0xFF6400FF,"Bitte warte 15 Sekunden!");
job[playerid] = 4;
}
return 1;
}
Public:
public mission(playerid)
{
if (job[playerid] == 1)
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid,0xFF6400FF,"15 Sekunden sind nun um!");
SetPlayerCheckpoint(playerid,2101.1719,-1648.6266,13.4075, 5.0 );
}
if (job[playerid] == 2)
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid,0xFF6400FF,"15 Sekunden sind nun um!");
SetPlayerCheckpoint(playerid,2067.3662,-1652.4037,13.5469, 5.0 );
}
if (job[playerid] == 2)
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid,0xFF6400FF,"15 Sekunden sind nun um!");
SetPlayerCheckpoint(playerid,2045.3193,-1635.7162,13.5469, 5.0 );
return 1;
}