Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_LOGIN)
- {
- if(!response) return KickIgraca(playerid);
- if(response)
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pSifra])
- {
- TogglePlayerSpectating(playerid,false);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pNovac]);
- SetPlayerScore(playerid, PlayerInfo[playerid][pSkor]);
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- gLoggedCheck[playerid] = 1;
- SetSpawnInfo(playerid,45,PlayerInfo[playerid][pSkin],1727.2626,-1667.0796,22.0867,0,0,0,0,0,0,0);
- SetPlayerInterior(playerid, 18);
- InDM[playerid] = 0;
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- ResetPlayerWeapons(playerid);
- SpawnPlayer(playerid);
- ResetUbistvaSmrti(playerid);
- nekickaj[playerid] = 1;
- KillTimer(g_LoginTimer[playerid]);
- }
- else
- {
- player_login[playerid]++;
- SCM(playerid, -1, ""SRWPLAVA"[R:DM] "BELA"Invalid password, try again!");
- if(player_login[playerid] > 3)
- {
- SCM(playerid, -1, ""SRWPLAVA"[R:DM] "BELA"Invalid password, you are kicked from the server!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment