Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------( INCLUDE )----------------------------------------
- #include < a_samp >
- #include < a_objects >
- #include < core >
- #include < float >
- #include < time >
- #include < morphinc >
- #include < file >
- #include < foreach >
- #include < streamer >
- #include < YSI\y_ini >
- #include < YSI\y_commands >
- //---------------------------( IGRACI )-----------------------------------------
- #undef MAX_PLAYERS
- #define MAX_PLAYERS 150
- //---------------------------( TABSIZE )----------------------------------------
- #pragma tabsize 0
- //---------------------------( BOJE )-------------------------------------------
- #define BELA "{FFFFFF}"
- #define ZELENA "{6EF83C}"
- #define CRVENA "{F81414}"
- #define ZUTA "{F3FF02}"
- #define ORANGE "{FFAF00}"
- #define SPLAVA "{00C0FF}"
- #define ZPLAVA "{22C7F5}"
- #define PLAVA "{0049FF}"
- #define TPLAVA "{1A94E6}"
- #define ROZA "{FF00EA}"
- #define CMDC "{B8FF02}"
- #define SERVER "{AFE7FF}"
- #define SZELENA "{C9FFAB}"
- #define LJUB "{EE11EE}"
- #define SIVA "{C0C0C0}"
- #define CRVENA2 "{FF6347}"
- #define PPLAVA "{0084e3}"
- #define SCRV2 "{FF6347}"
- #define BALLASC "{D1345B}"
- #define HZELENA "{04CC29}"
- #define ZUTA2 "{FFCC00}"
- #define SVETLOCRVENA "{F23A0D}"
- #define ZUTA3 "{FBE204}"
- #define BELKASTA "{FFF1AF}"
- #define COLOR_WHITE 0xFFFFFFAA
- #define GROVE 0x00D900C8
- #define AZUTA 0xFFC801C8
- #define BELA2 0xFFFFFFAA
- #define PROX 0xC2A2DAAA
- #define SCRVENA 0xFF6347AA
- #define COLOR_GRAD2 0xBFC0C2FF
- #define TEAM_HIT_COLOR 0xFFFFFF00
- #define COLOR_YELLOW 0xDABB3EAA
- #define COLOR_BLACK 0x000000FF
- #define COLOR_BLUE 0x0066FFFF
- #define PURPLE1 0xF9B7FFAA
- #define PURPLE2 0xE6A9ECAA
- #define PURPLE3 0xC38EC7AA
- #define PURPLE4 0xD2B9D3AA
- #define PURPLE5 0xC6AEC7AA
- //----------------------------( EVENT BOJE )------------------------------------
- #define COLOR_RED 0xAA3333AA
- #define COLOR_LIGHTRED 0xFF6347AA
- #define SVIJETLOPLAVA 0x33CCFFAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COL_NARANDZASTA 0xFF9933FF
- //---------------------------( PODESAVANJA )------------------------------------
- #define BAN_FOLDER "Banovani/%s.ini"
- #define SCM SendClientMessage
- #define SCMTA SendClientMessageToAll
- #define IPI INVALID_PLAYER_ID
- #define MIN_DUZINA_LOZINKE 6
- #define MAX_DUZINA_LOZINKE 14
- #define MAX_VOZILA 1000
- //---------------------------( SKRACENICE )-------------------------------------
- #define SCM SendClientMessage
- #define SCMTA SendClientMessageToAll
- #define SPD ShowPlayerDialog
- #define DSL DIALOG_STYLE_LIST
- #define DSB DIALOG_STYLE_MSGBOX
- #define DSI DIALOG_STYLE_INPUT
- #define PI PlayerInfo
- //---------------------------( DIALOZI )----------------------------------------
- #define DIALOG_REGISTER 1
- #define DIALOG_LOGIN 2
- #define REGLOG_PRAVILA 3
- #define PRAVILA 4
- #define DIALOG_PSPAWN 5
- #define DIALOG_SPODESAVANJA 6
- #define DIALOG_BANSTATUS 7
- #define DIALOG_RPIME 8
- ///////////////////////////////////////////////////
- //---------------------------( SPAWNOVI )---------------------------------------
- #define SPAWN_NORMAL 0
- //---------------------------( PlayerInfo )-------------------------------------
- #define KORISNICI "Korisnici/%s.ini"
- enum pInfo
- {
- pPass,
- pNovacDzep,
- pAdmin,
- pSupporter,
- pLevel,
- pSkin,
- pGodine,
- pDrzava,
- pSex,
- pTutorial,
- pEmail[128],
- pNovacBanka,
- pExp,
- pSatiIgre,
- pProveraSpawna,
- pBorbeniStil
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- ///////////////////////////////////////////
- ////////////////////////////////////////////
- #define SERVER_FILE "Server/Podesavanja.ini"
- enum Server
- {
- isRegistracija
- };
- new ServerInfo[Server];
- ///////////////////////////////////////////////////
- ///////////////////////////////////
- new Float:HeltiIgraca[MAX_PLAYERS];
- //-------------( FAJOVI )--------------
- /////////////////////////////
- new TutorialTimer[MAX_PLAYERS];
- new TutorialTimer2[MAX_PLAYERS];
- new TutorialTimer3[MAX_PLAYERS];
- new TutorialTimer4[MAX_PLAYERS];
- new TutorialTimer5[MAX_PLAYERS];
- new TutorialTimer6[MAX_PLAYERS];
- new NoviRegTimer1[MAX_PLAYERS];
- new NoviRegTimer2[MAX_PLAYERS];
- new NoviRegTimer3[MAX_PLAYERS];
- new NoviRegTimer4[MAX_PLAYERS];
- new UlogovanProvera[MAX_PLAYERS];
- new IntroTimer[MAX_PLAYERS];
- new IntroTimer2[MAX_PLAYERS];
- new IntroTimer3[MAX_PLAYERS];
- new IntroTimer4[MAX_PLAYERS];
- new IntroTimer5[MAX_PLAYERS];
- new LogRegTimer[MAX_PLAYERS];
- /////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////
- new Text:Tut[12][MAX_PLAYERS];
- new Text:LoginTextdraw[14];
- new Text:LOGINTD[2];
- new Text:Intro[11];
- new Text:tutorijal;
- new Text:RegLogi[13];
- new Text:TutorialSledi[7];
- new LoginPokusaji[MAX_PLAYERS];
- new Text:REGPRIPREMA[7];
- new freeze[MAX_PLAYERS];
- /////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////
- new Float:RandomSpawn[3][3] =
- {
- {828.5258,-1341.4259,11.0234},
- {1785.4883,-1629.6973,13.6552},
- {1647.3142,-2330.5313,13.5837}
- };
- new Float:RandomSpawn2[3][4]=
- {
- {1785.4883,-1629.6973,13.6552},
- {828.5258,-1341.4259,11.0234},
- {1647.3142,-2330.5313,13.5837}
- };
- ///////////////////////////////////////////////////////////////////////
- main()
- {
- print(" Mod je uspesno startovan.");
- print(" Uzivajte :). ");
- }
- ///////////////////////////////////////////////////////////////////////
- public OnGameModeInit()
- {
- ///////////////////////////////////////////////////////////////////
- REGPRIPREMA[0] = TextDrawCreate(464.000000, 264.875000, "okvir");
- TextDrawLetterSize(REGPRIPREMA[0], 0.000000, 0.558333);
- TextDrawTextSize(REGPRIPREMA[0], 196.000000, 0.000000);
- TextDrawAlignment(REGPRIPREMA[0], 1);
- TextDrawColor(REGPRIPREMA[0], 0);
- TextDrawUseBox(REGPRIPREMA[0], true);
- TextDrawBoxColor(REGPRIPREMA[0], 255);
- TextDrawSetShadow(REGPRIPREMA[0], 0);
- TextDrawSetOutline(REGPRIPREMA[0], 0);
- TextDrawFont(REGPRIPREMA[0], 1);
- REGPRIPREMA[1] = TextDrawCreate(294.000000, 266.187500, "logprog1");
- TextDrawLetterSize(REGPRIPREMA[1], 0.000000, 0.259722);
- TextDrawTextSize(REGPRIPREMA[1], 197.500000, 0.000000);
- TextDrawAlignment(REGPRIPREMA[1], 1);
- TextDrawColor(REGPRIPREMA[1], 0);
- TextDrawUseBox(REGPRIPREMA[1], true);
- TextDrawBoxColor(REGPRIPREMA[1], -16776961);
- TextDrawSetShadow(REGPRIPREMA[1], 0);
- TextDrawSetOutline(REGPRIPREMA[1], 0);
- TextDrawFont(REGPRIPREMA[1], 0);
- REGPRIPREMA[2] = TextDrawCreate(386.500000, 266.187500, "logprog2");
- TextDrawLetterSize(REGPRIPREMA[2], 0.000000, 0.266666);
- TextDrawTextSize(REGPRIPREMA[2], 289.000000, 0.000000);
- TextDrawAlignment(REGPRIPREMA[2], 1);
- TextDrawColor(REGPRIPREMA[2], 0);
- TextDrawUseBox(REGPRIPREMA[2], true);
- TextDrawBoxColor(REGPRIPREMA[2], -16776961);
- TextDrawSetShadow(REGPRIPREMA[2], 0);
- TextDrawSetOutline(REGPRIPREMA[2], 0);
- TextDrawFont(REGPRIPREMA[2], 0);
- REGPRIPREMA[3] = TextDrawCreate(462.500000, 266.187500, "logprog3");
- TextDrawLetterSize(REGPRIPREMA[3], 0.000000, 0.266666);
- TextDrawTextSize(REGPRIPREMA[3], 363.000000, 0.000000);
- TextDrawAlignment(REGPRIPREMA[3], 1);
- TextDrawColor(REGPRIPREMA[3], 0);
- TextDrawUseBox(REGPRIPREMA[3], true);
- TextDrawBoxColor(REGPRIPREMA[3], -16776961);
- TextDrawSetShadow(REGPRIPREMA[3], 0);
- TextDrawSetOutline(REGPRIPREMA[3], 0);
- TextDrawFont(REGPRIPREMA[3], 0);
- REGPRIPREMA[4] = TextDrawCreate(327.000000, 248.500000, "Kreiranje vaseg naloga ...");
- TextDrawLetterSize(REGPRIPREMA[4], 0.449999, 1.600000);
- TextDrawAlignment(REGPRIPREMA[4], 2);
- TextDrawColor(REGPRIPREMA[4], -1);
- TextDrawSetShadow(REGPRIPREMA[4], 0);
- TextDrawSetOutline(REGPRIPREMA[4], 1);
- TextDrawBackgroundColor(REGPRIPREMA[4], 51);
- TextDrawFont(REGPRIPREMA[4], 1);
- TextDrawSetProportional(REGPRIPREMA[4], 1);
- REGPRIPREMA[5] = TextDrawCreate(372.500000, 436.187500, "TRENUTNA VERZIJA SA-MP KLIJENTA:");
- TextDrawLetterSize(REGPRIPREMA[5], 0.307499, 1.241251);
- TextDrawAlignment(REGPRIPREMA[5], 1);
- TextDrawColor(REGPRIPREMA[5], -1);
- TextDrawSetShadow(REGPRIPREMA[5], 0);
- TextDrawSetOutline(REGPRIPREMA[5], 0);
- TextDrawBackgroundColor(REGPRIPREMA[5], 51);
- TextDrawFont(REGPRIPREMA[5], 2);
- TextDrawSetProportional(REGPRIPREMA[5], 1);
- REGPRIPREMA[6] = TextDrawCreate(603.000000, 422.625000, "0.3.7");
- TextDrawLetterSize(REGPRIPREMA[6], 0.449999, 1.600000);
- TextDrawAlignment(REGPRIPREMA[6], 1);
- TextDrawColor(REGPRIPREMA[6], -1);
- TextDrawSetShadow(REGPRIPREMA[6], 0);
- TextDrawSetOutline(REGPRIPREMA[6], 2);
- TextDrawBackgroundColor(REGPRIPREMA[6], 255);
- TextDrawFont(REGPRIPREMA[6], 3);
- TextDrawSetProportional(REGPRIPREMA[6], 1);
- //////////////////////////////////////////////////////////////////
- tutorijal = TextDrawCreate(320.000000, 438.000000, "zek zek dadumle, dadumle dadumle !");
- TextDrawAlignment(tutorijal, 2);
- TextDrawBackgroundColor(tutorijal, 255);
- TextDrawFont(tutorijal, 1);
- TextDrawLetterSize(tutorijal, 0.500000, 1.000000);
- TextDrawColor(tutorijal, -1);
- TextDrawSetOutline(tutorijal, 0);
- TextDrawSetProportional(tutorijal, 1);
- TextDrawSetShadow(tutorijal, 1);
- /////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////
- LOGINTD[0] = TextDrawCreate(214.500000, 434.437500, "~b~www.~w~uskoro~b~.info");
- TextDrawLetterSize(LOGINTD[0], 0.411999, 0.746875);
- TextDrawAlignment(LOGINTD[0], 1);
- TextDrawColor(LOGINTD[0], -1);
- TextDrawSetShadow(LOGINTD[0], 0);
- TextDrawSetOutline(LOGINTD[0], -1);
- TextDrawBackgroundColor(LOGINTD[0], 255);
- TextDrawFont(LOGINTD[0], 2);
- TextDrawSetProportional(LOGINTD[0], 1);
- LOGINTD[1] = TextDrawCreate(190.500000, 439.250000, "online gaming community");
- TextDrawLetterSize(LOGINTD[1], 0.414999, 0.996251);
- TextDrawAlignment(LOGINTD[1], 1);
- TextDrawColor(LOGINTD[1], -1);
- TextDrawSetShadow(LOGINTD[1], 0);
- TextDrawSetOutline(LOGINTD[1], 1);
- TextDrawBackgroundColor(LOGINTD[1], 255);
- TextDrawFont(LOGINTD[1], 2);
- TextDrawSetProportional(LOGINTD[1], 1);
- ////////////////////////////////////////////////////////////////////
- RegLogi[0] = TextDrawCreate(653.000000, -6.000000, ".");
- TextDrawBackgroundColor(RegLogi[0], 255);
- TextDrawFont(RegLogi[0], 1);
- TextDrawLetterSize(RegLogi[0], 1.100000, 18.700006);
- TextDrawColor(RegLogi[0], -1);
- TextDrawSetOutline(RegLogi[0], 0);
- TextDrawSetProportional(RegLogi[0], 1);
- TextDrawSetShadow(RegLogi[0], 1);
- TextDrawUseBox(RegLogi[0], 1);
- TextDrawBoxColor(RegLogi[0], 96);
- TextDrawTextSize(RegLogi[0], -20.000000, 17.000000);
- RegLogi[1] = TextDrawCreate(24.000000, 148.000000, "Prijava");
- TextDrawBackgroundColor(RegLogi[1], 255);
- TextDrawFont(RegLogi[1], 2);
- TextDrawLetterSize(RegLogi[1], 0.320000, 1.599999);
- TextDrawColor(RegLogi[1], -1);
- TextDrawSetOutline(RegLogi[1], 0);
- TextDrawSetProportional(RegLogi[1], 1);
- TextDrawSetShadow(RegLogi[1], 1);
- TextDrawSetSelectable(RegLogi[1], 1);
- TextDrawTextSize(RegLogi[1],100.0, 10.0);
- RegLogi[2] = TextDrawCreate(120.000000, 148.000000, "Registracija");
- TextDrawBackgroundColor(RegLogi[2], 255);
- TextDrawFont(RegLogi[2], 2);
- TextDrawLetterSize(RegLogi[2], 0.320000, 1.599999);
- TextDrawColor(RegLogi[2], -1);
- TextDrawSetOutline(RegLogi[2], 0);
- TextDrawSetProportional(RegLogi[2], 1);
- TextDrawSetShadow(RegLogi[2], 1);
- TextDrawSetSelectable(RegLogi[2], 1);
- TextDrawTextSize(RegLogi[2], 200.0, 10.0);
- RegLogi[3] = TextDrawCreate(252.000000, 148.000000, "Forum");
- TextDrawBackgroundColor(RegLogi[3], 255);
- TextDrawFont(RegLogi[3], 2);
- TextDrawLetterSize(RegLogi[3], 0.320000, 1.599999);
- TextDrawColor(RegLogi[3], -1);
- TextDrawSetOutline(RegLogi[3], 0);
- TextDrawSetProportional(RegLogi[3], 1);
- TextDrawSetShadow(RegLogi[3], 1);
- TextDrawSetSelectable(RegLogi[3], 1);
- TextDrawTextSize(RegLogi[3], 360.0, 10.0);
- RegLogi[4] = TextDrawCreate(349.000000, 148.000000, "TeamSpeak3");
- TextDrawBackgroundColor(RegLogi[4], 255);
- TextDrawFont(RegLogi[4], 2);
- TextDrawLetterSize(RegLogi[4], 0.320000, 1.599999);
- TextDrawColor(RegLogi[4], -1);
- TextDrawSetOutline(RegLogi[4], 0);
- TextDrawSetProportional(RegLogi[4], 1);
- TextDrawSetShadow(RegLogi[4], 1);
- TextDrawSetSelectable(RegLogi[4], 1);
- TextDrawTextSize(RegLogi[4], 400.0, 10.0);
- RegLogi[5] = TextDrawCreate(516.000000, 148.000000, "Credits");
- TextDrawBackgroundColor(RegLogi[5], 255);
- TextDrawFont(RegLogi[5], 2);
- TextDrawLetterSize(RegLogi[5], 0.320000, 1.599999);
- TextDrawColor(RegLogi[5], -1);
- TextDrawSetOutline(RegLogi[5], 0);
- TextDrawSetProportional(RegLogi[5], 1);
- TextDrawSetShadow(RegLogi[5], 1);
- TextDrawSetSelectable(RegLogi[5], 1);
- TextDrawTextSize(RegLogi[5], 550.0, 10.0);
- RegLogi[6] = TextDrawCreate(730.000000, 165.000000, "_");
- TextDrawBackgroundColor(RegLogi[6], 255);
- TextDrawFont(RegLogi[6], 1);
- TextDrawLetterSize(RegLogi[6], 0.500000, -0.300000);
- TextDrawColor(RegLogi[6], -1);
- TextDrawSetOutline(RegLogi[6], 0);
- TextDrawSetProportional(RegLogi[6], 1);
- TextDrawSetShadow(RegLogi[6], 1);
- TextDrawUseBox(RegLogi[6], 1);
- TextDrawBoxColor(RegLogi[6], 255);
- TextDrawTextSize(RegLogi[6], -43.000000, 0.000000);
- RegLogi[7] = TextDrawCreate(-14.000000, 165.000000, "loadsc13:loadsc13");
- TextDrawBackgroundColor(RegLogi[7], 255);
- TextDrawFont(RegLogi[7], 4);
- TextDrawLetterSize(RegLogi[7], 0.500000, 1.000000);
- TextDrawColor(RegLogi[7], -1);
- TextDrawSetOutline(RegLogi[7], 0);
- TextDrawSetProportional(RegLogi[7], 1);
- TextDrawSetShadow(RegLogi[7], 1);
- TextDrawUseBox(RegLogi[7], 1);
- TextDrawBoxColor(RegLogi[7], 255);
- TextDrawTextSize(RegLogi[7], 654.000000, 282.000000);
- RegLogi[8] = TextDrawCreate(730.000000, 149.000000, "_");
- TextDrawBackgroundColor(RegLogi[8], 255);
- TextDrawFont(RegLogi[8], 1);
- TextDrawLetterSize(RegLogi[8], 0.500000, -0.300000);
- TextDrawColor(RegLogi[8], -1);
- TextDrawSetOutline(RegLogi[8], 0);
- TextDrawSetProportional(RegLogi[8], 1);
- TextDrawSetShadow(RegLogi[8], 1);
- TextDrawUseBox(RegLogi[8], 1);
- TextDrawBoxColor(RegLogi[8], 255);
- TextDrawTextSize(RegLogi[8], -43.000000, 0.000000);
- RegLogi[9] = TextDrawCreate(670.000000, 439.000000, "_");
- TextDrawBackgroundColor(RegLogi[8], 255);
- TextDrawFont(RegLogi[9], 1);
- TextDrawLetterSize(RegLogi[9], 0.500000, 0.799999);
- TextDrawColor(RegLogi[9], -1);
- TextDrawSetOutline(RegLogi[9], 0);
- TextDrawSetProportional(RegLogi[9], 1);
- TextDrawSetShadow(RegLogi[9], 1);
- TextDrawUseBox(RegLogi[9], 1);
- TextDrawBoxColor(RegLogi[9], 255);
- TextDrawTextSize(RegLogi[9], -20.000000, 0.000000);
- RegLogi[10] = TextDrawCreate(90.000000, 437.000000, "Tokom igre mozete biti izlozeni scenama nasilnog i seksualnog karaktera, konzumiranju narkotika");
- TextDrawBackgroundColor(RegLogi[10], 255);
- TextDrawFont(RegLogi[10], 2);
- TextDrawLetterSize(RegLogi[10], 0.200000, 1.200000);
- TextDrawColor(RegLogi[10], -1);
- TextDrawSetOutline(RegLogi[10], 0);
- TextDrawSetProportional(RegLogi[10], 1);
- TextDrawSetShadow(RegLogi[10], 1);
- RegLogi[11] = TextDrawCreate(273.000000, 51.000000, "LN:RP");
- TextDrawBackgroundColor(RegLogi[11], 255);
- TextDrawFont(RegLogi[11], 2);
- TextDrawLetterSize(RegLogi[11], 0.649999, 5.499999);
- TextDrawColor(RegLogi[11], -1);
- TextDrawSetOutline(RegLogi[11], 1);
- TextDrawSetProportional(RegLogi[11], 1);
- RegLogi[12] = TextDrawCreate(263.000000, 95.000000, "online gaming community");
- TextDrawBackgroundColor(RegLogi[12], 255);
- TextDrawFont(RegLogi[12], 2);
- TextDrawLetterSize(RegLogi[12], 0.170000, 1.200000);
- TextDrawColor(RegLogi[12], -16776961);
- TextDrawSetOutline(RegLogi[12], 0);
- TextDrawSetProportional(RegLogi[12], 1);
- TextDrawSetShadow(RegLogi[12], 1);
- //------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
- LoginTextdraw[0] = TextDrawCreate(641.500000, 307.312500, "usebox");
- TextDrawLetterSize(LoginTextdraw[0], 0.000000, -0.025000);
- TextDrawTextSize(LoginTextdraw[0], -2.000000, 0.000000);
- TextDrawAlignment(LoginTextdraw[0], 1);
- TextDrawColor(LoginTextdraw[0], 0);
- TextDrawUseBox(LoginTextdraw[0], true);
- TextDrawBoxColor(LoginTextdraw[0], -65281);
- TextDrawSetShadow(LoginTextdraw[0], 0);
- TextDrawSetOutline(LoginTextdraw[0], 0);
- TextDrawFont(LoginTextdraw[0], 0);
- LoginTextdraw[1] = TextDrawCreate(641.500000, 310.375000, "usebox");
- TextDrawLetterSize(LoginTextdraw[1], 0.000000, 5.273611);
- TextDrawTextSize(LoginTextdraw[1], -1.500000, 0.000000);
- TextDrawAlignment(LoginTextdraw[1], 1);
- TextDrawColor(LoginTextdraw[1], 0);
- TextDrawUseBox(LoginTextdraw[1], true);
- TextDrawBoxColor(LoginTextdraw[1], 255);
- TextDrawSetShadow(LoginTextdraw[1], 0);
- TextDrawSetOutline(LoginTextdraw[1], 0);
- TextDrawFont(LoginTextdraw[1], 0);
- LoginTextdraw[2] = TextDrawCreate(18.000000, 364.000000, "LOADSUK:loadsc14");
- TextDrawLetterSize(LoginTextdraw[2], 0.000000, 0.000000);
- TextDrawTextSize(LoginTextdraw[2], 130.500000, 75.687500);
- TextDrawAlignment(LoginTextdraw[2], 1);
- TextDrawColor(LoginTextdraw[2], -1);
- TextDrawSetShadow(LoginTextdraw[2], 0);
- TextDrawSetOutline(LoginTextdraw[2], 0);
- TextDrawFont(LoginTextdraw[2], 4);
- LoginTextdraw[3] = TextDrawCreate(258.000000, 364.437500, "LOADSUK:loadsc1");
- TextDrawLetterSize(LoginTextdraw[3], 0.000000, 0.000000);
- TextDrawTextSize(LoginTextdraw[3], 130.000000, 75.687500);
- TextDrawAlignment(LoginTextdraw[3], 1);
- TextDrawColor(LoginTextdraw[3], -1);
- TextDrawSetShadow(LoginTextdraw[3], 0);
- TextDrawSetOutline(LoginTextdraw[3], 0);
- TextDrawFont(LoginTextdraw[3], 4);
- LoginTextdraw[4] = TextDrawCreate(242.500000, 357.187500, "usebox");
- TextDrawLetterSize(LoginTextdraw[4], 0.000000, 9.891667);
- TextDrawTextSize(LoginTextdraw[4], 157.500000, 0.000000);
- TextDrawAlignment(LoginTextdraw[4], 1);
- TextDrawColor(LoginTextdraw[4], 0);
- TextDrawUseBox(LoginTextdraw[4], true);
- TextDrawBoxColor(LoginTextdraw[4], 255);
- TextDrawSetShadow(LoginTextdraw[4], 0);
- TextDrawSetOutline(LoginTextdraw[4], 0);
- TextDrawFont(LoginTextdraw[4], 0);
- LoginTextdraw[5] = TextDrawCreate(491.000000, 361.125000, "usebox");
- TextDrawLetterSize(LoginTextdraw[5], 0.000000, 9.454167);
- TextDrawTextSize(LoginTextdraw[5], 406.000000, 0.000000);
- TextDrawAlignment(LoginTextdraw[5], 1);
- TextDrawColor(LoginTextdraw[5], 0);
- TextDrawUseBox(LoginTextdraw[5], true);
- TextDrawBoxColor(LoginTextdraw[5], 255);
- TextDrawSetShadow(LoginTextdraw[5], 0);
- TextDrawSetOutline(LoginTextdraw[5], 0);
- TextDrawFont(LoginTextdraw[5], 0);
- LoginTextdraw[6] = TextDrawCreate(500.500000, 366.625000, "LOADSUK:loadsc10");
- TextDrawLetterSize(LoginTextdraw[6], 0.000000, 0.000000);
- TextDrawTextSize(LoginTextdraw[6], 130.000000, 75.687500);
- TextDrawAlignment(LoginTextdraw[6], 1);
- TextDrawColor(LoginTextdraw[6], -1);
- TextDrawSetShadow(LoginTextdraw[6], 0);
- TextDrawSetOutline(LoginTextdraw[6], 0);
- TextDrawFont(LoginTextdraw[6], 4);
- LoginTextdraw[7] = TextDrawCreate(220.000000, 319.375000, "~y~ Last Night roleplay~N~ONLINE GAMING COMMUNITY");
- TextDrawLetterSize(LoginTextdraw[7], 0.370500, 1.683123);
- TextDrawAlignment(LoginTextdraw[7], 1);
- TextDrawColor(LoginTextdraw[7], -1);
- TextDrawSetShadow(LoginTextdraw[7], 0);
- TextDrawSetOutline(LoginTextdraw[7], 1);
- TextDrawBackgroundColor(LoginTextdraw[7], 51);
- TextDrawFont(LoginTextdraw[7], 2);
- TextDrawSetProportional(LoginTextdraw[7], 1);
- LoginTextdraw[8] = TextDrawCreate(648.000000, 113.062500, "usebox");
- TextDrawLetterSize(LoginTextdraw[8], 0.000000, 0.070833);
- TextDrawTextSize(LoginTextdraw[8], -3.000000, 0.000000);
- TextDrawAlignment(LoginTextdraw[8], 1);
- TextDrawColor(LoginTextdraw[8], 0);
- TextDrawUseBox(LoginTextdraw[8], true);
- TextDrawBoxColor(LoginTextdraw[8], -65281);
- TextDrawSetShadow(LoginTextdraw[8], 0);
- TextDrawSetOutline(LoginTextdraw[8], 0);
- TextDrawFont(LoginTextdraw[8], 0);
- LoginTextdraw[9] = TextDrawCreate(648.500000, 1.500000, "usebox");
- TextDrawLetterSize(LoginTextdraw[9], 0.000000, 5.223610);
- TextDrawTextSize(LoginTextdraw[9], -2.500000, 0.000000);
- TextDrawAlignment(LoginTextdraw[9], 1);
- TextDrawColor(LoginTextdraw[9], 0);
- TextDrawUseBox(LoginTextdraw[9], true);
- TextDrawBoxColor(LoginTextdraw[9], 255);
- TextDrawSetShadow(LoginTextdraw[9], 0);
- TextDrawSetOutline(LoginTextdraw[9], 0);
- TextDrawFont(LoginTextdraw[9], 0);
- LoginTextdraw[10] = TextDrawCreate(18.000000, 35.437500, "LOADSUK:loadsc8");
- TextDrawLetterSize(LoginTextdraw[10], 0.000000, 0.000000);
- TextDrawTextSize(LoginTextdraw[10], 130.000000, 75.687500);
- TextDrawAlignment(LoginTextdraw[10], 1);
- TextDrawColor(LoginTextdraw[10], -1);
- TextDrawSetShadow(LoginTextdraw[10], 0);
- TextDrawSetOutline(LoginTextdraw[10], 0);
- TextDrawFont(LoginTextdraw[10], 4);
- LoginTextdraw[11] = TextDrawCreate(245.500000, 35.437500, "LOADSUK:loadsc7");
- TextDrawLetterSize(LoginTextdraw[11], 0.000000, 0.000000);
- TextDrawTextSize(LoginTextdraw[11], 130.000000, 75.687500);
- TextDrawAlignment(LoginTextdraw[11], 1);
- TextDrawColor(LoginTextdraw[11], -1);
- TextDrawSetShadow(LoginTextdraw[11], 0);
- TextDrawSetOutline(LoginTextdraw[11], 0);
- TextDrawFont(LoginTextdraw[11], 4);
- LoginTextdraw[12] = TextDrawCreate(505.500000, 35.000000, "LOADSUK:loadsc2");
- TextDrawLetterSize(LoginTextdraw[12], 0.000000, 0.000000);
- TextDrawTextSize(LoginTextdraw[12], 130.000000, 75.687500);
- TextDrawAlignment(LoginTextdraw[12], 1);
- TextDrawColor(LoginTextdraw[12], -1);
- TextDrawSetShadow(LoginTextdraw[12], 0);
- TextDrawSetOutline(LoginTextdraw[12], 0);
- TextDrawFont(LoginTextdraw[12], 4);
- LoginTextdraw[13] = TextDrawCreate(253.500000, 295.312500, "~y~www.~w~uskoro~y~.com");
- TextDrawLetterSize(LoginTextdraw[13], 0.300500, 0.965625);
- TextDrawAlignment(LoginTextdraw[13], 1);
- TextDrawColor(LoginTextdraw[13], -1);
- TextDrawSetShadow(LoginTextdraw[13], 0);
- TextDrawSetOutline(LoginTextdraw[13], 0);
- TextDrawBackgroundColor(LoginTextdraw[13], 51);
- TextDrawFont(LoginTextdraw[13], 2);
- TextDrawSetProportional(LoginTextdraw[13], 1);
- ///////////////////////////////////////////////////////////////
- TutorialSledi[0] = TextDrawCreate(409.000000, 170.000000, "_");
- TextDrawBackgroundColor(TutorialSledi[0], 255);
- TextDrawFont(TutorialSledi[0], 1);
- TextDrawLetterSize(TutorialSledi[0], 0.579999, 5.299997);
- TextDrawColor(TutorialSledi[0], -1);
- TextDrawSetOutline(TutorialSledi[0], 0);
- TextDrawSetProportional(TutorialSledi[0], 1);
- TextDrawSetShadow(TutorialSledi[0], 1);
- TextDrawUseBox(TutorialSledi[0], 1);
- TextDrawBoxColor(TutorialSledi[0], 000050);
- TextDrawTextSize(TutorialSledi[0], 212.000000, 36.000000);
- TutorialSledi[1] = TextDrawCreate(230.000000, 177.000000, "Sledi tutorial");
- TextDrawBackgroundColor(TutorialSledi[1], 255);
- TextDrawFont(TutorialSledi[1], 2);
- TextDrawLetterSize(TutorialSledi[1], 0.500000, 1.000000);
- TextDrawColor(TutorialSledi[1], -1);
- TextDrawSetOutline(TutorialSledi[1], 0);
- TextDrawSetProportional(TutorialSledi[1], 1);
- TextDrawSetShadow(TutorialSledi[1], 1);
- TutorialSledi[2] = TextDrawCreate(245.000000, 195.000000, "sacekajte...");
- TextDrawBackgroundColor(TutorialSledi[2], 255);
- TextDrawFont(TutorialSledi[2], 2);
- TextDrawLetterSize(TutorialSledi[2], 0.500000, 1.000000);
- TextDrawColor(TutorialSledi[2], -1);
- TextDrawSetOutline(TutorialSledi[2], 0);
- TextDrawSetProportional(TutorialSledi[2], 1);
- TextDrawSetShadow(TutorialSledi[2], 1);
- TutorialSledi[3] = TextDrawCreate(405.000000, 170.000000, "_");
- TextDrawBackgroundColor(TutorialSledi[3], 255);
- TextDrawFont(TutorialSledi[3], 1);
- TextDrawLetterSize(TutorialSledi[3], 0.529999, -0.200002);
- TextDrawColor(TutorialSledi[3], -1);
- TextDrawSetOutline(TutorialSledi[3], 0);
- TextDrawSetProportional(TutorialSledi[3], 1);
- TextDrawSetShadow(TutorialSledi[3], 1);
- TextDrawUseBox(TutorialSledi[3], 1);
- TextDrawBoxColor(TutorialSledi[3], 848756735);
- TextDrawTextSize(TutorialSledi[3], 212.000000, 25.000000);
- TutorialSledi[4] = TextDrawCreate(409.000000, 220.000000, "_");
- TextDrawBackgroundColor(TutorialSledi[4], 255);
- TextDrawFont(TutorialSledi[4], 1);
- TextDrawLetterSize(TutorialSledi[4], 0.529999, -0.200002);
- TextDrawColor(TutorialSledi[4], -1);
- TextDrawSetOutline(TutorialSledi[4], 0);
- TextDrawSetProportional(TutorialSledi[4], 1);
- TextDrawSetShadow(TutorialSledi[4], 1);
- TextDrawUseBox(TutorialSledi[4], 1);
- TextDrawBoxColor(TutorialSledi[4], 848756735);
- TextDrawTextSize(TutorialSledi[4], 212.000000, 25.000000);
- TutorialSledi[5] = TextDrawCreate(409.000000, 170.000000, "_");
- TextDrawBackgroundColor(TutorialSledi[5], 255);
- TextDrawFont(TutorialSledi[5], 1);
- TextDrawLetterSize(TutorialSledi[5], 0.529999, 5.299997);
- TextDrawColor(TutorialSledi[5], -1);
- TextDrawSetOutline(TutorialSledi[5], 0);
- TextDrawSetProportional(TutorialSledi[5], 1);
- TextDrawSetShadow(TutorialSledi[5], 1);
- TextDrawUseBox(TutorialSledi[5], 1);
- TextDrawBoxColor(TutorialSledi[5], 848756735);
- TextDrawTextSize(TutorialSledi[5], 397.000000, 36.000000);
- TutorialSledi[6] = TextDrawCreate(217.000000, 170.000000, "_");
- TextDrawBackgroundColor(TutorialSledi[6], 255);
- TextDrawFont(TutorialSledi[6], 1);
- TextDrawLetterSize(TutorialSledi[6], 0.129999, 5.299997);
- TextDrawColor(TutorialSledi[6], -1);
- TextDrawSetOutline(TutorialSledi[6], 0);
- TextDrawSetProportional(TutorialSledi[6], 1);
- TextDrawSetShadow(TutorialSledi[6], 1);
- TextDrawUseBox(TutorialSledi[6], 1);
- TextDrawBoxColor(TutorialSledi[6], 848756735);
- TextDrawTextSize(TutorialSledi[6], 216.000000, 36.000000);
- //////////////////////////////////////////////////////////////
- Intro[0] = TextDrawCreate(467.000000, 305.562500, "usebox");
- TextDrawLetterSize(Intro[0], 0.000000, 15.627778);
- TextDrawTextSize(Intro[0], 175.000000, 0.000000);
- TextDrawAlignment(Intro[0], 1);
- TextDrawColor(Intro[0], 0);
- TextDrawUseBox(Intro[0], true);
- TextDrawBoxColor(Intro[0], 0x0066FFFF);
- TextDrawSetShadow(Intro[0], 0);
- TextDrawSetOutline(Intro[0], 0);
- TextDrawFont(Intro[0], 0);
- Intro[1] = TextDrawCreate(180.000000, 306.437500, "usebox");
- TextDrawLetterSize(Intro[1], 0.000000, 15.530555);
- TextDrawTextSize(Intro[1], 168.000000, 0.000000);
- TextDrawAlignment(Intro[1], 1);
- TextDrawColor(Intro[1], 0);
- TextDrawUseBox(Intro[1], true);
- TextDrawBoxColor(Intro[1], -65281);
- TextDrawSetShadow(Intro[1], 0);
- TextDrawSetOutline(Intro[1], 0);
- TextDrawFont(Intro[1], 0);
- Intro[2] = TextDrawCreate(475.500000, 306.437500, "usebox");
- TextDrawLetterSize(Intro[2], 0.000000, 15.530555);
- TextDrawTextSize(Intro[2], 463.000000, 0.000000);
- TextDrawAlignment(Intro[2], 1);
- TextDrawColor(Intro[2], 0);
- TextDrawUseBox(Intro[2], true);
- TextDrawBoxColor(Intro[2], 0x0066FFFF);
- TextDrawSetShadow(Intro[2], 0);
- TextDrawSetOutline(Intro[2], 0);
- TextDrawFont(Intro[2], 0);
- Intro[3] = TextDrawCreate(268.000000, 305.375000, "~b~L~w~ast ~b~N~w~ight ~n~ ~r~ roleplay");
- TextDrawLetterSize(Intro[3], 0.425999, 1.263124);
- TextDrawAlignment(Intro[3], 1);
- TextDrawColor(Intro[3], -1);
- TextDrawSetShadow(Intro[3], 0);
- TextDrawSetOutline(Intro[3], 0);
- TextDrawBackgroundColor(Intro[3], 51);
- TextDrawFont(Intro[3], 2);
- TextDrawSetProportional(Intro[3], 1);
- Intro[4] = TextDrawCreate(179.500000, 336.875000, "~b~S~w~kripteri:~r~Corleone");
- TextDrawLetterSize(Intro[4], 0.306499, 1.355000);
- TextDrawAlignment(Intro[4], 1);
- TextDrawColor(Intro[4], -1);
- TextDrawSetShadow(Intro[4], 0);
- TextDrawSetOutline(Intro[4], 0);
- TextDrawBackgroundColor(Intro[4], 51);
- TextDrawFont(Intro[4], 2);
- TextDrawSetProportional(Intro[4], 1);
- Intro[5] = TextDrawCreate(222.500000, 355.250000, "-");
- TextDrawLetterSize(Intro[5], 11.865000, 0.948126);
- TextDrawAlignment(Intro[5], 1);
- TextDrawColor(Intro[5], -1);
- TextDrawSetShadow(Intro[5], 0);
- TextDrawSetOutline(Intro[5], 1);
- TextDrawBackgroundColor(Intro[5], 51);
- TextDrawFont(Intro[5], 1);
- TextDrawSetProportional(Intro[5], 1);
- Intro[6] = TextDrawCreate(180.500000, 370.125000, "~b~M~w~apper:~y~C~w~orleone");
- TextDrawLetterSize(Intro[6], 0.379999, 1.162501);
- TextDrawAlignment(Intro[6], 1);
- TextDrawColor(Intro[6], -1);
- TextDrawSetShadow(Intro[6], 0);
- TextDrawSetOutline(Intro[6], 0);
- TextDrawBackgroundColor(Intro[6], 51);
- TextDrawFont(Intro[6], 2);
- TextDrawSetProportional(Intro[6], 1);
- Intro[7] = TextDrawCreate(264.500000, 279.562500, "-");
- TextDrawLetterSize(Intro[7], 7.455000, 0.829999);
- TextDrawAlignment(Intro[7], 1);
- TextDrawColor(Intro[7], -1);
- TextDrawSetShadow(Intro[7], 0);
- TextDrawSetOutline(Intro[7], 1);
- TextDrawBackgroundColor(Intro[7], 51);
- TextDrawFont(Intro[7], 1);
- TextDrawSetProportional(Intro[7], 1);
- Intro[8] = TextDrawCreate(239.000000, 264.250000, "~b~v~w~erzija ~y~s~w~kripte");
- TextDrawLetterSize(Intro[8], 0.449999, 1.600000);
- TextDrawAlignment(Intro[8], 1);
- TextDrawColor(Intro[8], -1);
- TextDrawSetShadow(Intro[8], 0);
- TextDrawSetOutline(Intro[8], 0);
- TextDrawBackgroundColor(Intro[8], 51);
- TextDrawFont(Intro[8], 2);
- TextDrawSetProportional(Intro[8], 1);
- Intro[9] = TextDrawCreate(304.000000, 286.562500, "~b~1.0");
- TextDrawLetterSize(Intro[9], 0.449999, 1.600000);
- TextDrawAlignment(Intro[9], 1);
- TextDrawColor(Intro[9], -1);
- TextDrawSetShadow(Intro[9], 0);
- TextDrawSetOutline(Intro[9], 0);
- TextDrawBackgroundColor(Intro[9], 51);
- TextDrawFont(Intro[9], 2);
- TextDrawSetProportional(Intro[9], 1);
- Intro[10] = TextDrawCreate(369.000000, 348.000000, " ");
- TextDrawBackgroundColor(Intro[10] , 255);
- TextDrawFont(Intro[10] , 2);
- TextDrawLetterSize(Intro[10] , 20.040039, 1.000000);
- TextDrawColor(Intro[10] , -16776961);
- TextDrawSetOutline(Intro[10] , 0);
- TextDrawSetProportional(Intro[10] , 1);
- TextDrawSetShadow(Intro[10] , 1);
- ///////////////////////////////Server Podesavanja///////////////////////////////
- new srvFile[80]; format(srvFile,sizeof(srvFile),SERVER_FILE);
- if(fexist(srvFile))
- {
- INI_ParseFile(srvFile, "UcitajPodesavanja");
- print("Ucitana server podesavanja.");
- }
- return 1;
- }
- ///////////////////////////////////////////////////////
- public OnGameModeExit()
- {
- TextDrawDestroy(Intro[0]); TextDrawDestroy(Intro[1]); TextDrawDestroy(Intro[2]);
- TextDrawDestroy(Intro[3]); TextDrawDestroy(Intro[4]); TextDrawDestroy(Intro[5]);
- TextDrawDestroy(Intro[6]); TextDrawDestroy(Intro[7]); TextDrawDestroy(Intro[8]);
- TextDrawDestroy(Intro[9]); TextDrawDestroy(Intro[10]); TextDrawDestroy(TutorialSledi[0]);
- TextDrawDestroy(TutorialSledi[1]); TextDrawDestroy(TutorialSledi[2]); TextDrawDestroy(TutorialSledi[3]);
- TextDrawDestroy(TutorialSledi[4]); TextDrawDestroy(TutorialSledi[5]); TextDrawDestroy(TutorialSledi[6]);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////
- forward PokaziLogRegTextDraw(playerid);
- public PokaziLogRegTextDraw(playerid)
- {
- TextDrawShowForPlayer(playerid,RegLogi[0]);
- TextDrawShowForPlayer(playerid,RegLogi[1]);
- TextDrawShowForPlayer(playerid,RegLogi[2]);
- TextDrawShowForPlayer(playerid,RegLogi[3]);
- TextDrawShowForPlayer(playerid,RegLogi[4]);
- TextDrawShowForPlayer(playerid,RegLogi[5]);
- TextDrawShowForPlayer(playerid,RegLogi[6]);
- TextDrawShowForPlayer(playerid,RegLogi[7]);
- TextDrawShowForPlayer(playerid,RegLogi[8]);
- TextDrawShowForPlayer(playerid,RegLogi[9]);
- TextDrawShowForPlayer(playerid,RegLogi[10]);//Prijava
- TextDrawShowForPlayer(playerid,RegLogi[11]);//Registacija
- TextDrawShowForPlayer(playerid,RegLogi[12]);
- SelectTextDraw(playerid, 0xC83737C8);
- return 1;
- }
- //////////////////////////////////////
- forward SakrijLogRegTextDraw(playerid);
- public SakrijLogRegTextDraw(playerid)
- {
- TextDrawHideForPlayer(playerid,RegLogi[0]);
- TextDrawHideForPlayer(playerid,RegLogi[1]);
- TextDrawHideForPlayer(playerid,RegLogi[2]);
- TextDrawHideForPlayer(playerid,RegLogi[3]);
- TextDrawHideForPlayer(playerid,RegLogi[4]);
- TextDrawHideForPlayer(playerid,RegLogi[5]);
- TextDrawHideForPlayer(playerid,RegLogi[6]);
- TextDrawHideForPlayer(playerid,RegLogi[7]);
- TextDrawHideForPlayer(playerid,RegLogi[8]);
- TextDrawHideForPlayer(playerid,RegLogi[9]);
- TextDrawHideForPlayer(playerid,RegLogi[10]);//Prijava
- TextDrawHideForPlayer(playerid,RegLogi[11]);//Registacija
- TextDrawHideForPlayer(playerid,RegLogi[12]);
- return 1;
- }
- //////////////////////////////////////////////////////////////////////////
- public OnPlayerRequestClass(playerid, classid)
- {
- if(UlogovanProvera[playerid] == 1)
- {
- SpawnPlayer(playerid);
- }
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- public OnPlayerConnect(playerid)
- {
- //////////////////////////////////////////////////////////////////////////////////////////
- if(!ProveraRPImena(playerid))
- {
- StatusKonekta(playerid, 2);
- return 1;
- }
- OcistiChat(playerid,16); AttachObjectRemove(playerid); ObrisiObjekte(playerid);
- BelaBojaIgraca(playerid); KreirajTextDrawe(playerid); g_SetPlayerHealth(playerid, 99.0);
- //////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////
- UlogovanProvera[playerid] = 0; LoginPokusaji[playerid] = 0;
- ///////////////////////////////////////////////////////////////////////////
- PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pSupporter] = 0; PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pGodine] = 0; PlayerInfo[playerid][pDrzava] = 0; PlayerInfo[playerid][pSex] = 0;
- PlayerInfo[playerid][pTutorial] = 0; PlayerInfo[playerid][pExp] = 0; PlayerInfo[playerid][pSatiIgre] = 0; PlayerInfo[playerid][pProveraSpawna] = 0; PlayerInfo[playerid][pBorbeniStil] = 4;
- ///////////////////////////////////////////////////////////////////////////////////////////
- new banfile[100]; format(banfile,sizeof(banfile),BAN_FOLDER,GetName(playerid));
- if(fexist(banfile))
- {
- StatusKonekta(playerid, 1);
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////////
- if(fexist(Korisnici(playerid)))
- {
- INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- LogRegTimer[playerid] = SetTimerEx("LoginP",465, false, "i", playerid);
- SetPlayerPos(playerid, 2173.0852,2067.2083,27.4533);
- }
- else
- {
- IntroTimer[playerid] = SetTimerEx("Registracija1",465, false, "i", playerid);
- SetPlayerPos(playerid, 2173.0852,2067.2083,27.4533);
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////
- forward LoginP(playerid);
- public LoginP(playerid)
- {
- OcistiChat(playerid,16);
- //PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ina1bw0yjz/BANGARANG_FT._SIRAH_-_SKRILLEX.mp3");
- PokaziLogRegTextDraw(playerid);
- InterpolateCameraPos(playerid, 2099.239501, 486.598968, -13.667785, 2595.385253, 520.451477, 115.491050, 10000);
- InterpolateCameraLookAt(playerid, 2104.225097, 486.278564, -13.871625, 2590.409667, 520.783874, 115.125396, 10000);
- //LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
- return 1;
- }
- // TEXTDRAW LOGIN
- forward prikazilogintd(playerid);
- public prikazilogintd(playerid)
- {
- TextDrawShowForPlayer(playerid, LOGINTD[0]);
- TextDrawShowForPlayer(playerid, LOGINTD[1]);
- return 1;
- }
- forward sakrijlogintd(playerid);
- public sakrijlogintd(playerid)
- {
- TextDrawHideForPlayer(playerid, LOGINTD[0]);
- TextDrawHideForPlayer(playerid, LOGINTD[1]);
- return 1;
- }
- ////////////////////////////////////////////////////////
- forward RegTimer1(playerid);
- public RegTimer1(playerid)
- {
- OcistiChat(playerid,16);
- new string[250];
- TextDrawShowForPlayer(playerid, REGPRIPREMA[0]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[1]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[4]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[5]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[6]);
- SetPlayerPos(playerid,1257.5779, -933.5733, 59.4572);
- InterpolateCameraPos(playerid, 1257.5779, -933.5733, 59.4572, 788.5506, -1140.7698, 42.1293, 20000);
- InterpolateCameraLookAt(playerid, 1256.5906, -933.7269, 59.3223,788.1172, -1141.6698, 41.9794, 20000);
- format(string, sizeof(string), "Ucitavam mape ...");
- TextDrawSetString(REGPRIPREMA[4], string);
- NoviRegTimer2[playerid] = SetTimerEx("RegTimer2",7000, true, "d", playerid);
- return 1;
- }
- /////////////////////////////////////////////////////////
- forward RegTimer2(playerid);
- public RegTimer2(playerid)
- {
- OcistiChat(playerid,16);
- new string[250];
- KillTimer(NoviRegTimer1[playerid]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[0]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[1]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[2]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[4]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[5]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[6]);
- format(string, sizeof(string), "Ucitavam Sisteme ...");
- TextDrawSetString(REGPRIPREMA[4], string);
- NoviRegTimer3[playerid] = SetTimerEx("RegTimer3",7000, true, "d", playerid);
- return 1;
- }
- ////////////////////////////////////////////////////////
- forward RegTimer3(playerid);
- public RegTimer3(playerid)
- {
- OcistiChat(playerid,16);
- new string[250];
- KillTimer(NoviRegTimer2[playerid]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[0]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[1]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[2]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[3]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[4]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[5]);
- TextDrawShowForPlayer(playerid, REGPRIPREMA[6]);
- format(string, sizeof(string), "Kreiranje vaseg naloga ...");
- TextDrawSetString(REGPRIPREMA[4], string);
- NoviRegTimer4[playerid] = SetTimerEx("RegTimer4",7000, true, "d", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////////
- forward RegTimer4(playerid);
- public RegTimer4(playerid)
- {
- TextDrawHideForPlayer(playerid, REGPRIPREMA[0]);
- TextDrawHideForPlayer(playerid, REGPRIPREMA[1]);
- TextDrawHideForPlayer(playerid, REGPRIPREMA[2]);
- TextDrawHideForPlayer(playerid, REGPRIPREMA[3]);
- TextDrawHideForPlayer(playerid, REGPRIPREMA[4]);
- TextDrawHideForPlayer(playerid, REGPRIPREMA[5]);
- KillTimer(NoviRegTimer3[playerid]);
- KillTimer(NoviRegTimer4[playerid]);
- TextDrawHideForPlayer(playerid, REGPRIPREMA[6]);
- return 1;
- }
- ////////////////////////////////////////////////////////
- forward Tutorial1(playerid);
- public Tutorial1(playerid)
- {
- OcistiChat(playerid,16);
- KillTimer(TutorialTimer[playerid]);
- if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pSkin] = 240; }
- if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); PlayerInfo[playerid][pSkin] = 93; }
- SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0);
- SetPlayerVirtualWorld(playerid, 3475); SetPlayerPos(playerid, 1271.3105,-2348.6055,12.8548);
- SetPlayerFacingAngle(playerid, 0.0); SetPlayerCameraPos(playerid, 1184.32, -2426.23, 40.70);
- SetPlayerCameraLookAt(playerid, 1187.85, -2423.22, 38.84);
- SetPlayerAttachedObject(playerid, 0, 1210, 6, 0.253999, 0.077000, 0.051000, 0.000000, -98.999992, -1.400000, 1.000000, 1.000000, 1.000000, 0, 0);
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/gqpfldaiyk/Djomla_KS_feat_Firuca_Cina_-_Kljucevi_Od_Andjela.mp3");
- /*SCM(playerid, -1,""SPLAVA" ~ Sada prikazujemo neka od pravila ~ ");
- SCM(playerid, -1,""SPLAVA" ~ Sada cemo vam prikazati neka od Pravila ~ ");
- SCM(playerid, -1,""CRVENA" ~ RolePlay- Simulacija stvarnog zivota ~ ");
- SCM(playerid, -1,""BELA" ~ DeathMatch- Ubijanje igraca bez RP razloga ~ ");
- SCM(playerid, -1,""SIVA" ~ MetaGaming- Mesanje IC i OOC Informacija ~ ");*/
- /*new string[250];
- format(string, sizeof(string), "~y~Vi (u sebi):~w~ Vracam se u Beograd nakon 10 godina");
- TextDrawSetString(tutorijal, string);*/
- InterpolateCameraPos(playerid, 1257.5779, -933.5733, 59.4572, 788.5506, -1140.7698, 42.1293, 20000);
- InterpolateCameraLookAt(playerid, 1256.5906, -933.7269, 59.3223,788.1172, -1141.6698, 41.9794, 20000);
- TextDrawShowForPlayer(playerid,Tut[5][playerid]); TextDrawShowForPlayer(playerid,Tut[6][playerid]);
- TextDrawShowForPlayer(playerid,Tut[7][playerid]); TextDrawShowForPlayer(playerid,Tut[8][playerid]);
- TextDrawShowForPlayer(playerid,Tut[9][playerid]); TextDrawShowForPlayer(playerid,Tut[10][playerid]);
- TextDrawShowForPlayer(playerid,Tut[11][playerid]); new string[50];
- format(string,sizeof(string), "(1/5)"); TextDrawSetString(Tut[11][playerid], string);
- TutorialTimer2[playerid] = SetTimerEx("Tutorial2",7000, true, "d", playerid);
- ApplyAnimation(playerid,"MISC","seat_lr",2.0,1,0,0,0,0);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Tutorial2(playerid);
- public Tutorial2(playerid)
- {
- //new string[250];
- KillTimer(TutorialTimer2[playerid]);
- OcistiChat(playerid, 16);
- //format(string, sizeof(string), "~y~Vi (u sebi):~w~ Dosta toga je moglo da se promeni");
- //(tutorijal, string);
- /*SCM(playerid, -1,""SPLAVA" ~ Power Gaming - Radnja koju je nemoguce izvesti u RL ~ ");
- SCM(playerid, -1,""CRVENA" ~ Revange Kill - Ubijanje igraca iz osvete OOC Informacije ~ ");
- SCM(playerid, -1,""BELA" ~ Spawn Kill - Ubijanje igraca na njegovom spawn mestu ~ ");
- SCM(playerid, -1,""SIVA" ~ Bunny Hopping - Trcanje i skakanje u isto vreme ~ ");*/
- new string[128];
- format(string,sizeof(string), "~w~Sada cemo vam prikazati neka od ~y~Pravila"); TextDrawSetString(Tut[7][playerid], string);
- format(string,sizeof(string), "~y~RolePlay- ~w~Simulacija stvarnog zivota."); TextDrawSetString(Tut[8][playerid], string);
- format(string,sizeof(string), "~y~DeathMatch- ~w~Ubijanje igraca bez RP razloga."); TextDrawSetString(Tut[9][playerid], string);
- format(string,sizeof(string), "~y~MetaGaming- ~w~Mesanje IC i OOC Informacija."); TextDrawSetString(Tut[10][playerid], string);
- format(string,sizeof(string), "(2/5)"); TextDrawSetString(Tut[11][playerid], string);
- TutorialTimer3[playerid] = SetTimerEx("Tutorial3",7000, true, "d", playerid);
- return 1;
- }
- ////////////////////////////////////////////////////////
- forward Tutorial3(playerid);
- public Tutorial3(playerid)
- {
- OcistiChat(playerid,16);
- KillTimer(TutorialTimer3[playerid]);
- //new string[250];
- //format(string, sizeof(string), "~y~SPEAKER:~w~ Stigli smo na stanicu Beograd");
- //TextDrawSetString(tutorijal, string);
- OcistiChat(playerid, 16);
- /*SCM(playerid, -1,""SPLAVA" ~ Drive Bying - Pucanje iz vozila ili gazenje pesaka ~ ");
- SCM(playerid, -1,""CRVENA" ~ Non RolePlaying - Ometanje RP-A ili krsenje RP pravila ~ ");
- SCM(playerid, -1,""BELA" ~ Zabranjeno je iskoristavanje bugova/greski na skripti ~ ");
- SCM(playerid, -1,""SIVA" ~ Strogo je zabranjeno hakovanje/citovanje ~ ");*/
- new string[128];
- format(string,sizeof(string), "~y~Power Gaming- ~w~Radnja koju je nemoguce izvesti u RL."); TextDrawSetString(Tut[7][playerid], string);
- format(string,sizeof(string), "~y~Revange Kill- ~w~Ubijanje igraca iz osvete OOC Informacije."); TextDrawSetString(Tut[8][playerid], string);
- format(string,sizeof(string), "~y~Spawn Kill- ~w~Ubijanje igraca na njegovom spawn mestu."); TextDrawSetString(Tut[9][playerid], string);
- format(string,sizeof(string), "~y~Bunny Hopping- ~w~Trcanje i skakanje u isto vreme."); TextDrawSetString(Tut[10][playerid], string);
- format(string,sizeof(string), "(3/5)"); TextDrawSetString(Tut[11][playerid], string);
- TutorialTimer4[playerid] = SetTimerEx("Tutorial4",7000, true, "d", playerid);
- return 1;
- }
- ////////////////////////////////////////////////////////
- forward Tutorial4(playerid);
- public Tutorial4(playerid)
- {
- KillTimer(TutorialTimer4[playerid]);
- //new string[250];
- //format(string, sizeof(string), "~y~Vi (u sebi):~w~ Jao, vec sam stigao?!");
- //(tutorijal, string);
- OcistiChat(playerid, 16);
- /*SCM(playerid, -1,""CRVENA" ~ Procitajte jos jednom pravila na serveru /pravila ~ ");
- SCM(playerid, -1,""BELA" ~ Potrudite se da postujete ova server pravila ~ ");
- SCM(playerid, -1,""SIVA" ~ Ugodnu igru i boravak zeli vam LN:RP administracija ~");*/
- new string[128];
- format(string,sizeof(string), "~y~Drive Bying- ~w~Pucanje iz vozila ili gazenje pesaka."); TextDrawSetString(Tut[7][playerid], string);
- format(string,sizeof(string), "~y~Non Role-Playing- ~w~Ometanje RP-A ili krsenje RP pravila."); TextDrawSetString(Tut[8][playerid], string);
- format(string,sizeof(string), "~w~Zabranjeno je iskoristavanje ~y~bugova/greski ~w~na skripti."); TextDrawSetString(Tut[9][playerid], string);
- format(string,sizeof(string), "~w~Strogo je zabranjeno ~r~hakovanje/citovanje."); TextDrawSetString(Tut[10][playerid], string);
- format(string,sizeof(string), "(4/5)"); TextDrawSetString(Tut[11][playerid], string);
- TutorialTimer5[playerid] = SetTimerEx("Tutorial5",7000, true, "d", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Tutorial5(playerid);
- public Tutorial5(playerid)
- {
- KillTimer(TutorialTimer5[playerid]);
- SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0);
- SetPlayerVirtualWorld(playerid, 3475); //new string[250];
- //format(string, sizeof(string), "~y~Vi (u sebi):~w~ Valjda cu ovde naci srecu!!");
- //TextDrawSetString(tutorijal, string);
- OcistiChat(playerid, 16);
- /*SCM(playerid, -1,""SPLAVA" ~ Tutorial uspesno zavrsen ! ~");
- SCM(playerid, -1,""SIVA" ~ Pristupam spawnu igraca ! ~ ");*/
- new string[128];
- format(string,sizeof(string), "~w~Ovo bi bio kraj tutoriala."); TextDrawSetString(Tut[7][playerid], string);
- format(string,sizeof(string), "~w~Procitajte jos jednom pravila na serveru ~y~/pravila."); TextDrawSetString(Tut[8][playerid], string);
- format(string,sizeof(string), "~w~Potrudite se da postujete ova server pravila."); TextDrawSetString(Tut[9][playerid], string);
- format(string,sizeof(string), "~w~Ugodnu igru i boravak zeli vam ~r~LN:RP ~w~administracija."); TextDrawSetString(Tut[10][playerid], string);
- format(string,sizeof(string), "(5/5)"); TextDrawSetString(Tut[11][playerid], string);
- TutorialTimer6[playerid] = SetTimerEx("Tutorial6",6000, true, "d", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Tutorial6(playerid);
- public Tutorial6(playerid)
- {
- OcistiChat(playerid,16);
- TextDrawHideForPlayer(playerid,Tut[5][playerid]); TextDrawHideForPlayer(playerid,Tut[6][playerid]);
- TextDrawHideForPlayer(playerid,Tut[7][playerid]); TextDrawHideForPlayer(playerid,Tut[8][playerid]);
- TextDrawHideForPlayer(playerid,Tut[9][playerid]); TextDrawHideForPlayer(playerid,Tut[10][playerid]);
- TextDrawHideForPlayer(playerid,Tut[11][playerid]);
- KillTimer(TutorialTimer6[playerid]);
- TextDrawHideForPlayer(playerid,tutorijal); SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pNovacBanka] = 500; PlayerInfo[playerid][pNovacDzep] = 10000; GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
- new string[512]; PlayerInfo[playerid][pTutorial] = 1;
- new iskustvo;
- (iskustvo = PlayerInfo[playerid][pLevel] * 2) + 2;
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- new adminCmdsList[2048];
- new strings[308];
- strdel(adminCmdsList, 0, sizeof(adminCmdsList));
- strcat(adminCmdsList, ""ZUTA2"Dobrodosao, lepo te je opet videti na "BELA"serveru!\n");
- format(strings, sizeof(strings), ""ZUTA2"Ime :"BELA" %s \n"ZUTA2"Level:"BELA" %d"ZUTA2"\nRespekti: "BELA"%d/%d"ZUTA2"\nSati igre: "BELA"%d\n\n",GetName(playerid),PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
- strcat(adminCmdsList, strings);
- if (PlayerInfo[playerid][pSupporter] >= 1)
- {
- strcat(adminCmdsList, ""CRVENA"Administrativni podaci:\n");
- strcat(adminCmdsList, ""BELA"Ulogovan si kao {ZUTA2}supporter.\n\n");
- }
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- strcat(adminCmdsList, ""CRVENA"Administrativni podaci:\n");
- strcat(adminCmdsList, ""BELA"Ulogovan si kao "CRVENA"Admin.\n\n");
- }
- strcat(adminCmdsList, ""BELA"Ukoliko vam je potrebna pomoc, zatrazite je na "BELA"/askq\n");
- strcat(adminCmdsList, ""BELA"Posetite nas forum "ZUTA2"www.uskoro.tk\n");
- strcat(adminCmdsList, ""BELA"Uzivajte u igranju na nasem serveru!\n\n");
- //strcat(adminCmdsList, "{FFCC00}=================================================");
- ShowPlayerDialog(playerid, PRAVILA , DIALOG_STYLE_MSGBOX, ""CRVENA"INFORMACIJE", adminCmdsList, "OK", "");
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- format(string,sizeof(string),""ZUTA2"-------------------Last Night RolePlay-------------------");
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"- Dobrodosao "BELA"%s "ZUTA2"na Last Night RolePlay.",GetName(playerid));
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"- [INFO]: "BELA"Trenutni level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"- Skripter :"BELA" Corleone ");
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"--------------------------------------------------------------------------");
- SCM(playerid,-1,string);
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////
- SCM(playerid, -1, ""SPLAVA"{FFCC00}[LN:RP]{FFFFFF} "BELA"Ako nemate prevoz , iznajmite vozilo ili pozovite taxi");
- SCM(playerid, -1, "{FFCC00}[LN:RP]{FFFFFF} Komande mozete pronaci na /help, a pravila na /pravila");
- TogglePlayerControllable(playerid, 1); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
- if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pSkin] = 240; }
- if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); PlayerInfo[playerid][pSkin] = 93; }
- UlogovanProvera[playerid] = 1; new rand = random(sizeof(RandomSpawn2));
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid); SpawnIgraca(playerid); SavePlayer(playerid);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",5000, false, "i", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Registracija1(playerid);
- public Registracija1(playerid)
- {
- KillTimer(IntroTimer[playerid]); OcistiChat(playerid,16);
- SetPlayerCameraPos(playerid, 1911.3069, -1515.2876, 40.0228);
- SetPlayerCameraLookAt(playerid, 1910.5417, -1514.6451, 40.3429);
- SetPlayerPos(playerid, 1911.3069, -1515.2876, 40.0228);
- LogRegTimer[playerid] = SetTimerEx("LogReg",5000, false, "i", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Registracija2(playerid);
- public Registracija2(playerid)
- {
- KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);
- TextDrawShowForPlayer(playerid,Intro[3]); TextDrawShowForPlayer(playerid,Intro[4]);
- IntroTimer3[playerid] = SetTimerEx("Registracija3",5000, false, "i", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Registracija3(playerid);
- public Registracija3(playerid)
- {
- KillTimer(IntroTimer3[playerid]); TextDrawShowForPlayer(playerid,Intro[5]);
- IntroTimer4[playerid] = SetTimerEx("Registracija4",5000, false, "i", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Registracija4(playerid);
- public Registracija4(playerid)
- {
- KillTimer(IntroTimer4[playerid]); TextDrawShowForPlayer(playerid,Intro[6]);
- TextDrawShowForPlayer(playerid,Intro[7]); TextDrawShowForPlayer(playerid,Intro[8]);
- IntroTimer5[playerid] = SetTimerEx("Registracija5",5000, false, "i", playerid);
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward Registracija5(playerid);
- public Registracija5(playerid)
- {
- KillTimer(IntroTimer5[playerid]); TextDrawShowForPlayer(playerid,Intro[9]);
- ///////////////////////////////////////////////////////////////
- LogRegTimer[playerid] = SetTimerEx("LogReg",5000, false, "i", playerid);
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- forward LogReg(playerid);
- public LogReg(playerid)
- {
- KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
- /////////////////////////////////////////////////////////////////////////////////////
- if(fexist(Korisnici(playerid)))
- {
- new loginstring[512];
- new loginname[126];
- GetPlayerName(playerid,loginname,sizeof(loginname));
- format(loginstring,sizeof(loginstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",loginname);
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFCC00}Login",loginstring,"Login","Izlaz");
- }
- else
- {
- TextDrawHideForPlayer(playerid,Intro[0]); TextDrawHideForPlayer(playerid,Intro[1]); TextDrawHideForPlayer(playerid,Intro[2]);
- TextDrawHideForPlayer(playerid,Intro[3]); TextDrawHideForPlayer(playerid,Intro[4]); TextDrawHideForPlayer(playerid,Intro[5]);
- TextDrawHideForPlayer(playerid,Intro[6]); TextDrawHideForPlayer(playerid,Intro[7]); TextDrawHideForPlayer(playerid,Intro[8]);
- TextDrawHideForPlayer(playerid,Intro[9]); TextDrawHideForPlayer(playerid,Intro[10]);
- if(ServerInfo[isRegistracija] == 1)
- {
- StatusKonekta(playerid, 5);
- }
- else if(ServerInfo[isRegistracija] != 1)
- {
- PokaziLogRegTextDraw(playerid);
- }
- }
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- public OnPlayerDisconnect(playerid, reason)
- {
- KillTimer(IntroTimer[playerid]); KillTimer(IntroTimer2[playerid]);
- KillTimer(IntroTimer3[playerid]); KillTimer(IntroTimer4[playerid]);
- KillTimer(IntroTimer5[playerid]); KillTimer(LogRegTimer[playerid]);
- AttachObjectRemove(playerid);
- //////////////////////////////////////////
- SavePlayer(playerid);
- //////////////////////////////////////////////
- return 1;
- }
- ///////////////////////////////////////////
- public OnPlayerSpawn(playerid)
- {
- BelaBojaIgraca(playerid); SpawnIgraca(playerid);
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- ///////////////////////////////////////////////////////
- StopAudioStreamForPlayer(playerid); // Zaustaviti pesmu na loginu!
- ///////////////////////////////////////////////////////
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////////////
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////////////////
- stock SpawnIgraca(playerid)
- {
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- stock Ime(playerid)
- {
- new ime[MAX_PLAYER_NAME];
- GetPlayerName(playerid, ime, MAX_PLAYER_NAME);
- strreplace(ime, '_', ' ');
- return ime;
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- forward OcistiChat(playerid, lines);
- public OcistiChat(playerid, lines)
- {
- for(new i = 0; i < lines; i++)
- {
- SCM(playerid, -1, " ");
- }
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////
- forward SendAdminMessage(color, string[]);
- public SendAdminMessage(color, string[])
- {
- foreach(Player,i)
- {
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////
- forward AdminSupporter(color, string[]);
- public AdminSupporter(color, string[])
- {
- foreach(Player,i)
- {
- if(PlayerInfo[i][pSupporter] >= 1|| PlayerInfo[i][pAdmin] >= 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- return 1;
- }
- /////////////////////////////////////////////////
- public OnPlayerText(playerid, text[])
- {
- if (UlogovanProvera[playerid] != 1)
- {
- SCM(playerid,-1,""CRVENA"{FFCC00}[LN:RP]{FFFFFF} "ZUTA"Moras biti ulogovan da bi pisao!");
- return 0;
- }
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- ///////////////////////////////////////////
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerRequestSpawn(playerid)
- {
- if(UlogovanProvera[playerid] == 0)
- {
- StatusKonekta(playerid, 3);
- return 0;
- }
- else
- {
- SpawnIgraca(playerid);
- return 1;
- }
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- ///////////////////////////////////////////////////////////////////////////////////
- if(dialogid == DIALOG_PSPAWN)
- {
- if(!response) return 1;
- switch(listitem)
- {
- case 0:
- {
- PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
- SCM(playerid,-1,""CRVENA"{FFCC00}[LN:RP]{FFFFFF} "SIVA"Uspesno ste odabrali spawn | Market Stanica!");
- SavePlayer(playerid);
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////////////
- if(dialogid == DIALOG_SPODESAVANJA)
- {
- if(!response) return 1;
- new string[128];
- switch(listitem)
- {
- case 0:
- {
- if(ServerInfo[isRegistracija] == 0)
- {
- ServerInfo[isRegistracija] = 1; SacuvajPodesavanja();
- format(string,sizeof(string),"{FFCC00}[LN:RP]{FFFFFF} "CRVENA"Admin %s je onemogucio registraciju na serveru!",GetName(playerid));
- AdminSupporter(-1,string);
- }
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == REGLOG_PRAVILA)
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- SetPlayerPos(playerid,1257.5779, -933.5733, 59.4572);
- InterpolateCameraPos(playerid, 1257.5779, -933.5733, 59.4572, 788.5506, -1140.7698, 42.1293, 20000);
- InterpolateCameraLookAt(playerid, 1256.5906, -933.7269, 59.3223,788.1172, -1141.6698, 41.9794, 20000);
- new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
- format(regstring,sizeof(regstring),"{FFFFFF}Dobrodosli "SPLAVA"%s,\n\n{FFFFFF}Molimo vas da unesete zeljenu lozinku\nkako biste zapoceli registraciju.\nKada upisete zeljenu lozinku,\nbice vam prikazan intro.\n\nUzivajte igrajuci na nasem serveru",regname);
- ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Register",regstring,"Registracija","Izlaz");
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 3)
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste musko.");
- PlayerInfo[playerid][pSex] = 1;
- ShowPlayerDialog(playerid, 4, 1, ""ZUTA2"Godine", ""BELA"U polje upisite koliko imate godina.\nNe mozete ici manje od 10 ili vise od 60", "Unesi", "Odustani");
- }
- case 1:
- {
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste zensko.");
- PlayerInfo[playerid][pSex] = 2;
- ShowPlayerDialog(playerid, 4, 1, ""ZUTA2"Godine", ""BELA"U polje upisite koliko imate godina.\nNe mozete ici manje od 10 ili vise od 60", "Unesi", "Odustani");
- }
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 5)
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayerInfo[playerid][pDrzava] = 1; //Srbija
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),"{0066FF}Ime: "BELA"%s\n{0066FF}Prezime: "BELA"%s\n{0066FF}Godine: "BELA"%d\n{0066FF}Pol: "BELA"%s\n{0066FF}Drzava: "BELA"%s\n\n{0066FF}Email: "BELA"%s\n{FFCC00}<<{0066FF} Kliknite 'DALJE' da bi vam se prikazao tutorial{FFCC00} >>",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,"{FFCC00}INFORMACIJE",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Srbije");
- }
- case 1:
- {
- PlayerInfo[playerid][pDrzava] = 2; //Bosna
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz BiH !");
- }
- case 2:
- {
- PlayerInfo[playerid][pDrzava] = 3; //Republika Srpska
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Republike Srpske");
- }
- case 3:
- {
- PlayerInfo[playerid][pDrzava] = 4; // Crna Gora
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Crne Gore !");
- }
- case 4:
- {
- PlayerInfo[playerid][pDrzava] = 5; //Hrvatska
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Hrvatske !");
- }
- case 5:
- {
- PlayerInfo[playerid][pDrzava] = 6; //Makedonija
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Makedonije !");
- }
- case 6:
- {
- PlayerInfo[playerid][pDrzava] = 7; //Slovenija
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi ste iz Slovenije !");
- }
- case 7:
- {
- PlayerInfo[playerid][pDrzava] = 8; //Ostalo
- new atext[20];
- if(PlayerInfo[playerid][pSex] == 1) { atext = "Musko"; }
- else if(PlayerInfo[playerid][pSex] == 2) { atext = "Zensko"; }
- new otext[20];
- if(PlayerInfo[playerid][pDrzava] == 1) { otext = "Srbija"; }
- else if(PlayerInfo[playerid][pDrzava] == 2) { otext = "Bosna i Hercegovina"; }
- else if(PlayerInfo[playerid][pDrzava] == 3) { otext = "Republika Srpska"; }
- else if(PlayerInfo[playerid][pDrzava] == 4) { otext = "Crna Gora"; }
- else if(PlayerInfo[playerid][pDrzava] == 5) { otext = "Hrvatska"; }
- else if(PlayerInfo[playerid][pDrzava] == 6) { otext = "Makedonija"; }
- else if(PlayerInfo[playerid][pDrzava] == 7) { otext = "Slovenija"; }
- else if(PlayerInfo[playerid][pDrzava] == 8) { otext = "Ostalo"; }
- new uspesnareg[400];
- format(uspesnareg,sizeof(uspesnareg),""BELA"Uspesno ste popunili informacije\n\n"CRVENA"Vase Ime: "BELA"%s\n"CRVENA"Vase Prezime: "BELA"%s\n"CRVENA"Godine: "BELA"%d\n"CRVENA"Pol: "BELA"%s\n"CRVENA"Drzava: "BELA"%s\n\n"ZUTA"Email: "BELA"%s\n"ZUTA"Kliknite 'DALJE' da bi nastavili registraciju (tutorial)",SamoIme(playerid),SamoPrezime(playerid),PlayerInfo[playerid][pGodine],atext,otext,PlayerInfo[playerid][pEmail]);
- ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,""CRVENA"Uspesna registracija",uspesnareg,"Dalje","Izadji");
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Ok, znaci vi niste iz gore navedenih drzava.");
- }
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 4)
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- new godine;
- godine = strval(inputtext);
- if(godine < 10 || godine > 60)
- {
- SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Ne mozete upisati da imate manje od 10, ili vise od 60 godina !");
- ShowPlayerDialog(playerid, 4, 1, ""ZUTA2"Godine", ""BELA"U polje upisite koliko imate godina.\nNe mozete ici manje od 10 ili vise od 60", "Unesi", "Odustani");
- return 1;
- }
- new string[128];
- PlayerInfo[playerid][pGodine] = strval(inputtext);
- format(string,sizeof(string),""ZUTA2"[LN:RP]"BELA" Ok, znaci vi imate %d godina.",PlayerInfo[playerid][pGodine]);
- SCM(playerid,-1,string);
- ShowPlayerDialog(playerid, 12, 1, ""ZUTA2"E-Mail", ""BELA"U polje upisite vasu E-Mail adresu", "Unesi", "Odustani");
- }
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 12)
- {
- if (!response) return Kick(playerid);
- if(response)
- {
- new emailp = strfind(inputtext, "@", true);
- if(emailp == -1)
- {
- SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Netacan mail. Niste upisali znak @ , ili kako to neki zovu , majmunsko A");
- ShowPlayerDialog(playerid, 12, 1, ""ZUTA2"E-Mail", ""BELA"U polje upisite vasu E-Mail adresu", "Unesi", "Odustani");
- return 1;
- }
- new emailp2 = strfind(inputtext, ".", true);
- if(emailp2 == -1)
- {
- SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Netacan mail. Niste upisali .(tacku), upisite .com, .info !");
- ShowPlayerDialog(playerid, 12, 1, "{FFCC00}E-MAIL", ""BELA"U polje upisite vasu E-Mail adresu.\nTrudite se da upisete pravu", "Unesi", "Odustani");
- return 1;
- }
- new string[128];
- new INI:File = INI_Open(Korisnici(playerid));
- INI_SetTag(File,"data");
- INI_WriteString(File, "Email", inputtext);
- format(string, sizeof(string), "%s", inputtext);
- PlayerInfo[playerid][pEmail] = string;
- INI_Close(File);
- format(string,sizeof(string),""ZUTA2"[LN:RP]"BELA" OK, vas mail je upisan u bazu podataka mejlova !");
- SCM(playerid,-1,string);
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "{FFCC00}Drzava", ""SPLAVA"{0066FF}- "BELA"Srbija\n"SPLAVA"{0066FF}- "BELA"Bosna i Hercegovina\n"SPLAVA"{0066FF}- "BELA"Republika Srpska\n"SPLAVA"{0066FF}- "BELA"Crna Gora\n"SPLAVA"{0066FF}- "BELA"Hrvatska\n"SPLAVA"{0066FF}- "BELA"Makedonija\n"SPLAVA"{0066FF}- "BELA"Slovenija\n"SPLAVA"{0066FF}- "BELA"Ostalo", "Dalje", "Odustani");
- }
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 22)
- {
- if (!response) return Kick(playerid);
- if(response)
- {
- TutorialTimer[playerid] = SetTimerEx("Tutorial1",465, false, "i", playerid);
- }
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
- switch (dialogid)
- {
- case DIALOG_REGISTER:
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- if(strlen(inputtext) < MIN_DUZINA_LOZINKE)
- {
- new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
- format(regstring,sizeof(regstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",regname);
- ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Rregister",regstring,"Registracija","Izlaz");
- SCM(playerid,-1,"{FFCC00}[LN:RP]:{FFFFFF} Lozinka mora imati vise od 6 znakova.");
- }
- else if(strlen(inputtext) > MAX_DUZINA_LOZINKE)
- {
- new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
- format(regstring,sizeof(regstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",regname);
- ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Register",regstring,"Registracija","Izlaz");
- SCM(playerid,-1,"{FFCC00}[LN:RP]:{FFFFFF} Lozinka ne sme imati vise od 14 znakova.");
- }
- else if(strlen(inputtext) >= MIN_DUZINA_LOZINKE && strlen(inputtext) <= MAX_DUZINA_LOZINKE)
- {
- new INI:File = INI_Open(Korisnici(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_WriteInt(File,"Cash",0);
- INI_WriteInt(File,"Admin",0);
- INI_WriteInt(File,"Level",1);
- INI_WriteInt(File,"Supporter",0);
- INI_WriteInt(File,"Skin",0);
- INI_WriteInt(File,"Godine",0);
- INI_WriteInt(File,"Drzava",0);
- INI_WriteInt(File,"Pol",0);
- INI_WriteInt(File,"Tutorial",0);
- INI_WriteInt(File,"Email",0);
- INI_WriteInt(File,"NovacBanka",0);
- INI_WriteInt(File,"Respekti",0);
- INI_WriteInt(File,"SatiIgre",0);
- INI_WriteInt(File,"ProveraSpawna",0);
- INI_WriteInt(File,"BorbeniStil",4);
- INI_Close(File);
- new string[128];
- format(string,sizeof(string),""ZUTA"{FFCC00}[LN:RP] "BELA"Uspesno ste se registrovali, vasa lozinka je upisana u nasu data bazu.");
- SCM(playerid,-1,string);
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{FFCC00}Pol", "{0066FF}- {FFFFFF}Musko\n{0066FF}- {FFFFFF}Zensko", "Dalje", "Odustani");
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
- case DIALOG_LOGIN:
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
- {
- INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- new rand = random(sizeof(RandomSpawn2));
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pBorbeniStil]);
- SetCameraBehindPlayer(playerid);
- UlogovanProvera[playerid] = 1;
- sakrijlogintd(playerid);
- OcistiChat(playerid, 10);
- new string[512],iskustvo;
- iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
- new adminCmdsList[2048];
- new strings[308];
- strdel(adminCmdsList, 0, sizeof(adminCmdsList));
- strcat(adminCmdsList, ""ZUTA2"Dobrodosao, lepo te je opet videti na "BELA"serveru!\n");
- format(strings, sizeof(strings), ""ZUTA2"Ime :"BELA" %s \n"ZUTA2"Level:"BELA" %d"ZUTA2"\nRespekti: "BELA"%d/%d"ZUTA2"\nSati igre: "BELA"%d\n\n",GetName(playerid),PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
- strcat(adminCmdsList, strings);
- if (PlayerInfo[playerid][pSupporter] >= 1)
- {
- strcat(adminCmdsList, ""ZUTA2"Administrativni podaci:\n");
- strcat(adminCmdsList, ""BELA"Ulogovan si kao "ZUTA2"supporter.\n\n");
- }
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- strcat(adminCmdsList, ""CRVENA"Administrativni podaci:\n");
- strcat(adminCmdsList, ""BELA"Ulogovan si kao "CRVENA"Admin.\n\n");
- }
- strcat(adminCmdsList, ""ZUTA2"Ukoliko vam je potrebna pomoc, potrazite je na "BELA"/askq\n");
- strcat(adminCmdsList, ""ZUTA2"Posetite nas forum "BELA"www.uskoro.tk\n");
- strcat(adminCmdsList, ""ZUTA2"Uzivajte u igranju na nasem serveru!\n\n");
- strcat(adminCmdsList, "{FFCC00}=================================================");
- ShowPlayerDialog(playerid, PRAVILA , DIALOG_STYLE_MSGBOX, ""CRVENA"INFORMACIJE", adminCmdsList, "OK", "");
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- format(string,sizeof(string),""ZUTA2"-------------------Last Night RolePlay-------------------");
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"- Dobrodosao "BELA"%s "ZUTA2"na Last Night RolePlay.",GetName(playerid));
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"- [INFO]: "BELA"Trenutni level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"- Skripter :"BELA" Corleone ");
- SCM(playerid,-1,string);
- format(string,sizeof(string),""ZUTA2"----------------------------------------------------------------------------");
- SCM(playerid, -1, string);
- if(PlayerInfo[playerid][pTutorial] == 0)
- {
- SCM(playerid,-1,""ZUTA2"[LN:RP]"BELA" Niste zavrsili registraciju, sada ponovo morate gleadti tutorial!");
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""SPLAVA"- "BELA"Musko\n"SPLAVA"- "BELA"Zensko", "Dalje", "Odustani");
- SetPlayerPos(playerid, 2128.8220, 1965.6072, 33.9647); SetPlayerCameraLookAt(playerid, 2128.1597, 1964.8524, 33.5796);
- SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0); SetPlayerPos(playerid, 1693.3690,-1867.5784,13.5412);
- SetPlayerFacingAngle(playerid, 139.7829); SetPlayerVirtualWorld(playerid, 5446);
- }
- }
- else
- {
- new loginstring[512],loginname[64];
- GetPlayerName(playerid,loginname,sizeof(loginname));
- format(loginstring,sizeof(loginstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Uneli ste pogresan "CRVENA"password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",loginname);
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFCC00}Login",loginstring,"Login","Izlaz");
- LoginPokusaji[playerid] += 1;
- SCM(playerid,-1,"{FFCC00}[LN:RP]"BELA" Pogresna lozinka! Preostalo "CRVENA"%d/4"BELA" pokusaja !",LoginPokusaji[playerid]);
- if(LoginPokusaji[playerid] == 4) { StatusKonekta(playerid, 4); }
- }
- return 1;
- }
- }
- }
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- /////////////////////////////////////////////CUVANJA/CITANJA////////////////////////////////////////////////////
- forward LoadUser_data(playerid,name[],value[]);
- public LoadUser_data(playerid,name[],value[])
- {
- INI_Int("Password",PlayerInfo[playerid][pPass]);
- INI_Int("Cash",PlayerInfo[playerid][pNovacDzep]);
- INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
- INI_Int("Level",PlayerInfo[playerid][pLevel]);
- INI_Int("Supporter",PlayerInfo[playerid][pSupporter]);
- INI_Int("Skin",PlayerInfo[playerid][pSkin]);
- INI_Int("Godine",PlayerInfo[playerid][pGodine]);
- INI_Int("Drzava",PlayerInfo[playerid][pDrzava]);
- INI_Int("Pol",PlayerInfo[playerid][pSex]);
- INI_Int("Tutorial",PlayerInfo[playerid][pTutorial]);
- INI_String("Email",PlayerInfo[playerid][pEmail], 128);
- INI_Int("NovacBanka",PlayerInfo[playerid][pNovacBanka]);
- INI_Int("Respekti",PlayerInfo[playerid][pExp]);
- INI_Int("SatiIgre",PlayerInfo[playerid][pSatiIgre]);
- INI_Int("ProveraSpawna",PlayerInfo[playerid][pProveraSpawna]);
- INI_Int("BorbeniStil",PlayerInfo[playerid][pBorbeniStil]);
- return 1;
- }
- ////////////////////////////////////////////////
- stock SavePlayer(playerid)
- {
- if(UlogovanProvera[playerid] == 1)
- {
- new INI:File = INI_Open(Korisnici(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Cash",PlayerInfo[playerid][pNovacDzep]);
- INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
- INI_WriteInt(File,"Supporter",PlayerInfo[playerid][pSupporter]);
- INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
- INI_WriteInt(File,"Godine",PlayerInfo[playerid][pGodine]);
- INI_WriteInt(File,"Drzava",PlayerInfo[playerid][pDrzava]);
- INI_WriteInt(File,"Pol",PlayerInfo[playerid][pSex]);
- INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTutorial]);
- INI_WriteString(File,"Email",PlayerInfo[playerid][pEmail]);
- INI_WriteInt(File,"NovacBanka",PlayerInfo[playerid][pNovacBanka]);
- INI_WriteInt(File,"Respekti",PlayerInfo[playerid][pExp]);
- INI_WriteInt(File,"SatiIgre",PlayerInfo[playerid][pSatiIgre]);
- INI_WriteInt(File,"ProveraSpawna",PlayerInfo[playerid][pProveraSpawna]);
- INI_WriteInt(File,"BorbeniStil",PlayerInfo[playerid][pBorbeniStil]);
- INI_Close(File);
- }
- return 1;
- }
- //////////////////////////////////////////////////
- forward UcitajPodesavanja(name[],value[]);
- public UcitajPodesavanja(name[],value[])
- {
- INI_Int("Registracija",ServerInfo[isRegistracija]);
- return 1;
- }
- //////////////////////////////////////////////////
- stock SacuvajPodesavanja()
- {
- new sFile[80];
- format(sFile,sizeof(sFile),SERVER_FILE);
- new INI:File = INI_Open(sFile);
- INI_WriteInt(File,"Registracija",ServerInfo[isRegistracija]);
- INI_Close(File);
- return 1;
- }
- /////////////////////////////////////////////////////
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- return 1;
- }
- ///////////////////////////////////////////////////////
- forward split(const strsrc[], strdest[][], delimiter);
- public split(const strsrc[], strdest[][], delimiter)
- {
- new i, li;
- new aNum;
- new len;
- while(i <= strlen(strsrc))
- {
- if(strsrc[i]==delimiter || i==strlen(strsrc))
- {
- len = strmid(strdest[aNum], strsrc, li, i, 128);
- strdest[aNum][len] = 0;
- li = i+1;
- aNum++;
- }
- i++;
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////
- forward SpremiKorisnike();
- public SpremiKorisnike()
- {
- foreach(Player, i)
- {
- if(IsPlayerConnected(i) && UlogovanProvera[i] == 1)
- {
- SCMTA(-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Cuvanje svih korisnickih naloga ! Mozda bude laga nekoliko sekundi !");
- SavePlayer(i);
- }
- }
- print("Svim online korisnicima racuni uspesno sacuvani...");
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////
- stock g_NovacPlus(id, iznos)
- {
- if(iznos < 0 || iznos > 99999999) return 1;
- GivePlayerMoney(id, iznos);
- PlayerInfo[id][pNovacDzep] += iznos;
- return 1;
- }
- ////////////////////////////////////////////////////////////////
- stock g_SetPlayerHealth(playerid, Float: helti)
- {
- SetPlayerHealth(playerid, helti); HeltiIgraca[playerid] = helti;
- return 1;
- }
- stock StatusKonekta(playerid, tip)
- {
- if(tip == 1)
- {
- new string1[256];
- format(string1, sizeof(string1), ""CRVENA"Banovani ste...\n\n"ZUTA"%s "BELA"vi ste banovani sa ovog servera.\nAko ne znate razlog bana pogledajte ga na forumu.\nUkoliko zelite unban zatrazite ga na nasem forumu.\nAdresa naseg foruma je:\n\n"ZUTA"www.uskoro.tk",GetName(playerid));
- SPD(playerid, DIALOG_BANSTATUS, DIALOG_STYLE_MSGBOX, "{FFCC00}Banovan si !", string1, "Ok", "Izlaz");
- freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
- }
- else if(tip == 2)
- {
- new string[512];
- SCM(playerid,-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Kikovani ste zbog neprihvatljivog Imena/Prezimena");
- format(string, sizeof(string), ""BELA"%s, kikovani ste sa servera zbog neprihvatljivog imena/prezimena\nIme/Prezime mora biti RP, sto znaci da mora biti Ime_Prezime\nIme/Prezime ne sme sadrzavati slova/brojeve/znakove\nIme mora sadrzavati donju crtu( _ )\nPrimer pravilog RP imena\n"CRVENA"Petar_Petrovic",GetName(playerid));
- SPD(playerid, DIALOG_RPIME, DIALOG_STYLE_MSGBOX, "{FFCC00}Informacije o Kick-u", string, "Ok", "Izlaz");
- freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
- }
- else if(tip == 3)
- {
- SCM(playerid,-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Pre spawna je potrebno ulogovati se . Kikovan si");
- freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
- }
- else if(tip == 4)
- {
- SCM(playerid,-1,""SVETLOCRVENA"[LN:RP - AC]"BELA" Banovan si jer si pogresio lozinku 4 puta. Slikaj ovo na tipku F8, i zatrazi unban na forumu.",GetName(playerid));
- freeze[playerid] = SetTimerEx("KonektBan", 500, 0, "d", playerid);
- }
- else if(tip == 5)
- {
- SCM(playerid,-1,""CRVENA"===============================================================");
- SCM(playerid,-1,"{FFCC00}[LN:RP]{FFFFFF} "CRVENA"{FFFFFF} Registracija je onemogucena na neko vreme, da vidite razlog posetite nas {FF0000}forum");
- SCM(playerid,-1,"{FFCC00}[LN:RP]{FFFFFF} "CRVENA"{FFFFFF} Adresa Foruma je: "SIVA"www.uskoro.tk");
- SCM(playerid,-1,""CRVENA"===============================================================");
- freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
- }
- return 1;
- }
- //////////////////////////////////////////////////////////////
- stock KreirajTextDrawe(playerid)
- {
- Tut[0][playerid] = TextDrawCreate(523.000000, 140.000000, "_");
- TextDrawBackgroundColor(Tut[0][playerid], 255);
- TextDrawFont(Tut[0][playerid], 1);
- TextDrawLetterSize(Tut[0][playerid], 0.529999, 12.600001);
- TextDrawColor(Tut[0][playerid], -1);
- TextDrawSetOutline(Tut[0][playerid], 0);
- TextDrawSetProportional(Tut[0][playerid], 1);
- TextDrawSetShadow(Tut[0][playerid], 1);
- TextDrawUseBox(Tut[0][playerid], 1);
- TextDrawBoxColor(Tut[0][playerid], 842150450);
- TextDrawTextSize(Tut[0][playerid], 98.000000, 13.000000);
- Tut[1][playerid] = TextDrawCreate(523.000000, 138.000000, "_");
- TextDrawBackgroundColor(Tut[1][playerid], 255);
- TextDrawFont(Tut[1][playerid], 1);
- TextDrawLetterSize(Tut[1][playerid], 0.629998, -0.100001);
- TextDrawColor(Tut[1][playerid], -1);
- TextDrawSetOutline(Tut[1][playerid], 0);
- TextDrawSetProportional(Tut[1][playerid], 1);
- TextDrawSetShadow(Tut[1][playerid], 1);
- TextDrawUseBox(Tut[1][playerid], 1);
- TextDrawBoxColor(Tut[1][playerid], 848756735);
- TextDrawTextSize(Tut[1][playerid], 97.000000, -5.000000);
- Tut[2][playerid] = TextDrawCreate(523.000000, 257.000000, "_");
- TextDrawBackgroundColor(Tut[2][playerid], 255);
- TextDrawFont(Tut[2][playerid], 1);
- TextDrawLetterSize(Tut[2][playerid], 0.629998, -0.100001);
- TextDrawColor(Tut[2][playerid], -1);
- TextDrawSetOutline(Tut[2][playerid], 0);
- TextDrawSetProportional(Tut[2][playerid], 1);
- TextDrawSetShadow(Tut[2][playerid], 1);
- TextDrawUseBox(Tut[2][playerid], 1);
- TextDrawBoxColor(Tut[2][playerid], 848756735);
- TextDrawTextSize(Tut[2][playerid], 103.000000, -5.000000);
- Tut[3][playerid] = TextDrawCreate(523.000000, 140.000000, "_");
- TextDrawBackgroundColor(Tut[3][playerid], 255);
- TextDrawFont(Tut[3][playerid], 1);
- TextDrawLetterSize(Tut[3][playerid], 0.519999, 12.700000);
- TextDrawColor(Tut[3][playerid], -1);
- TextDrawSetOutline(Tut[3][playerid], 0);
- TextDrawSetProportional(Tut[3][playerid], 1);
- TextDrawSetShadow(Tut[3][playerid], 1);
- TextDrawUseBox(Tut[3][playerid], 1);
- TextDrawBoxColor(Tut[3][playerid], 848756735);
- TextDrawTextSize(Tut[3][playerid], 511.000000, 0.000000);
- Tut[4][playerid] = TextDrawCreate(104.000000, 138.000000, "_");
- TextDrawBackgroundColor(Tut[4][playerid], 255);
- TextDrawFont(Tut[4][playerid], 1);
- TextDrawLetterSize(Tut[4][playerid], 0.519999, 13.100003);
- TextDrawColor(Tut[4][playerid], -1);
- TextDrawSetOutline(Tut[4][playerid], 0);
- TextDrawSetProportional(Tut[4][playerid], 1);
- TextDrawSetShadow(Tut[4][playerid], 1);
- TextDrawUseBox(Tut[4][playerid], 1);
- TextDrawBoxColor(Tut[4][playerid], 848756735);
- TextDrawTextSize(Tut[4][playerid], 104.000000, 0.000000);
- Tut[5][playerid] = TextDrawCreate(266.000000, 142.000000, "Tutorial");
- TextDrawBackgroundColor(Tut[5][playerid], 255);
- TextDrawFont(Tut[5][playerid], 2);
- TextDrawLetterSize(Tut[5][playerid], 0.529999, 1.000000);
- TextDrawColor(Tut[5][playerid], 848756735);
- TextDrawSetOutline(Tut[5][playerid], 0);
- TextDrawSetProportional(Tut[5][playerid], 1);
- TextDrawSetShadow(Tut[5][playerid], 1);
- Tut[6][playerid] = TextDrawCreate(214.000000, 150.000000, "-");
- TextDrawBackgroundColor(Tut[6][playerid], 255);
- TextDrawFont(Tut[6][playerid], 2);
- TextDrawLetterSize(Tut[6][playerid], 17.030029, 1.000000);
- TextDrawColor(Tut[6][playerid], -1);
- TextDrawSetOutline(Tut[6][playerid], 0);
- TextDrawSetProportional(Tut[6][playerid], 1);
- TextDrawSetShadow(Tut[6][playerid], 1);
- Tut[7][playerid] = TextDrawCreate(110.000000, 168.000000, "- Dobrodosli na ~b~Last Night roleplay ~w~samp server.");
- TextDrawBackgroundColor(Tut[7][playerid], 255);
- TextDrawFont(Tut[7][playerid], 2);
- TextDrawLetterSize(Tut[7][playerid], 0.310000, 1.400000);
- TextDrawColor(Tut[7][playerid], -1);
- TextDrawSetOutline(Tut[7][playerid], 0);
- TextDrawSetProportional(Tut[7][playerid], 1);
- TextDrawSetShadow(Tut[7][playerid], 1);
- Tut[8][playerid] = TextDrawCreate(110.000000, 186.000000, "- Sada ce vam biti prikazan kratak ~r~tutorial ~w~i neka ~r~pravila.");
- TextDrawBackgroundColor(Tut[8][playerid], 255);
- TextDrawFont(Tut[8][playerid], 2);
- TextDrawLetterSize(Tut[8][playerid], 0.300000, 1.400000);
- TextDrawColor(Tut[8][playerid], -1);
- TextDrawSetOutline(Tut[8][playerid], 0);
- TextDrawSetProportional(Tut[8][playerid], 1);
- TextDrawSetShadow(Tut[8][playerid], 1);
- Tut[9][playerid] = TextDrawCreate(110.000000, 204.000000, "- Zelimo vam ugodnu igru na server i puno uspeha.");
- TextDrawBackgroundColor(Tut[9][playerid], 255);
- TextDrawFont(Tut[9][playerid], 2);
- TextDrawLetterSize(Tut[9][playerid], 0.300000, 1.400000);
- TextDrawColor(Tut[9][playerid], -1);
- TextDrawSetOutline(Tut[9][playerid], 0);
- TextDrawSetProportional(Tut[9][playerid], 1);
- TextDrawSetShadow(Tut[9][playerid], 1);
- Tut[10][playerid] = TextDrawCreate(110.000000, 222.000000, "- Pazljivo procitajte sva ~b~pravila ~w~ukoliko ih ne znate.");
- TextDrawBackgroundColor(Tut[10][playerid], 255);
- TextDrawFont(Tut[10][playerid], 2);
- TextDrawLetterSize(Tut[10][playerid], 0.300000, 1.400000);
- TextDrawColor(Tut[10][playerid], -1);
- TextDrawSetOutline(Tut[10][playerid], 0);
- TextDrawSetProportional(Tut[10][playerid], 1);
- TextDrawSetShadow(Tut[10][playerid], 1);
- Tut[11][playerid] = TextDrawCreate(111.000000, 142.000000, "(1/5)");
- TextDrawBackgroundColor(Tut[11][playerid], 255);
- TextDrawFont(Tut[11][playerid], 2);
- TextDrawLetterSize(Tut[11][playerid], 0.420000, 1.000000);
- TextDrawColor(Tut[11][playerid], 848756735);
- TextDrawSetOutline(Tut[11][playerid], 0);
- TextDrawSetProportional(Tut[11][playerid], 1);
- TextDrawSetShadow(Tut[11][playerid], 1);
- //------------------------------------------------------------------------------
- Tut[5][playerid] = TextDrawCreate(266.000000, 142.000000, "Tutorial");
- TextDrawBackgroundColor(Tut[5][playerid], 255);
- TextDrawFont(Tut[5][playerid], 2);
- TextDrawLetterSize(Tut[5][playerid], 0.529999, 1.000000);
- TextDrawColor(Tut[5][playerid], 848756735);
- TextDrawSetOutline(Tut[5][playerid], 0);
- TextDrawSetProportional(Tut[5][playerid], 1);
- TextDrawSetShadow(Tut[5][playerid], 1);
- Tut[6][playerid] = TextDrawCreate(214.000000, 150.000000, "-");
- TextDrawBackgroundColor(Tut[6][playerid], 0xFF9900AA);
- TextDrawFont(Tut[6][playerid], 2);
- TextDrawLetterSize(Tut[6][playerid], 17.030029, 1.000000);
- TextDrawColor(Tut[6][playerid], -1);
- TextDrawSetOutline(Tut[6][playerid], 0);
- TextDrawSetProportional(Tut[6][playerid], 1);
- TextDrawSetShadow(Tut[6][playerid], 1);
- Tut[7][playerid] = TextDrawCreate(110.000000, 168.000000, "- Dobrodosli na ~p~Last Night RP ~w~samp server.");
- TextDrawBackgroundColor(Tut[7][playerid], 255);
- TextDrawFont(Tut[7][playerid], 2);
- TextDrawLetterSize(Tut[7][playerid], 0.310000, 1.400000);
- TextDrawColor(Tut[7][playerid], -1);
- TextDrawSetOutline(Tut[7][playerid], 0);
- TextDrawSetProportional(Tut[7][playerid], 1);
- TextDrawSetShadow(Tut[7][playerid], 1);
- Tut[8][playerid] = TextDrawCreate(110.000000, 186.000000, "- Sada ce vam biti prikazan kratak ~r~tutorial ~w~i neka ~r~pravila.");
- TextDrawBackgroundColor(Tut[8][playerid], 255);
- TextDrawFont(Tut[8][playerid], 2);
- TextDrawLetterSize(Tut[8][playerid], 0.300000, 1.400000);
- TextDrawColor(Tut[8][playerid], -1);
- TextDrawSetOutline(Tut[8][playerid], 0);
- TextDrawSetProportional(Tut[8][playerid], 1);
- TextDrawSetShadow(Tut[8][playerid], 1);
- Tut[9][playerid] = TextDrawCreate(110.000000, 204.000000, "- Zelimo vam ugodnu igru na server i puno uspeha.");
- TextDrawBackgroundColor(Tut[9][playerid], 255);
- TextDrawFont(Tut[9][playerid], 2);
- TextDrawLetterSize(Tut[9][playerid], 0.300000, 1.400000);
- TextDrawColor(Tut[9][playerid], -1);
- TextDrawSetOutline(Tut[9][playerid], 0);
- TextDrawSetProportional(Tut[9][playerid], 1);
- TextDrawSetShadow(Tut[9][playerid], 1);
- Tut[10][playerid] = TextDrawCreate(110.000000, 222.000000, "- Pazljivo procitajte sva ~b~pravila ~w~ukoliko ih ne znate.");
- TextDrawBackgroundColor(Tut[10][playerid], 255);
- TextDrawFont(Tut[10][playerid], 2);
- TextDrawLetterSize(Tut[10][playerid], 0.300000, 1.400000);
- TextDrawColor(Tut[10][playerid], -1);
- TextDrawSetOutline(Tut[10][playerid], 0);
- TextDrawSetProportional(Tut[10][playerid], 1);
- TextDrawSetShadow(Tut[10][playerid], 1);
- Tut[11][playerid] = TextDrawCreate(111.000000, 142.000000, "(1/5)");
- TextDrawBackgroundColor(Tut[11][playerid], 255);
- TextDrawFont(Tut[11][playerid], 2);
- TextDrawLetterSize(Tut[11][playerid], 0.420000, 1.000000);
- TextDrawColor(Tut[11][playerid], 0xFF9900AA);
- TextDrawSetOutline(Tut[11][playerid], 0);
- TextDrawSetProportional(Tut[11][playerid], 1);
- TextDrawSetShadow(Tut[11][playerid], 1);
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- stock GetName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- ///////////////////////////////////////////////////////////////////////////
- stock BelaBojaIgraca(playerid)
- {
- SetPlayerColor(playerid,0xFFFFFF00);
- }
- ///////////////////////////////////////////////////////////////////////////
- stock ProveraRPImena(playerid)
- {
- new pname[MAX_PLAYER_NAME],underline=0;
- GetPlayerName(playerid, pname, sizeof(pname));
- /////////////////////////////////////////////////////////
- if(strfind(pname,"Corleone",true) != (-1)) return 1; // Sklanja proveru za ovo ime
- else if(strfind(pname,"Tonyy",true) != (-1)) return 1; // Sklanja proveru za ovo ime
- /////////////////////////////////////////////////////////
- else if(strfind(pname,"[",true) != (-1)) return 0;
- else if(strfind(pname,"]",true) != (-1)) return 0;
- else if(strfind(pname,"$",true) != (-1)) return 0;
- else if(strfind(pname,"(",true) != (-1)) return 0;
- else if(strfind(pname,")",true) != (-1)) return 0;
- else if(strfind(pname,"=",true) != (-1)) return 0;
- else if(strfind(pname,"@",true) != (-1)) return 0;
- else if(strfind(pname,"1",true) != (-1)) return 0;
- else if(strfind(pname,"2",true) != (-1)) return 0;
- else if(strfind(pname,"3",true) != (-1)) return 0;
- else if(strfind(pname,"4",true) != (-1)) return 0;
- else if(strfind(pname,"5",true) != (-1)) return 0;
- else if(strfind(pname,"6",true) != (-1)) return 0;
- else if(strfind(pname,"7",true) != (-1)) return 0;
- else if(strfind(pname,"8",true) != (-1)) return 0;
- else if(strfind(pname,"9",true) != (-1)) return 0;
- else if(strfind(pname,".",true) != (-1)) return 0;
- else if(strfind(pname,",",true) != (-1)) return 0;
- else if(strfind(pname,"-",true) != (-1)) return 0;
- else if(strfind(pname,"samp",true) != (-1)) return 0;
- else if(strfind(pname,"kurac",true) != (-1)) return 0;
- else if(strfind(pname,"AM",true) != (-1)) return 0;
- else if(strfind(pname,"Balkan",true) != (-1)) return 0;
- else if(strfind(pname,"Extazy",true) != (-1)) return 0;
- else if(strfind(pname,"Games",true) != (-1)) return 0;
- new maxname = strlen(pname);
- for(new i=0; i<maxname; i++)
- {
- if(pname[i] == '_') underline ++;
- }
- if(underline != 1) return 0;
- pname[0] = toupper(pname[0]);
- for(new x=1; x<maxname; x++)
- {
- if(pname[x] == '_') pname[x+1] = toupper(pname[x+1]);
- else if(pname[x] != '_' && pname[x-1] != '_') pname[x] = tolower(pname[x]);
- }
- return 1;
- }
- ///////////////////////////////////////////////////////////////////////////
- stock Korisnici(playerid)
- {
- new string[128];
- format(string,sizeof(string),KORISNICI,GetName(playerid));
- return string;
- }
- ///////////////////////////////////////////////////////////////////////////
- stock udb_hash(buf[]) //HASH PASS
- {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) % 65521;
- s2 = (s2 + s1) % 65521;
- }
- return (s2 << 16) + s1;
- }
- ////////////////////////////////////////////////////////////////////////////
- stock SamoIme(playerid) //Proverava Samo Igracevo Ime
- {
- new imes[2][MAX_PLAYER_NAME],ime[MAX_PLAYER_NAME];
- GetPlayerName(playerid,ime,MAX_PLAYER_NAME);
- split(ime, imes, '_');
- return imes[0];
- }
- ///////////////////////////////////////////////////////////////////////////
- stock SamoPrezime(playerid) //Proverava Samo Prezime Igraca
- {
- new imes[2][MAX_PLAYER_NAME],ime[MAX_PLAYER_NAME];
- GetPlayerName(playerid,ime,MAX_PLAYER_NAME);
- split(ime, imes, '_');
- return imes[1];
- }
- ///////////////////////////////////////////////////////////////////////////
- stock ProveraImenaBDC(playerid)//Provera Imena Bez Donje Crte
- {
- new string[24],str[24];
- GetPlayerName(playerid,string,24);
- strmid(str,string,0,strlen(string),24);
- for(new i = 0; i < MAX_PLAYER_NAME; i++)
- {
- if (str[i] == '_') str[i] = ' ';
- }
- return str;
- }
- //////////////////////////////////////////////////
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(clickedid == RegLogi[2])
- {
- KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
- if(fexist(Korisnici(playerid)))
- {
- new loginname[126];
- GetPlayerName(playerid,loginname,sizeof(loginname));
- SendClientMessage(playerid, COLOR_YELLOW, "{FFCC00}[LN:RP]{FFFFFF} Vec ste registrovani na server !");
- }
- else
- {
- CancelSelectTextDraw(playerid);
- SakrijLogRegTextDraw(playerid);
- if(ServerInfo[isRegistracija] == 1)
- {
- StatusKonekta(playerid, 5);
- }
- else if(ServerInfo[isRegistracija] != 1)
- {
- SakrijLogRegTextDraw(playerid);
- CancelSelectTextDraw(playerid);
- new info[1024];
- strcat(info, "{0066FF}|==========================================================|\n", sizeof(info));
- strcat(info, "{FFCC00} Dobrodosli na Last Night RolePlay !\n", sizeof(info));
- strcat(info, " "BELA"Vas account{FF0000} nije{FFFFFF} pronadjen u nasoj Data-Bazi\n", sizeof(info));
- strcat(info, " "BELA"Forum:www.uskoro.com/forum\n", sizeof(info));
- strcat(info, " "BELA"TeamSpeak:"CRVENA" uskoro\n", sizeof(info));
- strcat(info, " "BELA"Kako bi nastavili registraciju, unesite zeljenu lozinku.\n", sizeof(info));
- strcat(info, "{0066FF}|==========================================================|", sizeof(info));
- ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{FFCC00}Register",info,"Registruj se","Izadji");
- InterpolateCameraPos(playerid, 1260.778442, -1400.271484, 13.317417, 1426.689941, -1334.434448, 252.366226, 10000);
- InterpolateCameraLookAt(playerid, 1265.766845, -1400.510009, 13.559510, 1421.763793, -1334.375244, 251.512268, 10000);
- }
- }
- }
- if(clickedid == RegLogi[1])
- {
- KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
- if(fexist(Korisnici(playerid)))
- {
- new loginname[126];
- new loginstring[2048];
- CancelSelectTextDraw(playerid);
- SakrijLogRegTextDraw(playerid);
- GetPlayerName(playerid,loginname,sizeof(loginname));
- format(loginstring,sizeof(loginstring),"{0066FF}"BELA"|{0066FF}======================================="BELA"|\n\n"BELA"Dobrodosli na Last Night RolePlay\n\n"BELA"Ime: "CRVENA"%s\n"BELA"Forum:"CRVENA" www.uskoro.tk/forum \n"BELA"Teamspeak:"CRVENA" 178.33.216.108:9988 \n"BELA"Unesite vas"CRVENA" password\n{0066FF}"BELA"|{0066FF}======================================="BELA"|",loginname);
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFCC00}Login",loginstring,"Login","Izlaz");
- }
- else
- {
- if(ServerInfo[isRegistracija] == 1)
- {
- StatusKonekta(playerid, 5);
- }
- else if(ServerInfo[isRegistracija] != 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "{FFCC00}[LN:RP]{FFFFFF} Niste registrovani na server !");
- }
- }
- }
- if(clickedid == RegLogi[3])
- {
- ShowPlayerDialog(playerid, PRAVILA, DIALOG_STYLE_MSGBOX, "{FFCC00}Forum",""BELA"www.uskoro.com/forum", "Ok", "");
- return 1;
- }
- if(clickedid == RegLogi[4])
- {
- ShowPlayerDialog(playerid, PRAVILA, DIALOG_STYLE_MSGBOX, "{FFCC00}Teamspeak",""BELA"Uskoro", "Ok", "");
- return 1;
- }
- if(clickedid == RegLogi[5])
- {
- new info[512];
- strcat(info, "{0066FF}|=================CREDITS====================|\n", sizeof(info));
- strcat(info, " "BELA"Autor skripte:{00C0FF}Corleone\n", sizeof(info));
- strcat(info, " "BELA"Urednik skripte:{00C0FF} Corleone\n", sizeof(info));
- strcat(info, " "BELA"Izvorna skripta:{00C0FF} Last Night RolePlay v0.1\n", sizeof(info));
- strcat(info, " "BELA"Maper:{00C0FF} Corleone\n", sizeof(info));
- strcat(info, "{0066FF}|============================================|\n", sizeof(info));
- strcat(info, ""BELA" ~ www.balkan-samp.com ~\n", sizeof(info));
- strcat(info, ""BELA" ~ www.zbsamp.com ~\n", sizeof(info));
- strcat(info, ""BELA" ~ www.forum.sa-mp.com ~\n", sizeof(info));
- strcat(info, ""BELA" ~ E-trail Hosting ~\n", sizeof(info));
- ShowPlayerDialog(playerid, PRAVILA, DIALOG_STYLE_MSGBOX, "{FFCC00}Credits",info, "Ok", "");
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- stock ObrisiObjekte(playerid)
- {
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- stock AttachObjectRemove(playerid)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment