Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <kolory>
- #include <dcmd>
- #include <dini>
- #define DIALOGLOGIN 1
- #define DIALOGREGISTER 2
- #define NAZWASERWERA "Polski Server Role-Play"
- main
- ()
- {}
- public OnGameModeInit()
- {
- print(" ");
- print("*********Serwer Role-Play by MrByczek**********");
- print(" ");
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SpawnPlayer(playerid);
- new string[500];
- new Gname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Gname, sizeof(Gname));
- format(string, sizeof(string), "/Gracze/%s.ini,Gname");
- if(dini_Exists(string))
- {
- 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");
- ShowPlayerDialog(playerid, DIALOGLOGIN, DIALOG_STYLE_PASSWORD, NAZWASERWERA,string,"Loguj","Wyjdz");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOGREGISTER, DIALOG_STYLE_PASSWORD, "NAZWASERWERA",string,"Rejestruj","Wyjdz");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- public OnPlayerRequestSpawn(playerid)
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement