Guest User

Untitled

a guest
Apr 14th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. forward LogReg(playerid);
  2. public LogReg(playerid)
  3. {
  4. KillTimer(LogRegTimer[playerid]); SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
  5. /////////////////////////////////////////////////////////////////////////////////////
  6. if(fexist(Korisnici(playerid)))
  7. {
  8. new loginstring[256];
  9. format(loginstring,sizeof(loginstring),""BELA"Dobrodosao na server!\n\n"BELA"Vas racun je "ZELENA"registrovan\n"BELA"Kako bi nastavili upisite vasu sifru.");
  10. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Login",loginstring, "Login", "Izlaz");
  11. }
  12. else
  13. {
  14. TextDrawHideForPlayer(playerid,Intro[0]); TextDrawHideForPlayer(playerid,Intro[1]); TextDrawHideForPlayer(playerid,Intro[2]);
  15. TextDrawHideForPlayer(playerid,Intro[3]); TextDrawHideForPlayer(playerid,Intro[4]); TextDrawHideForPlayer(playerid,Intro[5]);
  16. TextDrawHideForPlayer(playerid,Intro[6]); TextDrawHideForPlayer(playerid,Intro[7]); TextDrawHideForPlayer(playerid,Intro[8]);
  17. TextDrawHideForPlayer(playerid,Intro[9]); TextDrawHideForPlayer(playerid,Intro[10]);
  18. //if(ServerInfo[isRegistracija] == 1)
  19. //{
  20. //StatusKonekta(playerid, 5);
  21. //}
  22. //else if(ServerInfo[isRegistracija] != 0)
  23. {
  24. new info[128];
  25. strcat(info, ""ZUTA"Preci na registraciju?\n\n", sizeof(info));
  26. ShowPlayerDialog(playerid, 45, DIALOG_STYLE_MSGBOX, ""BELA"Register", info, "Da", "Ne");
  27. }
  28. }
  29. return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment