Edit: You might want to fix the indentations.
pawn Код:
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
SetPlayerScore(playerid,PlayerInfo[playerid][pScores]);
SetSpawnInfo(playerid, PlayerInfo[playerid][pSkin], 0, 1310.3594,-1370.1094,13.5715,177.9343, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
GivePlayerCash(playerid, PlayerInfo[playerid][pCash]);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerTime(playerid, 22, 0);
IsLogged[playerid] = true;
ClearText(playerid);
SavePlayer(playerid);
///////////////////////////
{
new string[128];
new str[128];
SCM(playerid, COLOR_ORANGE, "________________________________________________________________________________________________________________________");
format(string, sizeof(string), ""COL_GREY"Dobrodosao na server "COL_CYAN"%s"COL_GREY" ,ljepo te vidjeti opet na serveru.", GetName(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);
if(PlayerInfo[playerid][pAdmin] > 1)
format(str, sizeof(str), ""COL_GREY"Ulogiran si kao "COL_ORANGE"Admin "COL_GREY"["COL_CYAN"%d"COL_GREY"].", PlayerInfo[playerid][pAdmin]);
SCM(playerid, COLOR_ORANGE, str);
SCM(playerid, COLOR_ORANGE, "________________________________________________________________________________________________________________________");
}
new string[128];
if(PlayerInfo[playerid][pAdmin] > 1)
{
format(string, 128, "[SERVER]: "COL_GREY"Admin "COL_ORANGE"%s "COL_GREY"["COL_CYAN"%d"COL_GREY"] je usao na server.", GetName(playerid), PlayerInfo[playerid][pAdmin]);
SendMessageToAdmins(COLOR_ORANGE, string);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "[SERVER]: "COL_WHITE"Izbaceni ste sa servera jer ste pogrijesili lozinku!");
SetTimer("KickTime", 500, 0);
}
return 1;
}
}
}
return 1;
}