Need help with checkpoint(Area51 GM)
#1

Hello guys,
I have problem with Checkpoint in my GM.The GM has two parts break in and break out.In break in the attackers have to break into area51 base and in the break out mod the attackers have to break out from the base.

Break-In:
Skin 121 will get a checkpoint in area 51.Once he is in the checkpoint the gates of area51 are breached and the checkpoint is to be set to all the players in the team.

My Problem:
Once I enter the checkpoint to breach the gates it sets the checkpoint but only for that particular point of time once the player enter that checkpoint the checkpoint disappears and once again when I spawn with the same skin I am prompted to breach the gates again to get the checkpoint.

Script:

public OnPlayerEnterCheckpoint(playerid)
{
check=check+1;
if(GetPlayerSkin(playerid)==121)
{
GameTextForAll("~b~Gates ~w~are ~p~breached",1000,3);
MoveObject(gate1,220,1875.5999755859,13.8999996185 3,0.010);
MoveObject(gate2,207.39999389648,1875.5999755859,1 3.89999961853,0.010);
DisablePlayerCheckpoint(playerid);
gObjectiveRed=playerid;
}
if(gTeam[playerid]==Attackers)
{
for(check=0;check<=1;check++)
{
SetPlayerRaceCheckpoint(playerid,0,268.5445,1883.7 351,-30.0938,268.5445,1883.7351,-30.0938,1.3665);
}
}
}
Reply


Messages In This Thread
Need help with checkpoint(Area51 GM) - by bhuvanesh - 02.08.2012, 17:15
Re: Need help with checkpoint(Area51 GM) - by Misiur - 02.08.2012, 17:26
Re: Need help with checkpoint(Area51 GM) - by bhuvanesh - 02.08.2012, 17:37

Forum Jump:


Users browsing this thread: 3 Guest(s)