dUserSetINT(PlayerName2(playerid)).("RegisterDate",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("AdminLevel",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("VIPLevel",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Score",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Skin",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Kills",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("IP",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Banned",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Seconds",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Minutes",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Hours",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("povolani",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
TextDrawShowForPlayer(playerid, gastan);
return 1;
}
Vše sa mi uklada do jednej zložky ked sa regnem
ale ked sa regnem a odpojim a pride znova na server tam mi nenapiše že kolko min som bol na server a tak kolko som zabil kolko mam penazi pri sebe a tak dalej
Dotaz
Fabricator 0
Sojte mam veliky problem s ukladaniamy Tu davam onlayerconnect a on playerdisconnect
OnPlayerConnect:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_ORANGE,"=========================================================================");
SendClientMessage(playerid,COLOR_GREEN,"Vítam nas na Mojom server");
SendClientMessage(playerid,COLOR_GREEN,"Tento mod vyrobil Android viac /info");
SendClientMessage(playerid,COLOR_GREEN,"");
SendClientMessage(playerid,COLOR_GREEN,"Je tu vela zabavi a tak dalej ");
SendClientMessage(playerid,COLOR_GREEN,"Toto je SDRD (Stunt/Drift/Race/Dm)");
SendClientMessage(playerid,COLOR_GREEN,"Ak chcete aby sa vaše Score a tak dalej ukladalo prosim zaregistrujte sa");
SendClientMessage(playerid,COLOR_ORANGE,"==========================================================================");
PlayerPlaySound(playerid,1098,0,0,0);
Attach3DTextLabelToPlayer(TITUL, playerid, 0.0, 0.0, 0.25); //připneme ho k hráčovi
new PlayerName[MAX_PLAYER_NAME];
PlayerLogged[playerid] = 0;
new file[256];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(file, sizeof(file), SERVER_USER_FILE, PlayerName);
if (!dini_Exists(file)) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Register", "Vytajte na nasom servery, Prosim Zaregistrujte sa.", "Register", "Koniec");
if(fexist(file))
{
new plrIP[64];
GetPlayerIp(playerid, plrIP, 64);
if (PlayerInfo[playerid][iP] == GetPlayerIp(playerid, plrIP, 64))
{
PlayerInfo[playerid][RegisterDate] = dini_Int(file, "RegisterDate");
PlayerInfo[playerid][AdminLevel] = dini_Int(file, "AdminLevel");
PlayerInfo[playerid][VIPLevel] = dini_Int(file, "VIPLevel");
PlayerInfo[playerid][Cash] = dini_Int(file, "Money");
PlayerInfo[playerid][score] = dini_Int(file, "Score");
PlayerInfo[playerid][skin] = dini_Int(file, "Skin");
PlayerInfo[playerid][Kills] = dini_Int(file, "Kills");
PlayerInfo[playerid][Deaths] = dini_Int(file, "Deaths");
PlayerInfo[playerid][iP] = dini_Int(file, "IP");
PlayerInfo[playerid][banned] = dini_Int(file, "Banned");
PlayerInfo[playerid][seconds] = dini_Int(file, "Seconds");
PlayerInfo[playerid][Minutes] = dini_Int(file, "Minutes");
PlayerInfo[playerid][Hours] = dini_Int(file, "Hours");
PlayerLogged[playerid] = 1;
GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
SetPlayerScore(playerid, PlayerInfo[playerid][score]);
SendClientMessage(playerid, 0xB1FB44FF, "Ste uspešne Prihlasení.");
static R, G, B;
SetPlayerColor(playerid, random((R * 16777216)) + random((G * 65536)) + random((B*256)));
if(GetPlayerColor(playerid) == -1)
{
if(PlayerInfo[playerid][AdminLevel] == 0)
{
SetPlayerColor(playerid, random((R * 16777216)) + random((G * 65536)) + random((B*256)));
}
}
if (PlayerInfo[playerid][banned] == 1)
{
SendClientMessage(playerid, 0xFF444499, "Ste zabanovaný na server Unban si pítajte na našej stranke.");
Kick(playerid);
}
}
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Prihlasenie.", "Vytajte spat na server, Prosim prihlaste sa.", "Login", "Koniec");
}
TextDrawShowForPlayer(playerid, Lerry);
new ip[16];
GetPlayerIp(playerid, ip, 16);
if(strcmp(ip, "255.255.255.255", true) == 0)
{
Ban(playerid);
}
RemoveBuildingForPlayer(playerid, 3366, 276.6563, 2023.7578, 16.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1989.5469, 16.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1955.7656, 16.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3268, 276.6563, 2023.7578, 16.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1989.5469, 16.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1955.7656, 16.6328, 0.25);
RemoveBuildingForPlayer(playerid, 10763, -1255.8984, 47.1797, 45.9063, 0.25);
RemoveBuildingForPlayer(playerid, 10884, -1255.8984, 47.1797, 45.9063, 0.25);
TextDrawsShown[playerid] = false;
VHSCreated[playerid] = false;
LightRedHealthCreated[playerid] = false;
LightYellowSpeedCreated[playerid] = false;
return 1;
}
OnPlayerDisconnect:
public OnPlayerDisconnect(playerid, reason)
{
dUserSetINT(PlayerName2(playerid)).("RegisterDate",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("AdminLevel",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("VIPLevel",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Score",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Skin",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Kills",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("IP",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Banned",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Seconds",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Minutes",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("Hours",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
dUserSetINT(PlayerName2(playerid)).("povolani",povolani[playerid]); //To je aby mu to ulozilo to povolani po odpojeni ;D
TextDrawShowForPlayer(playerid, gastan);
return 1;
}
Vše sa mi uklada do jednej zložky ked sa regnem
ale ked sa regnem a odpojim a pride znova na server tam mi nenapiše že kolko min som bol na server a tak kolko som zabil kolko mam penazi pri sebe a tak dalej
Prosim Help dakujem
Link to comment
Share on other sites
9 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now