Ich habe einen Countdown der 3Sekunden dauert.
Nun gut , ich möchte aber das alle Spieler unfreezed werden wen der Countdown beendet ist.
Jedoch wird immer nur ID 0 unfreezed und der rest bleibt noch gefreezd.
Mfg Moinseeeeeen
public Counting(playerid)
{
Count = 1;
GameTextForAll("~y~3",1000,6);
PlayerPlaySound(playerid, 1056,0,0,0);
SetTimer("Counting2",5000,false);
return 1;
}
public Counting2(playerid)
{
Count = 1;
GameTextForAll("~g~2",1000,6);
PlayerPlaySound(playerid, 1056,0,0,0);
SetTimer("Counting1",5000,false);
return 1;
}
public Counting1(playerid)
{
Count = 1;
GameTextForAll("~b~1",1000,6);
PlayerPlaySound(playerid, 1056,0,0,0);
SetTimer("CountingGO",5000,false);
return 1;
}
public CountingGO(playerid)
{
Count = 0;
PlayerPlaySound(playerid, 1057,0,0,0);
GameTextForAll("~r~Los Los Los !!!",5000,6);
TogglePlayerControllable(playerid, 1);
return 1;
}
Spawn:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if (Count == 0)
{
SetTimer("Counting",1000,false);
}else{
}
if IsPlayerInRangeOfPoint(playerid, RANGEOFSTARTER, x, y, z)*then
{
TogglePlayerControllable(playerid, 0);
}