Sz4beX

Fórumozó
  • Hozzászólások

    36
  • Csatlakozott

  • Utoljára aktív

Közösségi hírnév

1 Újonc

Sz4beX felhasználóról

  • Rang
    Újonc
  • Születésnap 1997-11-15

Egyéb

  • Játékos név
    Sz4beX
  • Titulus
    NPC üzõ
  1. Esetleg addig megölöd? public OnPlayerSpawn(playerid) { SetPlayerHealth(playerid, 0); } Persze ide kel a timer,hogyha bennevan akkor ölje csak meg Vagy pedig public OnPlayerSpawn(playerid) { ForceClassSelection(playerid); } Ez visz*rakja a skin választoba Hameg nem akkor public OnPlayerSpawn(playerid) { TogglePlayerSpectating(playerid, true); } Evel pedig viszahozhatod TogglePlayerSpectating(playerid, false);
  2. Nemnagyon értek ehez deszerintem igy nemlehet lekérni,szerintem beleraksz a kocsiba 2 objectet és azok köré kéred le,mivel xyz-vel nemlehet lekérni mert lehet hogy az xre kel a +3 de lehet hogy a z-re a kocsi álása miat
  3. Ezt nemértem esetleg ha leirnád mirekell mert valamit kelcsinálni hogy lene spawnoljon
  4. Esetleg public OnPlayerRequestClass(playerid, classid) { SpawnPlayer(playerid); return 1; }
  5. De mire akarod,ara hogy a hátér fekete legyen vagyhogy skint nelehesen választani?
  6. TextDraw editoral teis megtudod csinálni http://forum.sa-mp.com/showthread.php?t=290640
  7. Szerintem kezd a legelején ajánlom a Szkriptelés menüpontot,és van a fórumon rengeteg leirás aztis nézd átal
  8. Elkészitettem neked: JAVITVA-TextDraw nemmarad ot ha kiszálsz 1 jármüböl Link:http://www.4shared.com/rar/oebb3qyu/bexspeedo.html //BeX's SpeedoMeter By Sz4beX //Modifyed DigiSpeedo scrift /* ************************ */ /* DigiSpeedo by iPLEOMAX ˆ */ /* ************************ */ #include <a_samp> #include <foreach> #include <zcmd> #define SPEED_UPDATE_TIMER 180 #define SPEED_MULTIPLIER 2 // Update Timer in Milleseconds, Less Value = More Lag. More Value = Less Lag: (Tweak on your own way) // Speed Multiplier 2 by default, to make it feel better, actually it's 1. #define c1 0xfff9b2AA #define c2 0xfff8a8AA #define c3 0xfff694AA #define c4 0xfff58cAA #define c5 0xfff585AA #define c6 0xfff475AA #define c7 0xfff369AA #define c8 0xfff157AA #define c9 0xffef40AA #define c10 0xffee30AA #define c11 0xffed24AA #define c12 0xffec17AA #define c13 0xffea00AA #define c14 0xffd500AA #define c15 0xffc340AA #define c16 0xffbd30AA #define c17 0xffb921AA #define c18 0xffb412AA #define c19 0xffae00AA #define c20 0xff9029AA #define c21 0xff8717AA #define c22 0xff7b00AA #define c23 0xff5d12AA #define c24 0xff5100AA #define c25 0xeb4a00AA #define c26 0xdb4500AA #define c27 0xcc4100AA #define c28 0xc23d00AA #define c29 0xba3b00AA #define c30 0xb33900AA #define c31 0xad3700AA #define c32 0x993000AA new Text:sebesseg; new Text:kmh; new Text:m5; new Text:m10; new Text:m15; new Text:m20; new Text:m25; new Text:m30; new Text:m35; new Text:m40; new Text:m45; new Text:m50; new Text:m55; new Text:m60; new Text:m65; new Text:m70; new Text:m75; new Text:m80; new Text:m85; new Text:m90; new Text:m95; new Text:m100; new Text:m105; new Text:m110; new Text:m115; new Text:m120; new Text:m125; new Text:m130; new Text:m135; new Text:m140; new Text:m145; new Text:m150; new Text:m155; new Text:m160; new Text:mm5; new Text:mm10; new Text:mm15; new Text:mm20; new Text:mm25; new Text:mm30; new Text:mm35; new Text:mm40; new Text:mm45; new Text:mm50; new Text:mm55; new Text:mm60; new Text:mm65; new Text:mm70; new Text:mm75; new Text:mm80; new Text:mm85; new Text:mm90; new Text:mm95; new Text:mm100; new Text:mm105; new Text:mm110; new Text:mm115; new Text:mm120; new Text:mm125; new Text:mm130; new Text:mm135; new Text:mm140; new Text:mm145; new Text:mm150; new Text:mm155; new Text:mm160; new Text:Speed[MAX_PLAYERS]; new Speedo[MAX_PLAYERS]; new SpeedUpdateTimer; public OnFilterScriptInit() { print("BeX's SpeedoMeter loaded. (Madifyed DigiSpeedo by iPLEOMAX)"); sebesseg = TextDrawCreate(543.000000, 398.000000, ""); TextDrawBackgroundColor(sebesseg, -1); TextDrawFont(sebesseg, 2); TextDrawLetterSize(sebesseg, 0.539999, 3.599997); TextDrawColor(sebesseg, -833674290); TextDrawSetOutline(sebesseg, 0); TextDrawSetProportional(sebesseg, 1); TextDrawSetShadow(sebesseg, 1); kmh = TextDrawCreate(588.000000, 417.000000, "Km/H"); TextDrawBackgroundColor(kmh, 255); TextDrawFont(kmh, 1); TextDrawLetterSize(kmh, 0.500000, 1.000000); TextDrawColor(kmh, 16777215); TextDrawSetOutline(kmh, 0); TextDrawSetProportional(kmh, 1); TextDrawSetShadow(kmh, 1); TextDrawUseBox(kmh, 1); TextDrawBoxColor(kmh, 1); TextDrawTextSize(kmh, 387.000000, 2.000000); m5 = TextDrawCreate(545.000000, 424.000000, "I"); TextDrawAlignment(m5, 2); TextDrawBackgroundColor(m5, 255); TextDrawFont(m5, 1); TextDrawLetterSize(m5, 0.310000, 2.999999); TextDrawColor(m5, -1); TextDrawSetOutline(m5, 0); TextDrawSetProportional(m5, 1); TextDrawSetShadow(m5, 0); m10 = TextDrawCreate(548.000000, 424.000000, "I"); TextDrawAlignment(m10, 2); TextDrawBackgroundColor(m10, 255); TextDrawFont(m10, 1); TextDrawLetterSize(m10, 0.310000, 2.999999); TextDrawColor(m10, -1); TextDrawSetOutline(m10, 0); TextDrawSetProportional(m10, 1); TextDrawSetShadow(m10, 0); m15 = TextDrawCreate(551.000000, 424.000000, "I"); TextDrawAlignment(m15, 2); TextDrawBackgroundColor(m15, 255); TextDrawFont(m15, 1); TextDrawLetterSize(m15, 0.310000, 2.999999); TextDrawColor(m15, -1); TextDrawSetOutline(m15, 0); TextDrawSetProportional(m15, 1); TextDrawSetShadow(m15, 0); m20 = TextDrawCreate(554.000000, 424.000000, "I"); TextDrawAlignment(m20, 2); TextDrawBackgroundColor(m20, 255); TextDrawFont(m20, 1); TextDrawLetterSize(m20, 0.310000, 2.999999); TextDrawColor(m20, -1); TextDrawSetOutline(m20, 0); TextDrawSetProportional(m20, 1); TextDrawSetShadow(m20, 0); m25 = TextDrawCreate(557.000000, 424.000000, "I"); TextDrawAlignment(m25, 2); TextDrawBackgroundColor(m25, 255); TextDrawFont(m25, 1); TextDrawLetterSize(m25, 0.310000, 2.999999); TextDrawColor(m25, -1); TextDrawSetOutline(m25, 0); TextDrawSetProportional(m25, 1); TextDrawSetShadow(m25, 0); m30 = TextDrawCreate(560.000000, 424.000000, "I"); TextDrawAlignment(m30, 2); TextDrawBackgroundColor(m30, 255); TextDrawFont(m30, 1); TextDrawLetterSize(m30, 0.310000, 2.999999); TextDrawColor(m30, -1); TextDrawSetOutline(m30, 0); TextDrawSetProportional(m30, 1); TextDrawSetShadow(m30, 0); m35 = TextDrawCreate(563.000000, 424.000000, "I"); TextDrawAlignment(m35, 2); TextDrawBackgroundColor(m35, 255); TextDrawFont(m35, 1); TextDrawLetterSize(m35, 0.310000, 2.999999); TextDrawColor(m35, -1); TextDrawSetOutline(m35, 0); TextDrawSetProportional(m35, 1); TextDrawSetShadow(m35, 0); m40 = TextDrawCreate(566.000000, 424.000000, "I"); TextDrawAlignment(m40, 2); TextDrawBackgroundColor(m40, 255); TextDrawFont(m40, 1); TextDrawLetterSize(m40, 0.310000, 2.999999); TextDrawColor(m40, -1); TextDrawSetOutline(m40, 0); TextDrawSetProportional(m40, 1); TextDrawSetShadow(m40, 0); m45 = TextDrawCreate(569.000000, 424.000000, "I"); TextDrawAlignment(m45, 2); TextDrawBackgroundColor(m45, 255); TextDrawFont(m45, 1); TextDrawLetterSize(m45, 0.310000, 2.999999); TextDrawColor(m45, -1); TextDrawSetOutline(m45, 0); TextDrawSetProportional(m45, 1); TextDrawSetShadow(m45, 0); m50 = TextDrawCreate(572.000000, 424.000000, "I"); TextDrawAlignment(m50, 2); TextDrawBackgroundColor(m50, 255); TextDrawFont(m50, 1); TextDrawLetterSize(m50, 0.310000, 2.999999); TextDrawColor(m50, -1); TextDrawSetOutline(m50, 0); TextDrawSetProportional(m50, 1); TextDrawSetShadow(m50, 0); m55 = TextDrawCreate(575.000000, 424.000000, "I"); TextDrawAlignment(m55, 2); TextDrawBackgroundColor(m55, 255); TextDrawFont(m55, 1); TextDrawLetterSize(m55, 0.310000, 2.999999); TextDrawColor(m55, -1); TextDrawSetOutline(m55, 0); TextDrawSetProportional(m55, 1); TextDrawSetShadow(m55, 0); m60 = TextDrawCreate(578.000000, 424.000000, "I"); TextDrawAlignment(m60, 2); TextDrawBackgroundColor(m60, 255); TextDrawFont(m60, 1); TextDrawLetterSize(m60, 0.310000, 2.999999); TextDrawColor(m60, -1); TextDrawSetOutline(m60, 0); TextDrawSetProportional(m60, 1); TextDrawSetShadow(m60, 0); m65 = TextDrawCreate(581.000000, 424.000000, "I"); TextDrawAlignment(m65, 2); TextDrawBackgroundColor(m65, 255); TextDrawFont(m65, 1); TextDrawLetterSize(m65, 0.310000, 2.999999); TextDrawColor(m65, -1); TextDrawSetOutline(m65, 0); TextDrawSetProportional(m65, 1); TextDrawSetShadow(m65, 0); m70 = TextDrawCreate(584.000000, 424.000000, "I"); TextDrawAlignment(m70, 2); TextDrawBackgroundColor(m70, 255); TextDrawFont(m70, 1); TextDrawLetterSize(m70, 0.310000, 2.999999); TextDrawColor(m70, -1); TextDrawSetOutline(m70, 0); TextDrawSetProportional(m70, 1); TextDrawSetShadow(m70, 0); m75 = TextDrawCreate(587.000000, 424.000000, "I"); TextDrawAlignment(m75, 2); TextDrawBackgroundColor(m75, 255); TextDrawFont(m75, 1); TextDrawLetterSize(m75, 0.310000, 2.999999); TextDrawColor(m75, -1); TextDrawSetOutline(m75, 0); TextDrawSetProportional(m75, 1); TextDrawSetShadow(m75, 0); m80 = TextDrawCreate(590.000000, 424.000000, "I"); TextDrawAlignment(m80, 2); TextDrawBackgroundColor(m80, 255); TextDrawFont(m80, 1); TextDrawLetterSize(m80, 0.310000, 2.999999); TextDrawColor(m80, -1); TextDrawSetOutline(m80, 0); TextDrawSetProportional(m80, 1); TextDrawSetShadow(m80, 0); m85 = TextDrawCreate(593.000000, 424.000000, "I"); TextDrawAlignment(m85, 2); TextDrawBackgroundColor(m85, 255); TextDrawFont(m85, 1); TextDrawLetterSize(m85, 0.310000, 2.999999); TextDrawColor(m85, -1); TextDrawSetOutline(m85, 0); TextDrawSetProportional(m85, 1); TextDrawSetShadow(m85, 0); m90 = TextDrawCreate(596.000000, 424.000000, "I"); TextDrawAlignment(m90, 2); TextDrawBackgroundColor(m90, 255); TextDrawFont(m90, 1); TextDrawLetterSize(m90, 0.310000, 2.999999); TextDrawColor(m90, -1); TextDrawSetOutline(m90, 0); TextDrawSetProportional(m90, 1); TextDrawSetShadow(m90, 0); m95 = TextDrawCreate(599.000000, 424.000000, "I"); TextDrawAlignment(m95, 2); TextDrawBackgroundColor(m95, 255); TextDrawFont(m95, 1); TextDrawLetterSize(m95, 0.310000, 2.999999); TextDrawColor(m95, -1); TextDrawSetOutline(m95, 0); TextDrawSetProportional(m95, 1); TextDrawSetShadow(m95, 0); m100 = TextDrawCreate(602.000000, 424.000000, "I"); TextDrawAlignment(m100, 2); TextDrawBackgroundColor(m100, 255); TextDrawFont(m100, 1); TextDrawLetterSize(m100, 0.310000, 2.999999); TextDrawColor(m100, -1); TextDrawSetOutline(m100, 0); TextDrawSetProportional(m100, 1); TextDrawSetShadow(m100, 0); m105 = TextDrawCreate(605.000000, 424.000000, "I"); TextDrawAlignment(m105, 2); TextDrawBackgroundColor(m105, 255); TextDrawFont(m105, 1); TextDrawLetterSize(m105, 0.310000, 2.999999); TextDrawColor(m105, -1); TextDrawSetOutline(m105, 0); TextDrawSetProportional(m105, 1); TextDrawSetShadow(m105, 0); m110 = TextDrawCreate(608.000000, 424.000000, "I"); TextDrawAlignment(m110, 2); TextDrawBackgroundColor(m110, 255); TextDrawFont(m110, 1); TextDrawLetterSize(m110, 0.310000, 2.999999); TextDrawColor(m110, -1); TextDrawSetOutline(m110, 0); TextDrawSetProportional(m110, 1); TextDrawSetShadow(m110, 0); m115 = TextDrawCreate(611.000000, 424.000000, "I"); TextDrawAlignment(m115, 2); TextDrawBackgroundColor(m115, 255); TextDrawFont(m115, 1); TextDrawLetterSize(m115, 0.310000, 2.999999); TextDrawColor(m115, -1); TextDrawSetOutline(m115, 0); TextDrawSetProportional(m115, 1); TextDrawSetShadow(m115, 0); m120 = TextDrawCreate(614.000000, 424.000000, "I"); TextDrawAlignment(m120, 2); TextDrawBackgroundColor(m120, 255); TextDrawFont(m120, 1); TextDrawLetterSize(m120, 0.310000, 2.999999); TextDrawColor(m120, -1); TextDrawSetOutline(m120, 0); TextDrawSetProportional(m120, 1); TextDrawSetShadow(m120, 0); m125 = TextDrawCreate(617.000000, 424.000000, "I"); TextDrawAlignment(m125, 2); TextDrawBackgroundColor(m125, 255); TextDrawFont(m125, 1); TextDrawLetterSize(m125, 0.310000, 2.999999); TextDrawColor(m125, -1); TextDrawSetOutline(m125, 0); TextDrawSetProportional(m125, 1); TextDrawSetShadow(m125, 0); m130 = TextDrawCreate(620.000000, 424.000000, "I"); TextDrawAlignment(m130, 2); TextDrawBackgroundColor(m130, 255); TextDrawFont(m130, 1); TextDrawLetterSize(m130, 0.310000, 2.999999); TextDrawColor(m130, -1); TextDrawSetOutline(m130, 0); TextDrawSetProportional(m130, 1); TextDrawSetShadow(m130, 0); m135 = TextDrawCreate(623.000000, 424.000000, "I"); TextDrawAlignment(m135, 2); TextDrawBackgroundColor(m135, 255); TextDrawFont(m135, 1); TextDrawLetterSize(m135, 0.310000, 2.999999); TextDrawColor(m135, -1); TextDrawSetOutline(m135, 0); TextDrawSetProportional(m135, 1); TextDrawSetShadow(m135, 0); m140 = TextDrawCreate(626.000000, 424.000000, "I"); TextDrawAlignment(m140, 2); TextDrawBackgroundColor(m140, 255); TextDrawFont(m140, 1); TextDrawLetterSize(m140, 0.310000, 2.999999); TextDrawColor(m140, -1); TextDrawSetOutline(m140, 0); TextDrawSetProportional(m140, 1); TextDrawSetShadow(m140, 0); m145 = TextDrawCreate(629.000000, 424.000000, "I"); TextDrawAlignment(m145, 2); TextDrawBackgroundColor(m145, 255); TextDrawFont(m145, 1); TextDrawLetterSize(m145, 0.310000, 2.999999); TextDrawColor(m145, -1); TextDrawSetOutline(m145, 0); TextDrawSetProportional(m145, 1); TextDrawSetShadow(m145, 0); m150 = TextDrawCreate(632.000000, 424.000000, "I"); TextDrawAlignment(m150, 2); TextDrawBackgroundColor(m150, 255); TextDrawFont(m150, 1); TextDrawLetterSize(m150, 0.310000, 2.999999); TextDrawColor(m150, -1); TextDrawSetOutline(m150, 0); TextDrawSetProportional(m150, 1); TextDrawSetShadow(m150, 0); m155 = TextDrawCreate(635.000000, 424.000000, "I"); TextDrawAlignment(m155, 2); TextDrawBackgroundColor(m155, 255); TextDrawFont(m155, 1); TextDrawLetterSize(m155, 0.310000, 2.999999); TextDrawColor(m155, -1); TextDrawSetOutline(m155, 0); TextDrawSetProportional(m155, 1); TextDrawSetShadow(m155, 0); m160 = TextDrawCreate(638.000000, 424.000000, "I"); TextDrawAlignment(m160, 2); TextDrawBackgroundColor(m160, 255); TextDrawFont(m160, 1); TextDrawLetterSize(m160, 0.310000, 2.999999); TextDrawColor(m160, -1); TextDrawSetOutline(m160, 0); TextDrawSetProportional(m160, 1); TextDrawSetShadow(m160, 0); mm5 = TextDrawCreate(545.000000, 424.000000, "I"); TextDrawAlignment(mm5, 2); TextDrawBackgroundColor(mm5, 255); TextDrawFont(mm5, 1); TextDrawLetterSize(mm5, 0.310000, 2.999999); TextDrawColor(mm5, c1); TextDrawSetOutline(mm5, 0); TextDrawSetProportional(mm5, 1); TextDrawSetShadow(mm5, 0); mm10 = TextDrawCreate(548.000000, 424.000000, "I"); TextDrawAlignment(mm10, 2); TextDrawBackgroundColor(mm10, 255); TextDrawFont(mm10, 1); TextDrawLetterSize(mm10, 0.310000, 2.999999); TextDrawColor(mm10, c2); TextDrawSetOutline(mm10, 0); TextDrawSetProportional(mm10, 1); TextDrawSetShadow(mm10, 0); mm15 = TextDrawCreate(551.000000, 424.000000, "I"); TextDrawAlignment(mm15, 2); TextDrawBackgroundColor(mm15, 255); TextDrawFont(mm15, 1); TextDrawLetterSize(mm15, 0.310000, 2.999999); TextDrawColor(mm15, c3); TextDrawSetOutline(mm15, 0); TextDrawSetProportional(mm15, 1); TextDrawSetShadow(mm15, 0); mm20 = TextDrawCreate(554.000000, 424.000000, "I"); TextDrawAlignment(mm20, 2); TextDrawBackgroundColor(mm20, 255); TextDrawFont(mm20, 1); TextDrawLetterSize(mm20, 0.310000, 2.999999); TextDrawColor(mm20, c4); TextDrawSetOutline(mm20, 0); TextDrawSetProportional(mm20, 1); TextDrawSetShadow(mm20, 0); mm25 = TextDrawCreate(557.000000, 424.000000, "I"); TextDrawAlignment(mm25, 2); TextDrawBackgroundColor(mm25, 255); TextDrawFont(mm25, 1); TextDrawLetterSize(mm25, 0.310000, 2.999999); TextDrawColor(mm25, c5); TextDrawSetOutline(mm25, 0); TextDrawSetProportional(mm25, 1); TextDrawSetShadow(mm25, 0); mm30 = TextDrawCreate(560.000000, 424.000000, "I"); TextDrawAlignment(mm30, 2); TextDrawBackgroundColor(mm30, 255); TextDrawFont(mm30, 1); TextDrawLetterSize(mm30, 0.310000, 2.999999); TextDrawColor(mm30, c6); TextDrawSetOutline(mm30, 0); TextDrawSetProportional(mm30, 1); TextDrawSetShadow(mm30, 0); mm35 = TextDrawCreate(563.000000, 424.000000, "I"); TextDrawAlignment(mm35, 2); TextDrawBackgroundColor(mm35, 255); TextDrawFont(mm35, 1); TextDrawLetterSize(mm35, 0.310000, 2.999999); TextDrawColor(mm35, c7); TextDrawSetOutline(mm35, 0); TextDrawSetProportional(mm35, 1); TextDrawSetShadow(mm35, 0); mm40 = TextDrawCreate(566.000000, 424.000000, "I"); TextDrawAlignment(mm40, 2); TextDrawBackgroundColor(mm40, 255); TextDrawFont(mm40, 1); TextDrawLetterSize(mm40, 0.310000, 2.999999); TextDrawColor(mm40, c8); TextDrawSetOutline(mm40, 0); TextDrawSetProportional(mm40, 1); TextDrawSetShadow(mm40, 0); mm45 = TextDrawCreate(569.000000, 424.000000, "I"); TextDrawAlignment(mm45, 2); TextDrawBackgroundColor(mm45, 255); TextDrawFont(mm45, 1); TextDrawLetterSize(mm45, 0.310000, 2.999999); TextDrawColor(mm45, c9); TextDrawSetOutline(mm45, 0); TextDrawSetProportional(mm45, 1); TextDrawSetShadow(mm45, 0); mm50 = TextDrawCreate(572.000000, 424.000000, "I"); TextDrawAlignment(mm50, 2); TextDrawBackgroundColor(mm50, 255); TextDrawFont(mm50, 1); TextDrawLetterSize(mm50, 0.310000, 2.999999); TextDrawColor(mm50, c10); TextDrawSetOutline(mm50, 0); TextDrawSetProportional(mm50, 1); TextDrawSetShadow(mm50, 0); mm55 = TextDrawCreate(575.000000, 424.000000, "I"); TextDrawAlignment(mm55, 2); TextDrawBackgroundColor(mm55, 255); TextDrawFont(mm55, 1); TextDrawLetterSize(mm55, 0.310000, 2.999999); TextDrawColor(mm55, c11); TextDrawSetOutline(mm55, 0); TextDrawSetProportional(mm55, 1); TextDrawSetShadow(mm55, 0); mm60 = TextDrawCreate(578.000000, 424.000000, "I"); TextDrawAlignment(mm60, 2); TextDrawBackgroundColor(mm60, 255); TextDrawFont(mm60, 1); TextDrawLetterSize(mm60, 0.310000, 2.999999); TextDrawColor(mm60, c12); TextDrawSetOutline(mm60, 0); TextDrawSetProportional(mm60, 1); TextDrawSetShadow(mm60, 0); mm65 = TextDrawCreate(581.000000, 424.000000, "I"); TextDrawAlignment(mm65, 2); TextDrawBackgroundColor(mm65, 255); TextDrawFont(mm65, 1); TextDrawLetterSize(mm65, 0.310000, 2.999999); TextDrawColor(mm65, c13); TextDrawSetOutline(mm65, 0); TextDrawSetProportional(mm65, 1); TextDrawSetShadow(mm65, 0); mm70 = TextDrawCreate(584.000000, 424.000000, "I"); TextDrawAlignment(mm70, 2); TextDrawBackgroundColor(mm70, 255); TextDrawFont(mm70, 1); TextDrawLetterSize(mm70, 0.310000, 2.999999); TextDrawColor(mm70, c14); TextDrawSetOutline(mm70, 0); TextDrawSetProportional(mm70, 1); TextDrawSetShadow(mm70, 0); mm75 = TextDrawCreate(587.000000, 424.000000, "I"); TextDrawAlignment(mm75, 2); TextDrawBackgroundColor(mm75, 255); TextDrawFont(mm75, 1); TextDrawLetterSize(mm75, 0.310000, 2.999999); TextDrawColor(mm75, c15); TextDrawSetOutline(mm75, 0); TextDrawSetProportional(mm75, 1); TextDrawSetShadow(mm75, 0); mm80 = TextDrawCreate(590.000000, 424.000000, "I"); TextDrawAlignment(mm80, 2); TextDrawBackgroundColor(mm80, 255); TextDrawFont(mm80, 1); TextDrawLetterSize(mm80, 0.310000, 2.999999); TextDrawColor(mm80, c16); TextDrawSetOutline(mm80, 0); TextDrawSetProportional(mm80, 1); TextDrawSetShadow(mm80, 0); mm85 = TextDrawCreate(593.000000, 424.000000, "I"); TextDrawAlignment(mm85, 2); TextDrawBackgroundColor(mm85, 255); TextDrawFont(mm85, 1); TextDrawLetterSize(mm85, 0.310000, 2.999999); TextDrawColor(mm85, c17); TextDrawSetOutline(mm85, 0); TextDrawSetProportional(mm85, 1); TextDrawSetShadow(mm85, 0); mm90 = TextDrawCreate(596.000000, 424.000000, "I"); TextDrawAlignment(mm90, 2); TextDrawBackgroundColor(mm90, 255); TextDrawFont(mm90, 1); TextDrawLetterSize(mm90, 0.310000, 2.999999); TextDrawColor(mm90, c18); TextDrawSetOutline(mm90, 0); TextDrawSetProportional(mm90, 1); TextDrawSetShadow(mm90, 0); mm95 = TextDrawCreate(599.000000, 424.000000, "I"); TextDrawAlignment(mm95, 2); TextDrawBackgroundColor(mm95, 255); TextDrawFont(mm95, 1); TextDrawLetterSize(mm95, 0.310000, 2.999999); TextDrawColor(mm95, c19); TextDrawSetOutline(mm95, 0); TextDrawSetProportional(mm95, 1); TextDrawSetShadow(mm95, 0); mm100 = TextDrawCreate(602.000000, 424.000000, "I"); TextDrawAlignment(mm100, 2); TextDrawBackgroundColor(mm100, 255); TextDrawFont(mm100, 1); TextDrawLetterSize(mm100, 0.310000, 2.999999); TextDrawColor(mm100, c20); TextDrawSetOutline(mm100, 0); TextDrawSetProportional(mm100, 1); TextDrawSetShadow(mm100, 0); mm105 = TextDrawCreate(605.000000, 424.000000, "I"); TextDrawAlignment(mm105, 2); TextDrawBackgroundColor(mm105, 255); TextDrawFont(mm105, 1); TextDrawLetterSize(mm105, 0.310000, 2.999999); TextDrawColor(mm105, c21); TextDrawSetOutline(mm105, 0); TextDrawSetProportional(mm105, 1); TextDrawSetShadow(mm105, 0); mm110 = TextDrawCreate(608.000000, 424.000000, "I"); TextDrawAlignment(mm110, 2); TextDrawBackgroundColor(mm110, 255); TextDrawFont(mm110, 1); TextDrawLetterSize(mm110, 0.310000, 2.999999); TextDrawColor(mm110, c22); TextDrawSetOutline(mm110, 0); TextDrawSetProportional(mm110, 1); TextDrawSetShadow(mm110, 0); mm115 = TextDrawCreate(611.000000, 424.000000, "I"); TextDrawAlignment(mm115, 2); TextDrawBackgroundColor(mm115, 255); TextDrawFont(mm115, 1); TextDrawLetterSize(mm115, 0.310000, 2.999999); TextDrawColor(mm115, c23); TextDrawSetOutline(mm115, 0); TextDrawSetProportional(mm115, 1); TextDrawSetShadow(mm115, 0); mm120 = TextDrawCreate(614.000000, 424.000000, "I"); TextDrawAlignment(mm120, 2); TextDrawBackgroundColor(mm120, 255); TextDrawFont(mm120, 1); TextDrawLetterSize(mm120, 0.310000, 2.999999); TextDrawColor(mm120, c24); TextDrawSetOutline(mm120, 0); TextDrawSetProportional(mm120, 1); TextDrawSetShadow(mm120, 0); mm125 = TextDrawCreate(617.000000, 424.000000, "I"); TextDrawAlignment(mm125, 2); TextDrawBackgroundColor(mm125, 255); TextDrawFont(mm125, 1); TextDrawLetterSize(mm125, 0.310000, 2.999999); TextDrawColor(mm125, c25); TextDrawSetOutline(mm125, 0); TextDrawSetProportional(mm125, 1); TextDrawSetShadow(mm125, 0); mm130 = TextDrawCreate(620.000000, 424.000000, "I"); TextDrawAlignment(mm130, 2); TextDrawBackgroundColor(mm130, 255); TextDrawFont(mm130, 1); TextDrawLetterSize(mm130, 0.310000, 2.999999); TextDrawColor(mm130, c26); TextDrawSetOutline(mm130, 0); TextDrawSetProportional(mm130, 1); TextDrawSetShadow(mm130, 0); mm135 = TextDrawCreate(623.000000, 424.000000, "I"); TextDrawAlignment(mm135, 2); TextDrawBackgroundColor(mm135, 255); TextDrawFont(mm135, 1); TextDrawLetterSize(mm135, 0.310000, 2.999999); TextDrawColor(mm135, c27); TextDrawSetOutline(mm135, 0); TextDrawSetProportional(mm135, 1); TextDrawSetShadow(mm135, 0); mm140 = TextDrawCreate(626.000000, 424.000000, "I"); TextDrawAlignment(mm140, 2); TextDrawBackgroundColor(mm140, 255); TextDrawFont(mm140, 1); TextDrawLetterSize(mm140, 0.310000, 2.999999); TextDrawColor(mm140, c28); TextDrawSetOutline(mm140, 0); TextDrawSetProportional(mm140, 1); TextDrawSetShadow(mm140, 0); mm145 = TextDrawCreate(629.000000, 424.000000, "I"); TextDrawAlignment(mm145, 2); TextDrawBackgroundColor(mm145, 255); TextDrawFont(mm145, 1); TextDrawLetterSize(mm145, 0.310000, 2.999999); TextDrawColor(mm145, c29); TextDrawSetOutline(mm145, 0); TextDrawSetProportional(mm145, 1); TextDrawSetShadow(mm145, 0); mm150 = TextDrawCreate(632.000000, 424.000000, "I"); TextDrawAlignment(mm150, 2); TextDrawBackgroundColor(mm150, 255); TextDrawFont(mm150, 1); TextDrawLetterSize(mm150, 0.310000, 2.999999); TextDrawColor(mm150, c30); TextDrawSetOutline(mm150, 0); TextDrawSetProportional(mm150, 1); TextDrawSetShadow(mm150, 0); mm155 = TextDrawCreate(635.000000, 424.000000, "I"); TextDrawAlignment(mm155, 2); TextDrawBackgroundColor(mm155, 255); TextDrawFont(mm155, 1); TextDrawLetterSize(mm155, 0.310000, 2.999999); TextDrawColor(mm155, c31); TextDrawSetOutline(mm155, 0); TextDrawSetProportional(mm155, 1); TextDrawSetShadow(mm155, 0); mm160 = TextDrawCreate(638.000000, 424.000000, "I"); TextDrawAlignment(mm160, 2); TextDrawBackgroundColor(mm160, 255); TextDrawFont(mm160, c32); TextDrawLetterSize(mm160, 0.310000, 2.999999); TextDrawColor(mm160, -1); TextDrawSetOutline(mm160, 0); TextDrawSetProportional(mm160, 1); TextDrawSetShadow(mm160, 0); SpeedUpdateTimer = SetTimer("SpeedUpdate",SPEED_UPDATE_TIMER,true); return true; } public OnFilterScriptExit() { KillTimer(SpeedUpdateTimer); return true; } public OnPlayerConnect(playerid) { Speed[playerid] = TextDrawCreate(580.000000, 398.000000, "000"); TextDrawAlignment(Speed[playerid], 3); TextDrawBackgroundColor(Speed[playerid], -1); TextDrawFont(Speed[playerid], 2); TextDrawLetterSize(Speed[playerid], 0.539999, 3.599997); TextDrawColor(Speed[playerid], -833674290); TextDrawSetOutline(Speed[playerid], 0); TextDrawSetProportional(Speed[playerid], 1); Speedo[playerid] = 1; if(IsPlayerInAnyVehicle(playerid)) ShowTD(playerid); return true; } public OnPlayerDisconnect(playerid, reason) { return true; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && Speedo[playerid] == 1) ShowTD(playerid); if(oldstate == PLAYER_STATE_DRIVER && Speedo[playerid] == 1) HideTD(playerid); return true; } forward SpeedUpdate(); public SpeedUpdate() { foreach(Player, i) { if(IsPlayerInAnyVehicle(i) && Speedo[i] != 0) { new Float:SPD, Float:vx, Float:vy, Float:vz; GetVehicleVelocity(GetPlayerVehicleID(i), vx,vy,vz); SPD = floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))*62.5; TextdrawUpdate(i, SPD*SPEED_MULTIPLIER); } } return true; } /* CMD:speedo(playerid, params[]) { if(Speedo[playerid] == 0) { SendClientMessage(playerid, 0xFFFFFFFF, "Digital Speedometer: {00FF00}Activated."); Speedo[playerid] = 1; if(IsPlayerInAnyVehicle(playerid)) ShowTD(playerid); } else { SendClientMessage(playerid, 0xFFFFFFFF, "Digital Speedometer: {FF0000}Turned Off."); Speedo[playerid] = 0; HideTD(playerid); } return true; } */ forward TextdrawUpdate(playerid, Float:speed); public TextdrawUpdate(playerid, Float:speed) { new SS[4]; format(SS,4,"%f",speed); TextDrawSetString(Speed[playerid], SS); if(IsPlayerInAnyVehicle(playerid)) { if(speed >= 5) { TextDrawShowForPlayer(playerid, mm5); } else TextDrawHideForPlayer(playerid, mm5); TextDrawShowForPlayer(playerid, m5); if(speed >= 10) { TextDrawShowForPlayer(playerid, mm10); } else TextDrawHideForPlayer(playerid, mm10); TextDrawShowForPlayer(playerid, m10); if(speed >= 15) { TextDrawShowForPlayer(playerid, mm15); } else TextDrawHideForPlayer(playerid, mm15); TextDrawShowForPlayer(playerid, m15); if(speed >= 20) { TextDrawShowForPlayer(playerid, mm20); } else TextDrawHideForPlayer(playerid, mm20); TextDrawShowForPlayer(playerid, m20); if(speed >= 25) { TextDrawShowForPlayer(playerid, mm25); } else TextDrawHideForPlayer(playerid, mm25); TextDrawShowForPlayer(playerid, m25); if(speed >= 30) { TextDrawShowForPlayer(playerid, mm30); } else TextDrawHideForPlayer(playerid, mm30); TextDrawShowForPlayer(playerid, m30); if(speed >= 35) { TextDrawShowForPlayer(playerid, mm35); } else TextDrawHideForPlayer(playerid, mm35); TextDrawShowForPlayer(playerid, m35); if(speed >= 40) { TextDrawShowForPlayer(playerid, mm40); } else TextDrawHideForPlayer(playerid, mm40); TextDrawShowForPlayer(playerid, m40); if(speed >= 45) { TextDrawShowForPlayer(playerid, mm45); } else TextDrawHideForPlayer(playerid, mm45); TextDrawShowForPlayer(playerid, m45); if(speed >= 50) { TextDrawShowForPlayer(playerid, mm50); } else TextDrawHideForPlayer(playerid, mm50); TextDrawShowForPlayer(playerid, m50); if(speed >= 50) { TextDrawShowForPlayer(playerid, mm55); } else TextDrawHideForPlayer(playerid, mm55); TextDrawShowForPlayer(playerid, m55); if(speed >= 60) { TextDrawShowForPlayer(playerid, mm60); } else TextDrawHideForPlayer(playerid, mm60); TextDrawShowForPlayer(playerid, m60); if(speed >= 65) { TextDrawShowForPlayer(playerid, mm65); } else TextDrawHideForPlayer(playerid, mm65); TextDrawShowForPlayer(playerid, m65); if(speed >= 70) { TextDrawShowForPlayer(playerid, mm70); } else TextDrawHideForPlayer(playerid, mm70); TextDrawShowForPlayer(playerid, m70); if(speed >= 75) { TextDrawShowForPlayer(playerid, mm75); } else TextDrawHideForPlayer(playerid, mm75); TextDrawShowForPlayer(playerid, m75); if(speed >= 80) { TextDrawShowForPlayer(playerid, mm80); } else TextDrawHideForPlayer(playerid, mm80); TextDrawShowForPlayer(playerid, m80); if(speed >= 85) { TextDrawShowForPlayer(playerid, mm85); } else TextDrawHideForPlayer(playerid, mm85); TextDrawShowForPlayer(playerid, m85); if(speed >= 90) { TextDrawShowForPlayer(playerid, mm90); } else TextDrawHideForPlayer(playerid, mm90); TextDrawShowForPlayer(playerid, m90); if(speed >= 95) { TextDrawShowForPlayer(playerid, mm95); } else TextDrawHideForPlayer(playerid, mm95); TextDrawShowForPlayer(playerid, m95); if(speed >= 100) { TextDrawShowForPlayer(playerid, mm100); } else TextDrawHideForPlayer(playerid, mm100); TextDrawShowForPlayer(playerid, m100); if(speed >= 105) { TextDrawShowForPlayer(playerid, mm105); } else TextDrawHideForPlayer(playerid, mm105); TextDrawShowForPlayer(playerid, m105); if(speed >= 110) { TextDrawShowForPlayer(playerid, mm110); } else TextDrawHideForPlayer(playerid, mm110); TextDrawShowForPlayer(playerid, m110); if(speed >= 115) { TextDrawShowForPlayer(playerid, mm115); } else TextDrawHideForPlayer(playerid, mm115); TextDrawShowForPlayer(playerid, m115); if(speed >= 120) { TextDrawShowForPlayer(playerid, mm120); } else TextDrawHideForPlayer(playerid, mm120); TextDrawShowForPlayer(playerid, m120); if(speed >= 125) { TextDrawShowForPlayer(playerid, mm125); } else TextDrawHideForPlayer(playerid, mm125); TextDrawShowForPlayer(playerid, m125); if(speed >= 130) { TextDrawShowForPlayer(playerid, mm130); } else TextDrawHideForPlayer(playerid, mm130); TextDrawShowForPlayer(playerid, m130); if(speed >= 135) { TextDrawShowForPlayer(playerid, mm135); } else TextDrawHideForPlayer(playerid, mm135); TextDrawShowForPlayer(playerid, m135); if(speed >= 140) { TextDrawShowForPlayer(playerid, mm140); } else TextDrawHideForPlayer(playerid, mm140); TextDrawShowForPlayer(playerid, m140); if(speed >= 145) { TextDrawShowForPlayer(playerid, mm145); } else TextDrawHideForPlayer(playerid, mm145); TextDrawShowForPlayer(playerid, m145); if(speed >= 150) { TextDrawShowForPlayer(playerid, mm150); } else TextDrawHideForPlayer(playerid, mm150); TextDrawShowForPlayer(playerid, m150); if(speed >= 155) { TextDrawShowForPlayer(playerid, mm155); } else TextDrawHideForPlayer(playerid, mm155); TextDrawShowForPlayer(playerid, m155); if(speed >= 160) { TextDrawShowForPlayer(playerid, mm160); } else TextDrawHideForPlayer(playerid, mm160); TextDrawShowForPlayer(playerid, m160); } return true; } forward ShowTD(playerid); public ShowTD(playerid) { TextDrawShowForPlayer(playerid, sebesseg); TextDrawShowForPlayer(playerid, Speed[playerid]); TextDrawShowForPlayer(playerid, kmh); return true; } forward HideTD(playerid); public HideTD(playerid) { TextDrawHideForPlayer(playerid, sebesseg); TextDrawHideForPlayer(playerid, Speed[playerid]); TextDrawHideForPlayer(playerid, kmh); TextDrawHideForPlayer(playerid, m5); TextDrawHideForPlayer(playerid, m10); TextDrawHideForPlayer(playerid, m15); TextDrawHideForPlayer(playerid, m20); TextDrawHideForPlayer(playerid, m25); TextDrawHideForPlayer(playerid, m30); TextDrawHideForPlayer(playerid, m35); TextDrawHideForPlayer(playerid, m40); TextDrawHideForPlayer(playerid, m45); TextDrawHideForPlayer(playerid, m50); TextDrawHideForPlayer(playerid, m55); TextDrawHideForPlayer(playerid, m60); TextDrawHideForPlayer(playerid, m65); TextDrawHideForPlayer(playerid, m70); TextDrawHideForPlayer(playerid, m75); TextDrawHideForPlayer(playerid, m80); TextDrawHideForPlayer(playerid, m85); TextDrawHideForPlayer(playerid, m90); TextDrawHideForPlayer(playerid, m95); TextDrawHideForPlayer(playerid, m100); TextDrawHideForPlayer(playerid, m105); TextDrawHideForPlayer(playerid, m110); TextDrawHideForPlayer(playerid, m115); TextDrawHideForPlayer(playerid, m120); TextDrawHideForPlayer(playerid, m125); TextDrawHideForPlayer(playerid, m130); TextDrawHideForPlayer(playerid, m135); TextDrawHideForPlayer(playerid, m140); TextDrawHideForPlayer(playerid, m145); TextDrawHideForPlayer(playerid, m150); TextDrawHideForPlayer(playerid, m155); TextDrawHideForPlayer(playerid, m160); TextDrawHideForPlayer(playerid, mm5); TextDrawHideForPlayer(playerid, mm10); TextDrawHideForPlayer(playerid, mm15); TextDrawHideForPlayer(playerid, mm20); TextDrawHideForPlayer(playerid, mm25); TextDrawHideForPlayer(playerid, mm30); TextDrawHideForPlayer(playerid, mm35); TextDrawHideForPlayer(playerid, mm40); TextDrawHideForPlayer(playerid, mm45); TextDrawHideForPlayer(playerid, mm50); TextDrawHideForPlayer(playerid, mm55); TextDrawHideForPlayer(playerid, mm60); TextDrawHideForPlayer(playerid, mm65); TextDrawHideForPlayer(playerid, mm70); TextDrawHideForPlayer(playerid, mm75); TextDrawHideForPlayer(playerid, mm80); TextDrawHideForPlayer(playerid, mm85); TextDrawHideForPlayer(playerid, mm90); TextDrawHideForPlayer(playerid, mm95); TextDrawHideForPlayer(playerid, mm100); TextDrawHideForPlayer(playerid, mm105); TextDrawHideForPlayer(playerid, mm110); TextDrawHideForPlayer(playerid, mm115); TextDrawHideForPlayer(playerid, mm120); TextDrawHideForPlayer(playerid, mm125); TextDrawHideForPlayer(playerid, mm130); TextDrawHideForPlayer(playerid, mm135); TextDrawHideForPlayer(playerid, mm140); TextDrawHideForPlayer(playerid, mm145); TextDrawHideForPlayer(playerid, mm150); TextDrawHideForPlayer(playerid, mm155); TextDrawHideForPlayer(playerid, mm160); return true; } Képek:
  9. Az a második kód azaz aláirásom lenne ;D Nade találtam 1 linket ahol tudok szint csinálni márncsak azlenne a kérdésem hogyan tudom a TextDrawnak a szinét megváltoztatni mivel ezigy nemakart menni Dupla hozzászólás automatikusan összefûzve. ( [time]1378057595[/time] ) Akkor ez 2x anyi lesz hogy szineset is meg szimplát is csináljak nade mind1 hamárn nekikezdtem :D Azért köszi
  10. Helló újra most az lenne a gondom hogy textdraw színeket hogyan tudok játék közben váltani,és pawn színkódok hogyan épülnek fel? Használhatok helyetük RBG szinkodot? Dupla hozzászólás automatikusan összefûzve. ( [time]1378048932[/time] ) Vagyis csak a szinek érdekelnének hogyha eza fügvény jó: TextDrawColor(m75, -1); Ja és anyira rájöttem hogy ezis rbgböl áll de van bene valami plusz,na azt hogyirjam be hogy ne legyen semien hatása?
  11. Nemtom nekem igysemmegy na mind1 mos átirásal probálkozok az lehet még megy :D de azért kösz
  12. Helló all,azlene a problémám hogy csinálnék egy speedometert amit skriptkérésnél kértek de a textdrawnál elakadtam azaz a legelején :tantrum: .Azlene a baj hogy hiába minden ha beleülök a kocsiba nemjeleniti meg a textdrawokat pedig mindent jol csináltam,(szerintem) mennie kéne :shurg: Itlenne: #include <a_samp> new Text:m10; new Text:m20; new Text:m30; new Text:m40; new Text:m50; new Text:m60; new Text:m70; new Text:m80; new Text:m90; new Text:m100; new Text:m110; new Text:m120; new Text:m130; new Text:m140; new Text:m150; new Text:m160; new Text:m170; new Text:m180; new Text:m190; new Text:m200; new Text:m210; new Text:m220; new Text:m230; new Text:m240; public OnFilterScriptInit() { m10 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m10 , 3); TextDrawLetterSize(m10 , 0.9, 6.3); TextDrawColor(m10 , 0x000000FF); TextDrawSetOutline(m10 , false); TextDrawSetProportional(m10 , true); TextDrawSetShadow(m10 , 1); m20 = TextDrawCreate(516 ,451 , "|"); TextDrawFont(m20 , 3); TextDrawLetterSize(m20 , 0.9, 6.3); TextDrawColor(m20 , 0x000000FF); TextDrawSetOutline(m20 , false); TextDrawSetProportional(m20 , true); TextDrawSetShadow(m20 , 1); m30 = TextDrawCreate(518 ,451 , "|"); TextDrawFont(m30 , 3); TextDrawLetterSize(m30 , 0.9, 6.3); TextDrawColor(m30 , 0x000000FF); TextDrawSetOutline(m30 , false); TextDrawSetProportional(m30 , true); TextDrawSetShadow(m30 , 1); m40 = TextDrawCreate(520 ,451 , "|"); TextDrawFont(m40 , 3); TextDrawLetterSize(m40 , 0.9, 6.3); TextDrawColor(m40 , 0x000000FF); TextDrawSetOutline(m40 , false); TextDrawSetProportional(m40 , true); TextDrawSetShadow(m40 , 1); m50 = TextDrawCreate(522 ,451 , "|"); TextDrawFont(m50 , 3); TextDrawLetterSize(m50 , 0.9, 6.3); TextDrawColor(m50 , 0x000000FF); TextDrawSetOutline(m50 , false); TextDrawSetProportional(m50 , true); TextDrawSetShadow(m50 , 1); m60 = TextDrawCreate(524 ,451 , "|"); TextDrawFont(m60 , 3); TextDrawLetterSize(m60 , 0.9, 6.3); TextDrawColor(m60 , 0x000000FF); TextDrawSetOutline(m60 , false); TextDrawSetProportional(m60 , true); TextDrawSetShadow(m60 , 1); m70 = TextDrawCreate(526 ,451 , "|"); TextDrawFont(m70 , 3); TextDrawLetterSize(m70 , 0.9, 6.3); TextDrawColor(m70 , 0x000000FF); TextDrawSetOutline(m70 , false); TextDrawSetProportional(m70 , true); TextDrawSetShadow(m70 , 1); m80 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m80 , 3); TextDrawLetterSize(m80 , 0.9, 6.3); TextDrawColor(m80 , 0x000000FF); TextDrawSetOutline(m80 , false); TextDrawSetProportional(m80 , true); TextDrawSetShadow(m80 , 1); m90 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m90 , 3); TextDrawLetterSize(m90 , 0.9, 6.3); TextDrawColor(m90 , 0x000000FF); TextDrawSetOutline(m90 , false); TextDrawSetProportional(m90 , true); TextDrawSetShadow(m90 , 1); m100 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m100 , 3); TextDrawLetterSize(m100 , 0.9, 6.3); TextDrawColor(m100 , 0x000000FF); TextDrawSetOutline(m100 , false); TextDrawSetProportional(m100 , true); TextDrawSetShadow(m100 , 1); m110 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m110 , 3); TextDrawLetterSize(m110 , 0.9, 6.3); TextDrawColor(m110 , 0x000000FF); TextDrawSetOutline(m110 , false); TextDrawSetProportional(m110 , true); TextDrawSetShadow(m110 , 1); m120 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m120 , 3); TextDrawLetterSize(m120 , 0.9, 6.3); TextDrawColor(m120 , 0x000000FF); TextDrawSetOutline(m120 , false); TextDrawSetProportional(m120 , true); TextDrawSetShadow(m120 , 1); m130 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m130 , 3); TextDrawLetterSize(m130 , 0.9, 6.3); TextDrawColor(m130 , 0x000000FF); TextDrawSetOutline(m130 , false); TextDrawSetProportional(m130 , true); TextDrawSetShadow(m130 , 1); m140 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m140 , 3); TextDrawLetterSize(m140 , 0.9, 6.3); TextDrawColor(m140 , 0x000000FF); TextDrawSetOutline(m140 , false); TextDrawSetProportional(m140 , true); TextDrawSetShadow(m140 , 1); m150 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m150 , 3); TextDrawLetterSize(m150 , 0.9, 6.3); TextDrawColor(m150 , 0x000000FF); TextDrawSetOutline(m150 , false); TextDrawSetProportional(m150 , true); TextDrawSetShadow(m150 , 1); m160 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m160 , 3); TextDrawLetterSize(m160 , 0.9, 6.3); TextDrawColor(m160 , 0x000000FF); TextDrawSetOutline(m160 , false); TextDrawSetProportional(m160 , true); TextDrawSetShadow(m160 , 1); m170 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m170 , 3); TextDrawLetterSize(m170 , 0.9, 6.3); TextDrawColor(m170 , 0x000000FF); TextDrawSetOutline(m170 , false); TextDrawSetProportional(m170 , true); TextDrawSetShadow(m170 , 1); m180 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m180 , 3); TextDrawLetterSize(m180 , 0.9, 6.3); TextDrawColor(m180 , 0x000000FF); TextDrawSetOutline(m180 , false); TextDrawSetProportional(m180 , true); TextDrawSetShadow(m180 , 1); m190 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m190 , 3); TextDrawLetterSize(m190 , 0.9, 6.3); TextDrawColor(m190 , 0x000000FF); TextDrawSetOutline(m190 , false); TextDrawSetProportional(m190 , true); TextDrawSetShadow(m190 , 1); m200 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m200 , 3); TextDrawLetterSize(m200 , 0.9, 6.3); TextDrawColor(m200 , 0x000000FF); TextDrawSetOutline(m200 , false); TextDrawSetProportional(m200 , true); TextDrawSetShadow(m200 , 1); m210 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m210 , 3); TextDrawLetterSize(m210 , 0.9, 6.3); TextDrawColor(m210 , 0x000000FF); TextDrawSetOutline(m210 , false); TextDrawSetProportional(m210 , true); TextDrawSetShadow(m210 , 1); m220 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m220 , 3); TextDrawLetterSize(m220 , 0.9, 6.3); TextDrawColor(m220 , 0x000000FF); TextDrawSetOutline(m220 , false); TextDrawSetProportional(m220 , true); TextDrawSetShadow(m220 , 1); m230 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m230 , 3); TextDrawLetterSize(m230 , 0.9, 6.3); TextDrawColor(m230 , 0x000000FF); TextDrawSetOutline(m230 , false); TextDrawSetProportional(m230 , true); TextDrawSetShadow(m230 , 1); m240 = TextDrawCreate(514 ,451 , "|"); TextDrawFont(m240 , 3); TextDrawLetterSize(m240 , 0.9, 6.3); TextDrawColor(m240 , 0x000000FF); TextDrawSetOutline(m240 , false); TextDrawSetProportional(m240 , true); TextDrawSetShadow(m240 , 1); return 1; } public OnFilterScriptExit() { } public OnPlayerEnterVehicle(playerid, vehicleid) { TextDrawShowForPlayer(playerid,Text:m10); TextDrawShowForPlayer(playerid,Text:m20); TextDrawShowForPlayer(playerid,Text:m30); TextDrawShowForPlayer(playerid,Text:m40); TextDrawShowForPlayer(playerid,Text:m50); TextDrawShowForPlayer(playerid,Text:m60); TextDrawShowForPlayer(playerid,Text:m70); TextDrawShowForPlayer(playerid,Text:m80); TextDrawShowForPlayer(playerid,Text:m90); TextDrawShowForPlayer(playerid,Text:m100); TextDrawShowForPlayer(playerid,Text:m110); TextDrawShowForPlayer(playerid,Text:m120); TextDrawShowForPlayer(playerid,Text:m130); TextDrawShowForPlayer(playerid,Text:m140); TextDrawShowForPlayer(playerid,Text:m150); TextDrawShowForPlayer(playerid,Text:m160); TextDrawShowForPlayer(playerid,Text:m170); TextDrawShowForPlayer(playerid,Text:m180); TextDrawShowForPlayer(playerid,Text:m190); TextDrawShowForPlayer(playerid,Text:m200); TextDrawShowForPlayer(playerid,Text:m210); TextDrawShowForPlayer(playerid,Text:m220); TextDrawShowForPlayer(playerid,Text:m230); TextDrawShowForPlayer(playerid,Text:m240); return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { TextDrawHideForPlayer(playerid,Text:m10); TextDrawHideForPlayer(playerid,Text:m20); TextDrawHideForPlayer(playerid,Text:m30); TextDrawHideForPlayer(playerid,Text:m40); TextDrawHideForPlayer(playerid,Text:m50); TextDrawHideForPlayer(playerid,Text:m60); TextDrawHideForPlayer(playerid,Text:m70); TextDrawHideForPlayer(playerid,Text:m80); TextDrawHideForPlayer(playerid,Text:m90); TextDrawHideForPlayer(playerid,Text:m100); TextDrawHideForPlayer(playerid,Text:m110); TextDrawHideForPlayer(playerid,Text:m120); TextDrawHideForPlayer(playerid,Text:m130); TextDrawHideForPlayer(playerid,Text:m140); TextDrawHideForPlayer(playerid,Text:m150); TextDrawHideForPlayer(playerid,Text:m160); TextDrawHideForPlayer(playerid,Text:m170); TextDrawHideForPlayer(playerid,Text:m180); TextDrawHideForPlayer(playerid,Text:m190); TextDrawHideForPlayer(playerid,Text:m200); TextDrawHideForPlayer(playerid,Text:m210); TextDrawHideForPlayer(playerid,Text:m220); TextDrawHideForPlayer(playerid,Text:m230); TextDrawHideForPlayer(playerid,Text:m240); return 1; } U.i:Segitsetek mert megörülok!
  13. Max minigame-ra elég ezaz ölet,mivel lehet hogy felmegy 1 player deaz nemfog naponta felmenni csak azért hogy magában ugráljon falrol falra mignem elér egy célt amiben kap/nemkap valamit mire nincs is szüksége
  14. Na szoval tisztázuk neked most a ppc alap gmböl van admin vagypedig egy fsben van?
  15. //Eredeti készítõ: PeteShag // Filterscriptet magyarította: A.S.S.A //=================//ezket a mód legelejére #include <a_samp>// SA-MP alapértelmezett include-ja #include <streamer>// Incognito által készített streamer include #include <zcmd>// Zeex által készített parancsfeldolgozó #include <foreach>// y_Less által készített include //=================// #define MAX_DROP_ITEMS 1000// Maximálisan egyszerre ennyi fegyver lehet eldobva #define COLOR_ACTION 0xFFC0CBFF// Rózsaszín //=================// new string[128], sendername[MAX_PLAYER_NAME], DropObject[MAX_DROP_ITEMS]; //=================// enum dData //mód elejére { DropGunAmmount[2],// ModellID és Töltény Float:DropGunPosX, Float:DropGunPosY, Float:DropGunPosZ, DropGunVWorld, DropGunInterior, }; new DropInfo[MAX_DROP_ITEMS][dData];////mod elejére //=================// new GunObjectIDs[200] ={ 1575, 331, 333, 334, 335, 336, 337, 338, 339, 341, 321, 322, 323, 324, 325, 326, 342, 343, 344, -1, -1 , -1 , 346, 347, 348, 349, 350, 351, 352, 353, 355, 356, 372, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 1575 }; //=================// public OnFilterScriptInit()///nem tettem be { print("\n--------------------------------------"); print("Fegyver eldobó script by Peteshag... Filterscript betöltve!!!"); print("--------------------------------------\n"); return 1; } //=================// stock GetGunObjectID(WeaponID)//ez is publicok alá ment { if (WeaponID < 0 || WeaponID > 64) { return 1575; } return GunObjectIDs[WeaponID]; } //=================// stock DropGun(playerid, GunID, GunAmmo, Float:X, Float:Y, Float:Z, world, interior)///ez is publicoc alá ment { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); if(GunID != 0 && GunAmmo != 0) { for(new i = 0; i < sizeof(DropInfo); i++) { if(DropInfo[i][DropGunPosX] == 0.0 && DropInfo[i][DropGunPosY] == 0.0 && DropInfo[i][DropGunPosZ] == 0.0) { DropInfo[i][DropGunAmmount][0] = GunID; DropInfo[i][DropGunAmmount][1] = GunAmmo; DropInfo[i][DropGunPosX] = X; DropInfo[i][DropGunPosY] = Y; DropInfo[i][DropGunPosZ] = Z; DropInfo[i][DropGunVWorld] = world; DropInfo[i][DropGunInterior] = interior; DropObject[i] = CreateDynamicObject(GetGunObjectID(GunID), X, Y, Z-1, 80.0, 0.0, 0.0, world); return 1; } } return 1; } return 1; } //=================// public OnFilterScriptExit()////ezt nem tettem be mert fölösleges { print("Fegyver eldobó script by PeteShag... Filterscript kikapcsol!!! "); return 1; } //=================// public OnPlayerDeath(playerid, killerid, reason)///ezt beillesztettem így ahogy van { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X, Y, Z); DropGun(playerid, GetPlayerWeapon(playerid),GetPlayerAmmo(playerid),X,Y,Z,GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid)); return 1; } //=================// command(dropgun, playerid, params[])///if(strcmp(cmd, "/fegyvereldob") || strcmp(cmd, "/fegyver-eldob")) { new Float:X,Float:Y,Float:Z; new GunID = GetPlayerWeapon(playerid); new GunAmmo = GetPlayerAmmo(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerPos(playerid, X, Y, Z); RemovePlayerWeapon(playerid, GunID); DropGun(playerid, GunID,GunAmmo,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid)); format(string, sizeof(string), "* %s ledobott egy fegyvert a földre.", sendername); SendLocalMessage(playerid, string, 10.0, COLOR_ACTION, COLOR_ACTION); return 1; } //=================// stock RemovePlayerWeapon(playerid, weaponid)//Létrejöttét segítette: Xalphon///ezt publicochoz tettembe { if(!IsPlayerConnected(playerid) || weaponid < 0 || weaponid > 50) return; new saveweapon[13], saveammo[13]; for(new slot = 0; slot < 13; slot++) GetPlayerWeaponData(playerid, slot, saveweapon[slot], saveammo[slot]); ResetPlayerWeapons(playerid); for(new slot; slot < 13; slot++) { if(saveweapon[slot] == weaponid || saveammo[slot] == 0) continue; GivePlayerWeapon(playerid, saveweapon[slot], saveammo[slot]); } GivePlayerWeapon(playerid, 0, 1); } //=================// command(pickupgun, playerid, params[])/////ezt átírtam erre if(strcmp(cmd, "/fegyverfelvesz") || strcmp(cmd, "/fegyver-felvesz")) { for(new i = 0; i < sizeof(DropInfo); i++) { if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ])) { if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunVWorld]) { GetPlayerName(playerid, sendername, sizeof(sendername)); DestroyDynamicObject(DropObject[i]); DropInfo[i][DropGunPosX] = 0.0; DropInfo[i][DropGunPosY] = 0.0; DropInfo[i][DropGunPosZ] = 0.0; DropInfo[i][DropGunAmmount][0] = 0; DropInfo[i][DropGunAmmount][1] = 0; GivePlayerWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]); format(string, sizeof(string), "* %s felvett egy fegyvert a földrõl.", sendername); SendLocalMessage(playerid, string, 10.0, COLOR_ACTION, COLOR_ACTION); return 1; } } } return 1; } //=================// stock SendLocalMessage(playerid, msg[], Float:MessageRange, Range1color, Range2color) { new Float: PlayerX, Float: PlayerY, Float: PlayerZ; GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ); foreach (Player, i) { if(IsPlayerInRangeOfPoint(i, MessageRange, PlayerX, PlayerY,PlayerZ)) { SendClientMessage(i, Range1color, msg); } else if(IsPlayerInRangeOfPoint(i, MessageRange/2.0, PlayerX, PlayerY,PlayerZ)) { SendClientMessage(i, Range2color, msg); } } } Esetleg igy,bocs késön irok csak nincs .net framework pawnohoz és notepadal akartam volna tesztelni csak nemtudtam mert azis bajos márnmeg ugyhogy nincs tesztelve de remélem megy