Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #include <a_samp>
  2. #include <kolory>
  3. #include <dcmd>
  4. #include <dini>
  5.  
  6. #define DIALOGLOGIN 1
  7. #define DIALOGREGISTER 2
  8.  
  9. #define NAZWASERWERA "Polski Server Role-Play"
  10.  
  11. main
  12. ()
  13. {}
  14.  
  15. public OnGameModeInit()
  16. {
  17. print(" ");
  18. print("*********Serwer Role-Play by MrByczek**********");
  19. print(" ");
  20. return 1;
  21. }
  22.  
  23. public OnPlayerSpawn(playerid)
  24. {
  25.  
  26. return 1;
  27. }
  28.  
  29. public OnPlayerRequestClass(playerid, classid)
  30. {
  31. SpawnPlayer(playerid);
  32. new string[500];
  33. new Gname[MAX_PLAYER_NAME];
  34. GetPlayerName(playerid, Gname, sizeof(Gname));
  35. format(string, sizeof(string), "/Gracze/%s.ini,Gname");
  36. if(dini_Exists(string))
  37. {
  38. format(string, sizeof(string), "[FFFFFF]Witaj[FF0000] %s[FFFFFF] na naszym serverze PSRP!\nTwoje konto zostało pomyślnie odnazlezione.\nWpisz swoje haslo aby sie zalogowac., Gname");
  39. ShowPlayerDialog(playerid, DIALOGLOGIN, DIALOG_STYLE_PASSWORD, NAZWASERWERA,string,"Loguj","Wyjdz");
  40. }
  41. else
  42. {
  43. ShowPlayerDialog(playerid, DIALOGREGISTER, DIALOG_STYLE_PASSWORD, "NAZWASERWERA",string,"Rejestruj","Wyjdz");
  44. }
  45. return 1;
  46. }
  47.  
  48. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  49. {
  50.  
  51.  
  52. public OnPlayerRequestSpawn(playerid)
  53. {
  54. return 0;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement