[POMOĆ] Register/login sistem na jednom modu

Započeo [GM] JoLe.amx, April 04, 2012, 16:56:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pozz,., treba mi hitno pomoć, imam jedan mod, i udjem spojim ga na kući, udjem unutra i regam se, i idem relog i u server i opet traži da se regam, neznam kako to da popravim. Molim vas hitno pomoć :/
$$$$$$Mapper$$$$$$$

jel u dialogu?daj nam onda OnPlayerConnect i dialogresponse

da dijalogu je,
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid, "http://www.croherze.com/introbozic.mp3");
    SetPlayerCameraPos(playerid, -2704.532470,378.131256,14.979453);
SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
GangZoneShowForPlayer(playerid, RUSGZ, 0xFFFF0096);
GangZoneShowForPlayer(playerid, FAGZ, 0x0000FF96);
SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
GangZoneShowForPlayer(playerid, GMGZ, 0x00FF0096);
GangZoneShowForPlayer(playerid, BMGZ, 0x3E887496);
ping[playerid] = 0;
pokusaji[playerid] = 0;
GPSon[playerid] = 0;
GPSba[playerid] = 0;
heal[playerid] = 0;
Cit[playerid] = 0;
GPSdo[playerid] = 0;
GPSsp[playerid] = 0;
Radio[playerid] = 0;
UBanci[playerid] = 0;
CB[playerid] = 0;
// plivanje1[playerid] = 0;
// plivanje2[playerid] = 0;
//plivanje3[playerid] = 0;
new stringe[128];
format( files,sizeof(files), BAN_FILE, PlayerName(playerid) );
if( fexist(files) )
{
  format( stringe, sizeof(stringe), ":: %s ::", PlayerName(playerid) );
  SendClientMessage(playerid, -1, stringe);
  SendClientMessage(playerid, -1, "Vi ste banani sa ovog servera." );
  SendClientMessage(playerid, -1, /" );
  Kick(playerid);
}
    new naslov2[128], text[1024], strText[104];
    format(strText, 35, USER_FILE, PlayerName(playerid));
    if(!INI_Exists(strText))
    {
    format(naslov2, sizeof(naslov2), "Registracija");
    format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na CroHerzegovina DeathMatch server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
    else
    {
        format(naslov2, sizeof(naslov2), ""#COL_WHITE"Logiranje");
        format(text, sizeof(text),""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na CroHerzegovina DeathMatch server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun je pronaden\n\n\nMolimo upisi svoju lozinku da udjes na server:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, naslov2, text, "Login", "Odustani");
    }
SetPVarInt(playerid, "Joinned", 1);
PageSize(playerid);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
OnPlayerLogout(playerid);
SendDeathMessage(INVALID_PLAYER_ID,playerid, 201);
return 1;
}

public OnPlayerSpawn(playerid)
{
new string[128], Sati, Min, Sec, Godina, Mjesec, Dan;
getdate(Godina, Mjesec, Dan);
gettime(Sati, Min, Sec);
if(PlayerInfo[playerid][pSH] < 1.0)
{
PlayerInfo[playerid][pSH] = 50.0;
}
StopAudioStreamForPlayer(playerid);
SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
SetPlayerPosEx(playerid, -2706.289306,376.629730,4.968364);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
GivePlayerWeapon(playerid, 24, 50);
GivePlayerWeapon(playerid, 32, 150);
SetPlayerHealth(playerid, PlayerInfo[playerid][pSH]);
TextDrawShowForPlayer(playerid, KizlaRandomP);
SetPlayerColor(playerid, COLOR_WHITE);
PageSize(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 180.772293);
if(PlayerInfo[playerid][Clan] == 1 || PlayerInfo[playerid][Lider] == 1)//gm
{
SetPlayerPosEx(playerid, -2176.645263,966.479309,80.000000);
SetPlayerFacingAngle(playerid, 92.622077);
SetPlayerColor(playerid, COLOR_GREEN);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 32, 350);
GivePlayerWeapon(playerid, 26, 250);
}
$$$$$$Mapper$$$$$$$