SA-MP Forums Archive
Saving gTeam with DUDB - 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: Saving gTeam with DUDB (/showthread.php?tid=141470)



Saving gTeam with DUDB - Assyria - 13.04.2010

Hello!

I was just wondering if someone knows, how to save gTeams with dudb?

For example, here is code for saving skin:
Код:
Save -> ssc_UserSetInt(PlayerName(playerid),"skin",GetPlayerSkin(playerid));
 Load -> SetPlayerSkin(playerid,ssc_UserInt(PlayerName(playerid),"skin"));
But how to do that for gTeams?

Regards,
Assyria


Re: Saving gTeam with DUDB - Correlli - 13.04.2010

pawn Код:
/* save */
ssc_UserSetInt(PlayerName(playerid), "team", gTeam[playerid]);
pawn Код:
/* load */
gTeam[playerid] = ssc_UserInt(PlayerName(playerid), "team");