Code venant du script area51 par la team sa-mp
public OnPlayerEnterCheckpoint(playerid) {
switch (gPlayerCheckpointStatus[playerid]) {
case CHECKPOINT_AREA51:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
EndTheRound(ATTACK_WIN);
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}
EndTheRound(winner) {
switch (winner) {
case ATTACK_WIN:
{
GameTextForAll("The attackers broke into Area 51.", 2000, 5);
KillTimer(gRoundTimer);
}
case DEFENCE_WIN:
{
GameTextForAll("Area 51 was successfully defended.", 2000, 5);
}
}
SetTimer("GameModeExitFunc", 5000, 0);
}
A toi d'adapter...