C4 planting. Two checkpoints two teams.
#1

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?
Reply
#2

http://pastebin.com/EUzG8PP2
Reply
#3

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 ..
Reply
#4

Only the team will see their own checkpoint.

The limit is 1 checkpoint per player.
Reply
#5

both teams can have one checkpoint with setplayercheckpoint

so it would look something like this;

public OnPlayerSpawn
{

if(getplayerteam == 1)
{
setplayercheckpoint
}

if(getplayerteam == 2)
{
Reply
#6

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?
Reply
#7

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
Reply
#8

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.
Reply
#9

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

Exactly what you want.
Reply
#10

Thanks killer. Im examining the code right now!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)