SA-MP Forums Archive
C4 planting. Two checkpoints two teams. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: C4 planting. Two checkpoints two teams. (/showthread.php?tid=150530)



C4 planting. Two checkpoints two teams. - -Rebel Son- - 26.05.2010

Ok. i Dont got any code to display. but im here for a questions.

Is it possible to have a checkpoint for each team. for the oposite team to plant C4. ? Can i get a example code?


Re: C4 planting. Two checkpoints two teams. - Kyle - 26.05.2010

http://pastebin.com/EUzG8PP2


Re: C4 planting. Two checkpoints two teams. - -Rebel Son- - 26.05.2010

I know that. but How would i go about the two checkpoints themselves? if the team is in the others checkpoint. becuase as far as i know. only one checkpoint is aloud ..


Re: C4 planting. Two checkpoints two teams. - Conroy - 26.05.2010

Only the team will see their own checkpoint.

The limit is 1 checkpoint per player.


Re: C4 planting. Two checkpoints two teams. - boelie - 26.05.2010

both teams can have one checkpoint with setplayercheckpoint

so it would look something like this;

public OnPlayerSpawn
{

if(getplayerteam == 1)
{
setplayercheckpoint
}

if(getplayerteam == 2)
{


Re: C4 planting. Two checkpoints two teams. - -Rebel Son- - 26.05.2010

Ok, i got it. now how would i set each checkpoint up for each team? because the wiki says only 1 checkpoint can be visible at a time. so .. how would i make so each team can plant a bomb in each others base?


Re: C4 planting. Two checkpoints two teams. - boelie - 26.05.2010

It means one checkpoint for each player

just try it like i showed you..ow..i see...under if(getplayer team == 2 i forgot the Setplayercheckpoint
so put setplayercheckpoint under there to
and then test it


Re: C4 planting. Two checkpoints two teams. - TruServe - 26.05.2010

Not sure if there is a release here, but you can take a capture the flag script and look at that, they should have a similar checkpoint system for two teams. Or any other tatical objective gametype.


Re: C4 planting. Two checkpoints two teams. - [HiC]TheKiller - 26.05.2010

http://forum.sa-mp.com/index.php?top...1092#msg501092

Exactly what you want.


Re: C4 planting. Two checkpoints two teams. - -Rebel Son- - 26.05.2010

Thanks killer. Im examining the code right now!