#7

if I understand you correctly:
pawn Код:
//to make the team defines, at top of script
#define TEAM_POLICE 0
#define TEAM_TERRORIST 1
#define TEAM_MEDIC 2
new gTeam[MAX_PLAYERS]; //will be the variable to check if the player is to a certain team
Now, here's an example of using gTeam to check what team a player is in
pawn Код:
if(gTeam[playerid] == TEAM_POLICE)
{
  SetPlayerColor(playerid, colorhere);
}
That will check if the player team is the TEAM_POLICE.

And this would be the timer:
pawn Код:
//top of script after #include <a_samp>
forward GiveCash();

//OnGameModeInit()
SetTimer("GiveCash", 120000, 1);

//Somewhere after main()
public GiveCash()
{
  for(new i = 0; i<MAX_PLAYERS; i++)
  {
   GivePlayerMoney(i, 1000);
  }
}
Reply


Messages In This Thread
Team - by LukiuzZ - 16.06.2009, 13:57
Re: Team - by Mr_Finnigan - 16.06.2009, 15:03
Re: Team - by Burridge - 16.06.2009, 15:29
Re: Team - by Klutty - 16.06.2009, 15:36
Re: Team - by Burridge - 16.06.2009, 15:47
Re: Team - by Burridge - 16.06.2009, 18:36
Re: Team - by Grim_ - 16.06.2009, 19:17
Re: Team - by Klutty - 16.06.2009, 19:41
Re: Team - by Burridge - 17.06.2009, 10:33
Re: Team - by Klutty - 17.06.2009, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)