Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnGameModeInit( )
- {
- BUD::Setting( opt.Database, "Accounts.db" ); // The name of the database to create/use.
- BUD::Setting( opt.Asynchronous, true ); // true - faster, but if your computer gets stuck by ligntning when it's doing something with the database it could end up corrupted! :D
- BUD::Setting( opt.KeepAliveTime, 3000 ); // The database will be kept open for 3000ms each time it's being used; this is to save performance.
- BUD::Setting( opt.CheckForUpdates, false ); // Check for BUD updates! This is set to true by default.
- BUD::Initialize( ); // Initialize the system; this has to be called before using any functions besides BUD::Setting.
- BUD::VerifyColumn( "IP", BUD::TYPE_STRING, "Null");
- BUD::VerifyColumn( "Registered", BUD::TYPE_STRING, "Never" );
- BUD::VerifyColumn( "Password", BUD::TYPE_STRING, "Null" );
- BUD::VerifyColumn( "Old_Password", BUD::TYPE_STRING, "Null" );
- BUD::VerifyColumn( "Timeonline", BUD::TYPE_STRING, "00:00:00" );
- BUD::VerifyColumn( "Level", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "VIP", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Kills", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Deaths", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Money", BUD::TYPE_NUMBER, 5000 );
- BUD::VerifyColumn( "Score", BUD::TYPE_NUMBER, 25 );
- BUD::VerifyColumn( "Cookies", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Banned", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Connections", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "PlayerGod", BUD::TYPE_NUMBER, 1 );
- BUD::VerifyColumn( "CarGod", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "SpawnCity", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "SaveCity", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "PlayerGoto", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "PMSent", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Messages", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Commands", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "AWP", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "RP", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "IQ", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Math", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Paintjob", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Wheels", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "LastCon", BUD::TYPE_STRING, "Never" );
- BUD::VerifyColumn( "BestSpree", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "BestSpreeOn", BUD::TYPE_STRING, "Never" );
- BUD::VerifyColumn( "Boostpower", BUD::TYPE_NUMBER, 5 );
- BUD::VerifyColumn( "Weather", BUD::TYPE_NUMBER, 0 );
- BUD::VerifyColumn( "Time", BUD::TYPE_NUMBER, 12 );
- BUD::VerifyColumn( "Skin", BUD::TYPE_NUMBER, -1 );
- BUD::VerifyColumn( "Binds", BUD::TYPE_NUMBER, 1 );
- BUD::VerifyColumn( "VUP", BUD::TYPE_NUMBER, 1 );
- BUD::VerifyColumn( "VUPValue", BUD::TYPE_NUMBER, 2 );
- BUD::VerifyColumn( "VUPKey", BUD::TYPE_NUMBER, 2 );
- BUD::VerifyColumn( "AntiFall", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Boost", BUD::TYPE_FLOAT, 1.7 );
- BUD::VerifyColumn( "Boost2", BUD::TYPE_NUMBER, 1 );
- BUD::VerifyColumn( "SpeedStyle", BUD::TYPE_NUMBER, 1 );
- BUD::VerifyColumn( "Weapon1", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon2", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon3", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon4", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon5", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon6", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon7", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon8", BUD::TYPE_NUMBER );
- BUD::VerifyColumn( "Weapon9", BUD::TYPE_NUMBER );
- /*
- new Str[ 100 ], Str2[ 100 ];
- for ( new i = 0; i < 15; i++ )
- {
- format( Str, 100, "Username%d", i );
- format( Str2, 100, "PASS%d", (i * 199) / (3 * 15) );
- if ( !BUD::IsNameRegistered( Str ) )
- {
- if ( BUD::RegisterName( Str, Str2 ) )
- {
- printf( "USERNAME: %s | PASSWORD: %s", Str, Str2 );
- }
- else printf( "FAIL" );
- }
- if ( BUD::IsNameRegistered( Str ) )
- {
- new iUID = BUD::GetNameUID( Str );
- printf( "AUTHENTICATION: %s", ( BUD::CheckAuth( Str, Str2 ) ) ? ("TRUE") : ("FALSE") );
- BUD::MultiSet
- (
- iUID,
- "iiiiiiiiii",
- "Kills", random( 10000 ),
- "Deaths", random( 154000 ),
- "Score", random( 154000 ),
- "Cookies", random( 154000 ),
- "Commands", random( 154000 ),
- "Messages", random( 154000 ),
- "IQ", random( 154000 ),
- "RP", random( 154000 ),
- "Math", random( 154000 ),
- "ABP", random( 154000 )
- );
- }
- }*/
- D_qcount = 0;
- CreateQuizItem("Chi è il FOUNDER di questo server?", "Heros", "Spyro", "Luca_Camp", "TheBoss");
- CreateQuizItem("Dopo quante ore si diventa liv1 admin?", "5", "12", "29", "50");
- CreateQuizItem("Dopo quante ore si diventa liv2 admin?", "35", "55", "85", "75");
- CreateQuizItem("Dopo quante ore si diventa liv3 admin?", "80", "90", "120", "100");
- CreateQuizItem("Chi ha segnato il 2 gol in italia germania del mondiale 2006?", "Totti", "Di Natale", "grosso", "Del piero");
- CreateQuizItem("Qual'è il simbolo dei nazisti?", "Falco", "Croce rovesciata", "aquila", "svasica");
- CreateQuizItem("Qual è il clan piu forte di samp?", "IRS", "LBG", "DSC", "CRS");
- CreateQuizItem("Cosa è il c-bug?", "Una Mod", "Uno Script", "Un Bug", "Un Glitch");
- CreateQuizItem("Quanti nasi hanno le lumache?", "3", "1", "2", "4");
- CreateQuizItem("Una medusa è per il 95%?", "Carne", "Midollo", "Cartilagine", "Acqua");
- CreateQuizItem("Qual ' è il più grande oceano sulla terra?", "Indiano", "Artico", "Atlantico", "Pacifico");
- CreateQuizItem("Qual'è il parente più vicino al T-Rex?", "L' iguana", "Il rinoceronte", "La giraffa", "Il Pollo");
- CreateQuizItem("La Coca-Cola originariamente era?", "Blu", "Rossa", "Arancione", "Verde");
- CreateQuizItem("Qual'è il monumento umano visibile dallo spazio?", "La torre di Pisa" "Le piramidi ", "La fontana di Trevi", "La casa bianca", "La muraglia cinese");
- CreateQuizItem("In quale paese esiste un ristorante per Cannibali?", "Russia", "Francia", "Spagna", "Germania");
- CreateQuizItem("Quale palla rimbalza di più di una fatta di Gomma?", "Una palla di pelle", "Una palla di carta", "Una palla di cuoio", "Una palla di vetro");
- CreateQuizItem("Quanto è lungo un campo di calcio?", "10-20 metri", "150-200 metri", "20-60 metri", "90-120 metri");
- CreateQuizItem("In quale Paese si disputarono i mondiali nel 1982?", "Portogallo", "Germania", "Grecia", "Spagna");
- CreateQuizItem("Quanto pesa un pallone da calcio omologato?", "240 g", "120 g", "480 g" , "420 g");
- CreateQuizItem("Con quante ammonizioni si ha normalmente la squalifica in campo nazionale?", "2", "3", "5", "4");
- CreateQuizItem("Quante zampe ha una cavalletta?", "8", "12", "4", "6");
- CreateQuizItem("Quante specie di api esistono?", "9", "20", "7", "4");
- CreateQuizItem("La mosca quante uova depone in pochi minuti?", "da 30 a 70", "da 45 a 70", "da 50 a 70", "da 60 a 70");
- CreateQuizItem("quale di questi animali e piu feroce?", "Dingo", "Orso Grizzlee", "Tigre", "Diavolo della Tasmania");
- CreateQuizItem("qual'e il serpente velenoso piu lungo che esiste?", "vipera verde", "lancillotto dorato", "la vipera della morte", "cobra reale");
- CreateQuizItem("qual'è è stata l' ultima stanza che biancaneve ha visitato?", "Il cesso ", "la cucina", "la sala", "la camera da letto");
- for ( new p = 0; p < MAX_OBJECTS; p ++ )
- {
- for ( new x = 0; x < MAX_PLAYERS; x ++ )
- {
- if ( IsPlayerConnected( x ) )
- {
- DestroyPlayerObject( x, p );
- }
- }
- }
- for ( new p = 0; p < sizeof( Pickup_Pos )-1; p ++ )
- {
- RangePickup[ p ] = CreatePickup( 1318, 2, Pickup_Pos[ p ][ 0 ], Pickup_Pos[ p ][ 1 ], Pickup_Pos[ p ][ 2 ] );
- }
- RangePickup[ 6 ] = CreatePickup( 1239, 2, Pickup_Pos[ 6 ][ 0 ], Pickup_Pos[ 6 ][ 1 ], Pickup_Pos[ 6 ][ 2 ] );
- if ( !fexist( Sfile ) ) fopen( Sfile, io_write);
- if ( !fexist( SlogKick ) ) fopen( SlogKick, io_write);
- if ( !fexist( SlogBan ) ) fopen( SlogBan, io_write);
- if ( !fexist( SlogMute ) ) fopen( SlogMute, io_write);
- if ( !fexist( SlogFreeze ) ) fopen( SlogFreeze, io_write);
- if ( !fexist( SlogFakeMSG ) ) fopen( SlogFakeMSG, io_write);
- if ( !fexist( SlogFakeCMD ) ) fopen( SlogFakeCMD, io_write);
- if ( !fexist( SlogNameChange ) ) fopen( SlogNameChange, io_write);
- if ( !fexist( SlogEnemy ) ) fopen( SlogEnemy, io_write);
- if ( !fexist( SlogSuggest ) ) fopen( SlogSuggest, io_write);
- if ( !fexist( SlogSetLevel ) ) fopen( SlogSetLevel, io_write);
- if ( !fexist( SlogSetVip ) ) fopen( SlogSetVip, io_write);
- S_DATA[ S_Hour ] = 0;
- S_DATA[ S_Min ] = 0;
- S_DATA[ S_Sec ] = 0;
- S_DATA[ S_Players ] = 0;
- S_DATA[ S_PlayersRec ] = 0;
- INI_ParseFile(Sfile, "LoadPlayerRecordData");
- S_DATA[ S_ServerStart] = gettime();
- INI_ParseFile(Sfile, "LSD");
- AddRadio( "Radio ZU", "http://www.radiozu.ro/live.m3u" );
- AddRadio( "Kiss FM", "http://80.86.106.136/listen.pls" );
- AddRadio( "Vibe FM", "http://www.vibefm.ro/listen.pls" );
- AddRadio( "Pro FM", "http://stream.profm.ro:8012/profm.mp3" );
- AddRadio( "Pro FM Rock","http://stream.profm.ro:8142/rock.mp3.m3u" );
- AddRadio( "Radio 21", "http://www.radio21.ro/site/Radio21Live.m3u" );
- AddRadio( "Guerilla", "http://live.eliberadio.ro:8002/listen.pls" );
- AddRadio( "Heavy Metal","http://www.heavymetalradio.com/listen.pls" );
- AllowInteriorWeapons( 1 );
- INI_ParseFile("readme.ini","Zh3r0Time");
- AntiDEAmx();
- PKPara[0] = CreatePickup( 371, 2,3012.2466,-1746.5249,602.5409 );
- PKPara[1] = CreatePickup( 371, 2,2096.9517,-1775.1108,274.6510 );
- PKWeap[0] = CreatePickup( 349, 2,1524.9049,-1627.6110,309.4552 );
- CheckP[2] = CreateDynamicCP( 1302.5372, 1266.9974, 10.8203, 2); // LVAIR.funbowl
- CheckP[3] = CreateDynamicCP( 1329.0906, 1261.3354, 10.8203, 2); // LVAIR.LSAIR
- CheckP[4] = CreateDynamicCP( 1329.2584, 1255.1522, 10.820, 2); // LVAIR.SFAIR
- TotalChallangeCheckpoint[ 0 ] = CreateDynamicCP(3077.9487,-453.8571,562.6329, 2);
- TotalChallangeCheckpoint[ 1 ] = CreateDynamicCP(4500.0610,-895.6455,525.9315, 2);
- TotalChallangeCheckpoint[ 2 ] = CreateDynamicCP(4662.5049,-622.9238,552.5170, 2);
- TotalChallangeCheckpoint[ 3 ] = CreateDynamicCP(4450.3882,-438.4370,552.4482, 2);
- TotalChallangeCheckpoint[ 4 ] = CreateDynamicCP(4455.9419,-256.7409,552.3876, 2);
- TotalChallangeCheckpoint[ 5 ] = CreateDynamicCP(3992.0071,-244.4511,634.6367, 2);
- TotalChallangeCheckpoint[ 6 ] = CreateDynamicCP(3933.3062,-233.1318,589.7868, 2);
- TotalChallangeCheckpoint[ 7 ] = CreateDynamicCP(3410.9800,-5.1810,584.2848, 2);
- TotalChallangeCheckpoint[ 8 ] = CreateDynamicCP(3344.0305,-141.4042,595.8679, 2);
- TotalChallangeCheckpoint[ 9 ] = CreateDynamicCP(3228.8599,-398.5620,563.0695, 2);
- CreateSurfboard(1, 548.57208252, -1910.07702637, 0.0, 270.0, 0.0, 180.0);
- CreateSurfboard(2, 546.25457764, -1909.92712402, 0.0, 270.0, 0.0, 180.0);
- CreateSurfboard(3, 543.55535889, -1909.75854492, 0.0, 270.0, 0.0, 180.0);
- CreateSurfboard(1, 540.91290283, -1909.6159668, 0.0, 270.0, 0.0, 180.0);
- CreateSurfboard(3, 538.32940674, -1908.54333496, 0.0, 270.0, 0.0, 180.0);
- Create3DTextLabel("FINISH!\nReward: $3000, 4 Cookies, +4 Score, Desert Eagle",COLOR_WHITE,2616.5210,-1774.3258,673.8110,150.0,0);
- Create3DTextLabel("FINISH!\nReward: $5500, 6 Cookies, +5 Score, Sawn-Off Shotgun",COLOR_WHITE,1486.8768,-1642.4147,310.0115,150.0,0);
- #define LightGreen 0x2FE13FF
- #define LightBlue 0x8DA0FCFF
- Create3DTextLabel("Go inside\n"COL_ORANGE"The Ball",COLOR_WHITE,1584.8303,-2584.3428,13.2739,100.0,0); // LSAIR
- Create3DTextLabel("Go inside",COLOR_WHITE,1713.9775,-2486.5249,13.2817,80.0,0); // LSAIR
- Create3DTextLabel("Going to:\n"COL_ORANGE"Volcano",COLOR_WHITE,1443.2830,-2535.7185,13.5619,100.0,0); // LSAIR
- Create3DTextLabel("Quad",LightGreen,3077.9487,-453.8571,562.6329,80.0,0); // QUAD
- Create3DTextLabel("BMX",LightGreen,3228.8599,-398.5620,563.0695,80.0,0); // BMX
- Create3DTextLabel("NRG-500",LightGreen,3344.0305,-141.4042,595.8679,80.0,0); // NRG
- Create3DTextLabel("Infernus",LightGreen,3410.9800,-5.1810,584.2848,80.0,0); // INFERNUS
- Create3DTextLabel("Speed Boost",LightBlue,3933.3062,-233.1318,589.7868,80.0,0); // SPEED BOOST
- Create3DTextLabel("Turismo",LightGreen,3992.0071,-244.4511,634.6367,80.0,0); // TURISMO
- Create3DTextLabel("Elegy",LightGreen,4455.9419,-256.7409,552.3876,80.0,0); // ELEGY
- Create3DTextLabel("Cheetah",LightGreen,4450.3882,-438.4370,552.4482,80.0,0); // CHEETAH
- Create3DTextLabel("Elegy",LightGreen,4662.5049,-622.9238,552.5170,80.0,0); // EL:EGY
- Create3DTextLabel("Infernus",LightGreen,4500.0610,-895.6455,525.9315,80.0,0); // INFERNUS
- Create3DTextLabel("Regular Shotgun",COLOR_WHITE,1524.9049,-1627.6110,309.4552,60.0,0);
- Create3DTextLabel("Parachute",COLOR_WHITE,3012.2466,-1746.5249,602.5409,70.0,0);
- Create3DTextLabel("Police Department",COLOR_WHITE,2781.7600,-3836.6816,9.1517,70.0,0);
- Create3DTextLabel("Restaurant",COLOR_WHITE,2671.4583,-3807.1680,7.3506,70.0,0);
- Create3DTextLabel("Exit",COLOR_WHITE,3508.1277,-1065.5143,188.3759,70.0,0);
- Create3DTextLabel("Exit",COLOR_WHITE,246.1563,109.1232,1003.2188,70.0,0);
- Create3DTextLabel("Los Santos Airport",COLOR_WHITE,1329.0906,1261.3354,10.8203,70.0,0);
- Create3DTextLabel("San Fierro Airport",COLOR_WHITE,1329.2584,1255.1522,10.820,70.0,0);
- SetGameModeText( " Stunt|Jump|Drift|DM" );
- new HostName[ 100 ];
- format( HostName, sizeof( HostName ), "-|ITA-ENG|- » Cold Revenge Server™ « -|2011|-|CRS|- [%s]",Version );
- SendRconCommand( HostName );
- ShowNameTags(1);
- UsePlayerPedAnims();
- SetNameTagDrawDistance(90.0);
- EnableStuntBonusForAll(0);
- SetWeather(2);
- ShowPlayerMarkers( PLAYER_MARKERS_MODE_GLOBAL );
- DisableInteriorEnterExits();
- BiBaaboooo = TextDrawCreate(2.000000,0.000000,"-");
- TextDrawUseBox(BiBaaboooo,1);
- TextDrawUseBox(BiBaaboooo,1);
- TextDrawBoxColor(BiBaaboooo,0x00000050);
- TextDrawTextSize(BiBaaboooo,640.000000,0.000000);
- TextDrawAlignment(BiBaaboooo,0);
- TextDrawBackgroundColor(BiBaaboooo,0x00000000);
- TextDrawFont(BiBaaboooo,3);
- TextDrawLetterSize(BiBaaboooo,1.000000,52.000000);
- TextDrawColor(BiBaaboooo,0x00000000);
- TextDrawSetOutline(BiBaaboooo,1);
- TextDrawSetProportional(BiBaaboooo,1);
- TextDrawSetShadow(BiBaaboooo,1);
- SiteTD = TextDrawCreate(560.000000, 13.000000, SITE);
- TextDrawAlignment(SiteTD, 2);
- TextDrawBackgroundColor(SiteTD, 32);
- TextDrawFont(SiteTD, 2);
- TextDrawLetterSize(SiteTD, 0.259999, 1.099998);
- TextDrawColor(SiteTD, -16776961);
- TextDrawSetOutline(SiteTD, 1);
- TextDrawSetProportional(SiteTD, 1);
- QuizTD[ 0 ] = TextDrawCreate(11.000000, 157.000000, "-");
- TextDrawBackgroundColor(QuizTD[ 0 ], 255);
- TextDrawFont(QuizTD[ 0 ], 1);
- TextDrawLetterSize(QuizTD[ 0 ], 0.310000, 1.000000);
- TextDrawColor(QuizTD[ 0 ], -1);
- TextDrawSetOutline(QuizTD[ 0 ], 0);
- TextDrawSetProportional(QuizTD[ 0 ], 1);
- TextDrawSetShadow(QuizTD[ 0 ], 1);
- TextDrawUseBox(QuizTD[ 0 ], 1);
- TextDrawBoxColor(QuizTD[ 0 ], 80);
- TextDrawTextSize(QuizTD[ 0 ], 280.000000, -1.000000);
- kSpreeTD = TextDrawCreate(88.000000, 298.000000, "-");
- TextDrawAlignment(kSpreeTD, 2);
- TextDrawBackgroundColor(kSpreeTD, 255);
- TextDrawFont(kSpreeTD, 1);
- TextDrawLetterSize(kSpreeTD, 0.419999, 1.399998);
- TextDrawColor(kSpreeTD, -16776961);
- TextDrawSetOutline(kSpreeTD, 1);
- TextDrawSetProportional(kSpreeTD, 1);
- LoadTDs();
- LoadObjects();
- UpdateConfigurations();
- for( new InsertClass = 0; InsertClass <= sizeof( Class ); InsertClass++ )
- {
- AddPlayerClass( Class[ InsertClass ][ 0 ], 900.737304, -2092.748779, 13.047561, 84.456192, 0, 0, 0, 0, 0, 0 );
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement