PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(ccp[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
ccp[playerid] = 2;
SetPlayerCheckpoint(playerid, 1150.4137, -1572.1168, 12.8458, 6.5);
GameTextForPlayer(playerid, "Carregando...!", 5000, 6), PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
TogglePlayerControllable(playerid, false);
SetTimerEx("DescongelarP", 1000, false, "d", playerid);
return true;
}
if(ccp[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
ccp[playerid] = 0;
GivePlayerMoney(playerid, GetPlayerMoney(playerid) + random(5000) + 1000);
GameTextForPlayer(playerid, "Descarregando...!", 5000, 6), PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
TogglePlayerControllable(playerid, false);
SetTimerEx("DescongelarP", 1000, false, "d", playerid);
return true;
}
return true;
}
forward DescongelarP(playerid); public DescongelarP(playerid)
{
TogglePlayerControllable(playerid, true);
return true;
}
Manda um abraзo pra o pessoal do discord, minha internet estб pйssima, retornarei em breve.