SA-MP Forums Archive
Only for one team - 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: Only for one team (/showthread.php?tid=110840)



Only for one team - Ironboy500 - 28.11.2009

At the and of gamemode, how will I make that only for one team, example "TEAM_POLICE" come message: "Good Work!", and for "TEAM_WORKERS" - "Bad!"?


Re: Only for one team - MJ! - 28.11.2009

We don't know which script are you using , we don't know what functions have you created ...



Re: Only for one team - RyDeR` - 28.11.2009

If you use gTeam use if(gTeam[playerid] == TEAM_BLABLA) { ... }


Re: Only for one team - Mowgli - 28.11.2009

if its just to send to that team

if(TEAM_POLICE[playerid] == 1) //or gTeam[playerid] == TEAM_POLICE...however u using it
{
sendmessage
}
_________________________________________________

or, if u made it so u got a winner, i asume u got a global variable for points or sumin, then if ur TEAM_POLICE vs TEAM_ROBBER. and police win

if(Team_police[playeri] == 1 && PoliceScore > robbersocre)
{
sendmessage
}


Re: Only for one team - Retardedwolf - 28.11.2009

pawn Код:
if(gTeam[playerid] == TEAM_POLICE)
    SendClientMessage(playerid, COLOR_RED, "Good Work!" )