Hey ich habe ein Account System ähnlich wie bei gf.
Jetzt will ich die Teams mit gTeam machen wie mach ich das die Teams auch bleiben? Und die Ränge?
enum pInfo
{
pPassword[128],
pKills,
pDeaths,
pCash,
pAdmin,
pMute,
pwarns,
pWarnReason1[128],
pWarnReason2[128],
pWarnReason3[128],
pModel
};
new File:hFile;
hFile = fopen(string, io_append);
new var[32];//
format(var, 32, "%s\n", PlayerInfo[playerid][pPassword]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Mute=%d\n",PlayerInfo[playerid][pMute]);fwrite(hFile, var);
format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
format(var, 32, "Warns=%d\n",PlayerInfo[playerid][pwarns]);fwrite(hFile, var);
format(var, 32, "WarnReason1=%d\n",PlayerInfo[playerid][pWarnReason1]);fwrite(hFile, var);
format(var, 32, "WarnReason2=%d\n",PlayerInfo[playerid][pWarnReason2]);fwrite(hFile, var);
format(var, 32, "WarnReason3=%d\n",PlayerInfo[playerid][pWarnReason3]);fwrite(hFile, var);
GivePlayerMoney(playerid,1000);
fclose(hFile);
SendClientMessage(playerid, COLOR_WHITE, "Erfolgreich registriert!");
SendClientMessage(playerid, COLOR_WHITE, "Gebe nächstes mal /login <password> zum einloggen ein.");
OnPlayerLogin(playerid,PlayerInfo[playerid][pPassword]);