23.05.2017, 13:48
try it:
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
VerifyCheckpoint(playerid);
if(HasSetCheckpoint(playerid) == 1)
{
PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
HasSetCheckpoint(playerid) = 0;
SendClientMessage(playerid, RED, "Your currently set checkpoint has been removed.");
}
return 1;