04.07.2017, 09:32
This code is not working anymore,with what can i replace or how to make a choice for this
Do i need any include to make this work or what?
PHP код:
public OnCheckpointEXIT(playerid, checkpointid)
{
switch(checkpointid)
{
case NV_UNI_CP3:
{
if(IsRobbingUNI{playerid} == true)
{
KillTimer(unitimer{playerid});
IsRobbingUNI{playerid} = false;
GameTextForPlayer(playerid,"~r~Robbery Failed", 3000, 5);
SendClientMessage(playerid,RED,"You have left the checkpoint and failed the robbery.");
}
else
{
IsRobbingUNI{playerid} = false;
}
}
case FBI_ROB:
{
if(IsRobbingFBI{playerid} == true)
{
KillTimer(fbitimer{playerid});
IsRobbingFBI{playerid} = false;
GameTextForPlayer(playerid,"~r~Robbery Failed", 3000, 5);
SendClientMessage(playerid,RED,"You have left the checkpoint and failed the robbery.");
}
else
{
IsRobbingFBI{playerid} = false;
}
}
case CIA_CP3:
{
if(IsRobbingCIA{playerid} == true)
{
KillTimer(ciatimer{playerid});
IsRobbingCIA{playerid} = false;
GameTextForPlayer(playerid,"~r~Robbery Failed", 3000, 5);
SendClientMessage(playerid,RED,"You have left the checkpoint and failed the robbery.");
}
else
{
IsRobbingCIA{playerid} = false;
}
}
}
}
return 1;
}