Get a players team (Not with id)
#6

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
You could create variables and do those, just like an Admin system.
pawn Код:
new team1[MAX_PLAYERS];
new team1str[MAX_PLAYERS][128]; //To set the name of the team so it's a str var too. We can use other ways too but this is bit easy.

public OnPlayerSpawn(playerid)
{
  team1[playerid] = 1;
  team1str[playerid] = "EXAMPLE";
  return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
 new Lname[MAX_PLAYER_NAME];
 GetPlayerName(playerid, Lname, sizeof(Lname));
 new str[128];
 format(str, sizeof(str), "%s has left the team server. (Team ID:%d | Team name:%s)", Lname, team1[playerid], team1str[playerid]);
 SendClientMessageToAll(0xFF0000, str);
 return 1;
}
I believe it will output like this:
Lordz has left the team server. (Team ID:1 | Team name:EXAMPLE)
But that just gets a players name ??.. Sorry if I misunderstood... But I want something like GetPlayerTeam but with out id/s...
Reply


Messages In This Thread
Get a players team (Not with id) - by davve95 - 13.12.2012, 15:42
Re: Get a players team (Not with id) - by [HK]Ryder[AN] - 13.12.2012, 15:44
Re: Get a players team (Not with id) - by davve95 - 13.12.2012, 15:59
Re: Get a players team (Not with id) - by tyler12 - 13.12.2012, 16:06
Re: Get a players team (Not with id) - by Lordzy - 13.12.2012, 16:11
Re: Get a players team (Not with id) - by davve95 - 13.12.2012, 16:14
Re: Get a players team (Not with id) - by Lordzy - 13.12.2012, 16:39
Re: Get a players team (Not with id) - by davve95 - 13.12.2012, 17:00
Re: Get a players team (Not with id) - by Lordzy - 13.12.2012, 18:30
Re: Get a players team (Not with id) - by davve95 - 13.12.2012, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)