SAM Help
#1

Hello, I saw this topic ==> https://sampforum.blast.hk/showthread.php?tid=115695

I use this include, and it works perfectly, but now I want to make the sams to fire only on a defined team. All in a filterscript.

My teams are defined in my GM, they are cops and gangsta.


Is it possible to do that ?

Thanks a lot =)
Reply
#2

HEEEEEEEEEEEEELP PLEASE !!!
Reply
#3

pawn Code:
for new(i; i < MAX_PLAYERS; i++)
{
    if(gTeam[i] == ...)
    {
        // disable SAM here
    }
    else
    {
        // enable SAM here
    }
}
Reply
#4

Yes, but it's in a filterscript, and the teams are defined in the GM. And take a lok at the include, I think it's the include that I must change ... Can you look at the include to help me please ? =)
Reply
#5

Not sure if it works. If you get an error, post it

pawn Code:
for new(i; i < MAX_PLAYERS; i++)
{
    if(gTeam[i] == ...)
    {
        SAM_cancel(samid);
    }
}
Reply
#6

Quote:

You must use return 0; to cancel a SAM from firing now. SAM_cancel(); NO LONGER EXISTS!

I saw this. Where must I return 0 ?
Reply
#7

If each team has a different skin, then you can check the skin to determine in what team a player is.
So your filterscript doesn't need to know anything about the gamemode.
Reply
#8

Yeah, that's a good idea.

The teams are Cops ang Gangstas.

Cops ID = 4, 5, 6, 7
Gangstas ID = 0, 1, 2, 3

How can I set the SAM fire only on >Cops or Gangstas ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)