DjoLe11

Untitled

Jul 28th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. if(dialogid == DIALOG_LOGIN)
  2. {
  3. if(!response) return KickIgraca(playerid);
  4. if(response)
  5. {
  6. if(udb_hash(inputtext) == PlayerInfo[playerid][pSifra])
  7. {
  8. TogglePlayerSpectating(playerid,false);
  9. GivePlayerMoney(playerid, PlayerInfo[playerid][pNovac]);
  10. SetPlayerScore(playerid, PlayerInfo[playerid][pSkor]);
  11. SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  12. gLoggedCheck[playerid] = 1;
  13. SetSpawnInfo(playerid,45,PlayerInfo[playerid][pSkin],1727.2626,-1667.0796,22.0867,0,0,0,0,0,0,0);
  14. SetPlayerInterior(playerid, 18);
  15. InDM[playerid] = 0;
  16. SetPlayerHealth(playerid, 100);
  17. SetPlayerArmour(playerid, 100);
  18. ResetPlayerWeapons(playerid);
  19. SpawnPlayer(playerid);
  20. ResetUbistvaSmrti(playerid);
  21. nekickaj[playerid] = 1;
  22. KillTimer(g_LoginTimer[playerid]);
  23.  
  24.  
  25. }
  26. else
  27. {
  28. player_login[playerid]++;
  29. SCM(playerid, -1, ""SRWPLAVA"[R:DM] "BELA"Invalid password, try again!");
  30. if(player_login[playerid] > 3)
  31. {
  32. SCM(playerid, -1, ""SRWPLAVA"[R:DM] "BELA"Invalid password, you are kicked from the server!");
  33. }
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment