Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Evo nesto nabrzaka od mene. Nadam se da radi, i da si mislio na ovo, uglavnom kad pogodis igraca cuje se ono `ding`, i izbaci ti kolko si mu
- // helta skinuo testiraj ako ima errora javi.
- new Text:GiveDamage[MAX_PLAYERS];
- new Text:TakeDamage[MAX_PLAYERS];
- public OnGameModeInit()
- {
- for(new i; i < MAX_PLAYERS; ++i)
- {
- GiveDamage[i] = TextDrawCreate(171.000000, 388.000000, " ");
- TextDrawAlignment(GiveDamage[i], 2);
- TextDrawBackgroundColor(GiveDamage[i], 255);
- TextDrawFont(GiveDamage[i], 2);
- TextDrawLetterSize(GiveDamage[i], 0.160000, 0.599999);
- TextDrawColor(GiveDamage[i], 0x00FF04FF);
- TextDrawSetOutline(GiveDamage[i], 1);
- TextDrawSetProportional(GiveDamage[i], 1);
- }
- for(new i; i < MAX_PLAYERS; ++i)
- {
- TakeDamage[i] = TextDrawCreate(440.000000,388.000000, " ");
- TextDrawAlignment(TakeDamage[i], 2);
- TextDrawBackgroundColor(TakeDamage[i], 255);
- TextDrawFont(TakeDamage[i], 2);
- TextDrawLetterSize(TakeDamage[i], 0.160000, 0.599999);
- TextDrawColor(TakeDamage[i], 0xE81010FF);
- TextDrawSetOutline(TakeDamage[i], 1);
- TextDrawSetProportional(TakeDamage[i], 1);
- }
- return 1;
- }
- forward OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid);
- public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
- {
- new s[20];
- format(s, 20, "+Damage %.0f", amount);
- TextDrawSetString(GiveDamage[playerid], s);
- TextDrawShowForPlayer(playerid, GiveDamage[playerid]);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetTimerEx("UnistiTextDraw", 1000, false, "i", playerid);
- return 1;
- }
- forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- new s[20];
- format(s, 20, "-Damage %.0f", amount);
- TextDrawSetString(TakeDamage[playerid], s);
- TextDrawShowForPlayer(playerid, TakeDamage[playerid]);
- SetTimerEx("UnistiTextDraw", 1000, false, "i", playerid);
- return 1;
- }
- forward UnistiTextDraw(playerid);
- public UnistiTextDraw(playerid)
- {
- TextDrawHideForPlayer(playerid, GiveDamage[playerid]);
- TextDrawHideForPlayer(playerid, TakeDamage[playerid]);
- return 1;
- }
- GDJE DA OVO SADA UBACIM ? JA IMAM OVO
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////
- ONO GORE JE TO STO TREBAM UBACIT A OVO DOLJE JE STO IMAM GDJE SADA OVO GORE TREBAM UBACIT ? hvala..
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- public OnGameModeInit( )
- {
- SetGameModeText( VERZIJA_MODA );
- SendRconCommand( "language "MAP_NAME"" );
- //___________________[ TIMERI ]________________
- SetTimer("PolaMinuteTimer",30000,true);
- #if ZIMSKI_MOD == 1
- //AddSnowObjects();
- /*CreateObject(8172,-716.59997559,3800.50000000,8.50000000,0.00000000,0.00000000,90.00000000); //object(vgssairportland07) (1)
- CreateObject(3074,-782.29998779,3785.30004883,8.50000000,0.00000000,270.00000000,269.99948120); //object(d9_runway) (6)
- CreateObject(3074,-782.29998779,3798.89990234,8.50000000,0.00000000,270.00000000,269.99450684); //object(d9_runway) (7)
- CreateObject(3074,-782.29998779,3807.60009766,8.50000000,0.00000000,270.00000000,269.99450684); //object(d9_runway) (8)
- CreateObject(3074,-752.09997559,3807.60009766,8.50000000,0.00000000,270.00000000,269.99450684); //object(d9_runway) (9)
- CreateObject(3074,-722.00000000,3807.50000000,8.50000000,0.00000000,270.00000000,269.99450684); //object(d9_runway) (10)
- CreateObject(3074,-691.79998779,3807.50000000,8.50000000,0.00000000,270.00000000,269.99450684); //object(d9_runway) (11)
- CreateObject(3074,-661.59997559,3807.50000000,8.50000000,0.00000000,270.00000000,269.99450684); //object(d9_runway) (12)
- CreateObject(3074,-753.79998779,3795.19995117,8.60000038,0.00000000,270.00000000,269.99450684); //object(d9_runway) (14)
- CreateObject(3074,-723.59997559,3795.10009766,8.60000038,0.00000000,270.00000000,269.99450684); //object(d9_runway) (15)
- CreateObject(3074,-693.40002441,3794.89990234,8.60000038,0.00000000,270.00000000,269.99450684); //object(d9_runway) (16)
- CreateObject(3074,-664.09997559,3794.69995117,8.60000038,0.00000000,270.00000000,269.99450684); //object(d9_runway) (17)
- CreateObject(3074,-664.29998779,3781.69995117,8.69999981,0.00000000,270.00000000,269.99450684); //object(d9_runway) (18)
- CreateObject(3074,-694.50000000,3781.80004883,8.69999981,0.00000000,270.00000000,269.99450684); //object(d9_runway) (19)
- CreateObject(3074,-724.40002441,3781.89990234,8.69999981,0.00000000,270.00000000,269.99450684); //object(d9_runway) (20)
- CreateObject(3074,-754.40002441,3782.00000000,8.69999981,0.00000000,270.00000000,269.99450684); //object(d9_runway) (21)
- CreateObject(8172,-796.79998779,3800.50000000,-48.00000000,90.00000000,0.00000000,90.00000000); //object(vgssairportland07) (2)
- CreateObject(8172,-650.20001221,3800.50000000,-48.00000000,90.00000000,180.00000000,90.00000000); //object(vgssairportland07) (3)
- CreateObject(8172,-729.09997559,3780.69995117,12.80000019,0.00000000,270.00000000,270.00000000); //object(vgssairportland07) (4)
- CreateObject(8172,-726.20001221,3820.19995117,12.80000019,0.00000000,270.00000000,90.00000000);*/
- #endif
- EnableStuntBonusForAll( 0 );
- DisableInteriorEnterExits( );
- ManualVehicleEngineAndLights( );
- UsePlayerPedAnims( );
- AllowInteriorWeapons( 1 );
- ShowPlayerMarkers( 0 );
- //KreirajObjekte( );
- ServerInfo[ HangarPaket ] = true;
- #if ZIMSKI_MOD == 1
- SetWeather( 38 );
- GlobalnoVrijeme = 38;
- ServerInfo[ Prognozasys ] = 38;
- #else
- ServerInfo[ Prognozasys ] = 10;
- SetWeather( 10 );
- GlobalnoVrijeme = 10;
- #endif
- MapAndreas_Init( MAP_ANDREAS_MODE_FULL );
- LoadScriptfiles( );
- LoadVehicles( );
- CreateMapIcons( );
- CreateTextDraws( );
- DefineGatesAndDoors( );
- CreatePickupsAnd3Ds( );
- ResetAllFarmPlants( );
- PostaviParoveKladionica( );
- //Streamer_VisibleItems(STREAMER_TYPE_OBJECT,1000);
- new year, month, day;
- getdate( year, month, day );
- gettimeEx(ghour, gminute, gsecond);
- FixHour(ghour);
- ghour = shifthour;
- if( !realtime )
- {
- SetWorldTime(wtime);
- GlobalniSat = wtime;
- ServerInfo[ VremeInGame ] = wtime;
- }
- AntiDeAMX();
- // za fly hack, minx, miny, maxx, maxy
- farmerField = CreateDynamicRectangle( -1198.3669, -1065.8173, -1002.0459, -909.7990 );
- bankSafe = CreateDynamicRectangle( 1473.7382, -1031.7211, 1465.0930, -1007.0601 );
- ZlataraSef = CreateDynamicRectangle( 918.9664, -1011.9576, 913.6884, -1010.5016 );
- SpawnZona = CreateDynamicRectangle( 356.0672,-2013.1305, 422.5678,-2096.5896 );//edited leon
- FarmerPosao = CreateDynamicRectangle( -1224.0177, -1220.6852, -1027.5038, -1064.8070 );
- GradjPosao = CreateDynamicRectangle(1859.0541,-1452.8436, 1979.4402,-1345.2263);//edited leon
- SSB = CreateDynamicRectangle( 1951.0851, -1744.1436, 1966.6748, -1723.7572 );
- KosacMost = CreateDynamicRectangle( 1956.7731, -1262.3374, 1985.3881, -1138.9209 );//edited leon
- AdminBaza = CreateDynamicRectangle( 2436.5176,1604.1638, 2598.3367,1482.1650 );//edited leon
- ZgradaNeka = CreateDynamicRectangle( 1521.3862, -1378.1085, 1564.0503, -1333.2006 );
- GSFMost = CreateDynamicRectangle( 2412.8169, -1722.5156, 2447.5449, -1575.6823 );//edited leon
- AutoPijacaBG = CreateDynamicRectangle( 1588.1996,-1151.6184, 1828.9156,-1025.6559 );//edited leon
- VineWoodArea = CreateDynamicRectangle( 1413.37354, -830.92944, 1466.22461, -795.86652 );//edited leon
- SAJBaza = CreateDynamicRectangle( 1246.2416,-1229.9323,1331.2672,-1176.3035 );//edited leon
- new KurvaP1 = CreateActor( 63, -2411.0474, 994.7935, -20.4423, 6.7633 );
- new KurvaP2 = CreateActor( 64, -2412.1418, 993.2431, -20.4423, 123.0319 );
- new KurvaP3 = CreateActor( 152, -2391.5752, 993.4570, -20.4423, 116.0734 );
- new KurvaP4 = CreateActor( 207, -2393.1602, 1023.3606, -20.3654, 123.7557 );
- new KurvaP5 = CreateActor( 238, -2401.6619, 1022.3336, -20.3654, 90.2079 );
- ApplyActorAnimation( KurvaP1, "STRIP", "strip_A", 4.0, 1, 1, 1, 1, 0 );
- ApplyActorAnimation( KurvaP2, "STRIP", "strip_B", 4.0, 1, 1, 1, 1, 0 );
- ApplyActorAnimation( KurvaP3, "STRIP", "strip_C", 4.0, 1, 1, 1, 1, 0 );
- ApplyActorAnimation( KurvaP4, "STRIP", "strip_D", 4.0, 1, 1, 1, 1, 0 );
- ApplyActorAnimation( KurvaP5, "STRIP", "strip_E", 4.0, 1, 1, 1, 1, 0 );
- //AddStaticVehicle_V(408, 2174.2351, -2265.6245, 14.1000, 225.0000, -1, -1);
- /*CreateObject_V(1331, 2374.13110, -1533.58521, 23.93410, 0.00000, 0.00000, 180.00000);*/
- //-------[Interijeri]--------
- //KreirajInterijer( "ZatvorUlaz", -2320.4893, 1878.6583, 8.1210, 252.7024, 1651.1866, -99.2422, 1, 0, 1, 0);
- // 2233.8032, 1712.2303, 1011.7632
- // casino int
- CreateDynamicObject(14777,211.85473633,404.94235229,1021.71655273,0.00000000,0.00000000,0.00000000); //object(int_5weecasino) (1)
- //
- for( new askid = 1; askid < MAX_ASKQS; askid++ ) {
- askqList[ askid ][ askqSend ] = false;
- askqList[ askid ][ askqID ] = -1;
- strmid( askqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
- strmid( askqList[ askid ][ askqQuestion ], "None", 0, strlen( "None" ), 128 );
- }
- if( realtime ) {
- new tmphour,
- tmpminute,
- tmpsecond,
- stringicc[ 20 ],stringicc1[ 30 ];
- gettimeEx( tmphour, tmpminute, tmpsecond );
- FixHour( tmphour );
- tmphour = shifthour;
- SetWorldTime( tmphour );
- GlobalniSat = tmphour;
- ServerInfo[ VremeInGame ] = tmphour;
- format( stringicc, sizeof( stringicc ), "~w~%s%d~b~:~w~%s%d", (tmphour < 10) ? ("0") : (""), tmphour, (tmpminute < 10) ? ("0") : (""), tmpminute);
- TextDrawSetString( Donji_TD[13], stringicc );
- format( stringicc1, sizeof( stringicc1 ), "~w~%d~r~/~w~%d~r~/~w~%d", day, month, year );
- TextDrawSetString( Donji_TD[12], stringicc1 );
- }
- return true;
- }
- public OnGameModeExit( ) {
- gdje sada ono gore trebam ubaciti i koji dio ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement