Tes sure de ton Code
[EDIT]J'ai des erreur pouvez m'aider
public OnPlayerEnterCheckpoint(playerid)
{
switch(desbomb[playerid])
case 1:
{
if(gTeam[playerid] == TEAM_Terroriste)
{
SendClientMessage(playerid, COLOR_YELLOW,"Vous avez amorcé la bomb!!");
SendClientMessageToAll(COLOR_LIGHTBLUE,"> Les terroristes on amorcé la bomb !");
for(new i = 0; i < MAX_PLAYERS; i++)
{
DisablePlayerCheckpoint(i);
}
SetTimer("desb", 1000, 0);
SetTimer("bomb", 1000, 0);
}
else if(gTeam[playerid] == TEAM_Anti-Terroriste)
{
SendClientMessage(playerid, COLOR_YELLOW,"La Bomb n'est pas amorcé !!");
}
SetPlayerCheckpoint(playerid,2035.2924,1014.1985,10.9446, 10.0);
}
case 2:
{
if(gTeam[playerid] == TEAM_Terroriste)
{
SendClientMessage(playerid, COLOR_YELLOW,"Vous avez déja amorcé la bomb!!");
}
else if(gTeam[playerid] == TEAM_Anti-Terroriste)
{
SendClientMessageToAll(COLOR_LIGHTBLUE,"> Les Anti-Terroriste on désamorcé la Bomb !");
SendClientMessage(playerid, COLOR_YELLOW,"Vous avez désamorcez la Bomb !!");
SetTimer("AntiGagne", 1000, 0);
}
SetPlayerCheckpoint(playerid,2035.2924,1014.1985,10.9446, 10.0);
}
}
return 1;
}