[pomoc] Kako maknuti autologin

Započeo [IF] mariomako, Maj 22, 2011, 12:59:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skriptu koju koristim : Hidmin
Detaljan opis problema: Kako da maknem autologin
Dio skripte:

   if(mysql_num_rows() != 0)
   {
       mysql_fetch_row(Query);
new values[5];
sscanf(Query, "p<|>{s[24]s[129]s[16]}a<i>[5]", values);
SetPVarInt(playerid, "Admin", values[0]);
GivePlayerMoney(playerid, values[1]);
SetPlayerScore(playerid, values[2]);
SetPVarInt(playerid, "Kills", values[3]);
SetPVarInt(playerid, "Deaths", values[4]);
SetPVarInt(playerid, "Logged", 1);
new name[MAX_PLAYER_NAME],string[264],string2[264];
    GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[*] %s, you've been automatically logged in.",name);
format(string2, sizeof(string), "[*] %s, âèå ñòå àâòîìàòñêè íà¼àâåíè.",name);
SCM(playerid, COLOR_LIMEGREEN, string, string2);
   }
    else
{
SCM(playerid, COLOR_LIMEGREEN, "[*] Your account has been found, please use \"/login\" to log in.","[*] Ã,àøàòà êîðèñíè÷êà ñìåòêà ïîñòîè, êîðèñòèòå \"/login\" çà äà ñå íà¼àâèòå.");
SCM(playerid, COLOR_LIGHTRED, "[*] You have 60 seconds (1 minut) to login, or will be kick!","[*] Èìàòå 60 ñåêóíäè (1 ìèíóòà) çà äà ñå íà¼àâèòå èëè å áèäåòå èçáàöåíè îä ñåðâåðîâ!");
           ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "This Nickname is registered!", "{FF0000}Infinity DM/Stunt\n{FFFFFF}Type password:", "Login", "Cancel");
SetTimerEx("nologinkick",60*1000,0,"i",playerid);
}


Slike: /

Poslednja Izmena: Maj 22, 2011, 12:59:22 POSLE PODNE od Mario Velickovski

Izbrisi SetPVarInt(playerid, "Logged", 1);

Citat: FireMan poslato Maj 22, 2011, 14:17:35 POSLE PODNE
Izbrisi SetPVarInt(playerid, "Logged", 1);
To mu treba da bi na diksonektu ako nije ulogovan nesacuvava podatke  :-*
Daj nam sve te komande sa login register...

Citat: eXtreme poslato Maj 22, 2011, 15:46:00 POSLE PODNE
Citat: FireMan poslato Maj 22, 2011, 14:17:35 POSLE PODNE
Izbrisi SetPVarInt(playerid, "Logged", 1);
To mu treba da bi na diksonektu ako nije ulogovan nesacuvava podatke  :-*
Daj nam sve te komande sa login register...


sredio sam moze lock !