SA-MP Forums Archive
Get player 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)
+--- Thread: Get player team (/showthread.php?tid=618543)



Get player team - StrikerZ - 07.10.2016

Hi. I'm using gTeam with lspd and robbers define. Now i making a system to save the current team in which player is on and will when again log in will get in the team i.e. the saved file will be called back. I already set up the save/load of positions. All the thing is left is teams. Any idea on how do i get the team of player in which he is?


Re: Get player team - JaKe Elite - 07.10.2016

You have already mentioned your answer lol. gTeam, gTeam is the key to get the team of the player ....


Re: Get player team - StrikerZ - 07.10.2016

But how will i use it to get the team?


Re: Get player team - Mencent - 07.10.2016

Hello!

What is your problem to convert this? Use https://sampwiki.blast.hk/wiki/GetPlayerTeam or your variable gTeam.
It depends where you save this value of the Team.


Re: Get player team - StrikerZ - 07.10.2016

Ah... understand. So what should i save it into? the team and the position of player?


Re: Get player team - Mencent - 07.10.2016

Only the Team, the Position you can set in the script when you check which Team the Player is.