Hallo ich habe eine frage ob somit mein gTeam abgespeichert wird?
enum Info
{
passwort[128],
skin,
admin,
Team, //
};
OnPlayerConnect
if(dini_Exists(save))
{
SendClientMessage(playerid, 0xFFFFFFAA, "Willkommen bei SA:MP 0.3 Server");
SendClientMessage(playerid, 0xFFFFFFAA, "Dein Account wurde wiedererkannt.");
SendClientMessage(playerid, 0xFFFFFFAA, "Du kannst dich jetzt einloggen.");
SendClientMessage(playerid, 0xFFFFFFAA, "Benutze dazu /login [passwort].");
GivePlayerMoney(playerid,dini_Int(save,"Geld"));
SetPlayerSkin(playerid,dini_Int(save,"Skin"));
SetPlayerTeam(playerid,dini_Int(save,"Team")); //Hier
}
OnPlayerDisconect
if(dini_Exists(save))
{
dini_IntSet(save,"Geld",GetPlayerMoney(playerid));
dini_IntSet(save,"Skin",GetPlayerSkin(playerid));
dini_IntSet(save,"admin",GetPlayerSkin(playerid));
dini_IntSet(save,"Team",GetPlayerTeam(playerid)); //Hier
}
Bei OnPlayerSpawn
SetPlayerTeam(playerid,dini_Int(save,"Team"));
P.S: SelfMade
LG ALPHA