Szerző Téma: Mozgo Lo by SkillZ  (Megtekintve 828 alkalommal)

Mozgo Lo by SkillZ
« Dátum: 2012. Június 21. - 20:17:12 »
0 Show voters
Hello Mindenki.
Unalmamban ossze dobtam ezt a kis scriptet.Szerintem nagyon erdekes, es valoban szeretnem tovabb fejleszteni.Aki nem tudja annak el mondom hogy mint ahogy a Single Playerben valo kis jatekkonzolon itt is van egy versenyzo lo,ami szaladas animaciot vegez.ezt sprite bol alakitottam ki.8 kepbol all ami 250ms (1/4 masodperc) alatt valtozik.Aki akarja teheti gyorsabbra is,viszont nem nagyon ajanlom,mert nehogy belaggoljon a szero.
A kovetkezo verzioban meg csinalom hogy menjen elore is a kis lo,igy akar betoltesnek is hasznalhato.
Ezt csak hulyesegbol csinaltam,mert kiszerettem volna probalni.Nem tudom hogy van e mar ilyen itt fenn forumon,de nem is nagyon zavar.Nezzetek meg es probaljatok ki.
 

//Mozgo Lo by SkillZ
//A scriptben segitett Zamaroth TextDrawja.
#include <a_samp>
new mutat;
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:lo;
new frissittimer;
new kovetkezo;
#define speedtimer 250
forward Frissit();
public OnFilterScriptInit()
{
print(\"Mozgo Lo by SkillZ betoltve\");
// Create the textdraws:
Textdraw0 = TextDrawCreate(149.000000, 368.000000, \"LD_OTB:trees\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 55.000000, 79.000000);
Textdraw1 = TextDrawCreate(204.000000, 368.000000, \"LD_OTB:trees\");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 4);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 55.000000, 79.000000);
Textdraw2 = TextDrawCreate(259.000000, 368.000000, \"LD_OTB:trees\");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 4);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 255);
TextDrawTextSize(Textdraw2, 55.000000, 79.000000);
Textdraw3 = TextDrawCreate(314.000000, 368.000000, \"LD_OTB:trees\");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 4);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 255);
TextDrawTextSize(Textdraw3, 55.000000, 79.000000);
Textdraw4 = TextDrawCreate(369.000000, 368.000000, \"LD_OTB:trees\");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 4);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 255);
TextDrawTextSize(Textdraw4, 55.000000, 79.000000);
lo = TextDrawCreate(148.000000, 368.000000, \"LD_OTB:hrs1\");
TextDrawBackgroundColor(lo, 255);
TextDrawFont(lo, 4);
TextDrawLetterSize(lo, 0.500000, 1.000000);
TextDrawColor(lo, -1);
TextDrawSetOutline(lo, 0);
TextDrawSetProportional(lo, 1);
TextDrawSetShadow(lo, 1);
TextDrawUseBox(lo, 1);
TextDrawBoxColor(lo, 255);
TextDrawTextSize(lo, 55.000000, 79.000000);
    mutat = 0;
    kovetkezo = 0;
   
    TextDrawShowForAll(Textdraw0);
TextDrawShowForAll(Textdraw1);
TextDrawShowForAll(Textdraw2);
TextDrawShowForAll(Textdraw3);
TextDrawShowForAll(Textdraw4);
TextDrawShowForAll(lo);
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawDestroy(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawDestroy(Textdraw4);
TextDrawHideForAll(lo);
TextDrawDestroy(lo);
return 1;
}
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, lo);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, \"/mozgolo\"))
{
if(mutat == 0)
{
   mutat = 1;
   /*TextDrawShowForAll(Textdraw0);
   TextDrawShowForAll(Textdraw1);
   TextDrawShowForAll(Textdraw2);
   TextDrawShowForAll(Textdraw3);
   TextDrawShowForAll(Textdraw4);
   TextDrawShowForAll(lo);*/
    frissittimer = SetTimer(\"Frissit\", speedtimer, 1);
}
else
{
   mutat = 0;
   /*TextDrawHideForAll(Textdraw0);
   TextDrawHideForAll(Textdraw1);
   TextDrawHideForAll(Textdraw2);
   TextDrawHideForAll(Textdraw3);
   TextDrawHideForAll(Textdraw4);
   TextDrawHideForAll(lo);*/
   KillTimer(frissittimer);
}
}
return 1;
}
public Frissit() {
if(kovetkezo == 0) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs2\");
kovetkezo = 1;
} else if(kovetkezo == 1) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs3\");
kovetkezo = 2;
} else if(kovetkezo == 2) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs4\");
kovetkezo = 3;
} else if(kovetkezo == 3) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs4\");
kovetkezo = 4;
} else if(kovetkezo == 4) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs5\");
kovetkezo = 5;
} else if(kovetkezo == 5) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs6\");
kovetkezo = 6;
} else if(kovetkezo == 6) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs7\");
kovetkezo = 7;
} else if(kovetkezo == 7) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs8\");
kovetkezo = 8;
} else if(kovetkezo == 8) {
TextDrawSetString(Text:lo, \"LD_OTB:hrs1\");
kovetkezo = 0;
}
return 1;
}

 
Kepet,vagy videot akkor teszek ha teljesen meg csinalom a scriptet.
Most nem volt idom es kedvem se.
Remelem tetszik:P
Udv:SkillZ, (Adam)
A lovat a /mozgolo paranccsal lehet elinditani,illetve megallitani.
Teszteltem,szoval kell hogy mukodjon.
« Utoljára szerkesztve: 2012. Június 21. - 20:19:48 írta xSkillZ7x »

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Mozgo Lo by SkillZ
« Válasz #1 Dátum: 2012. Június 21. - 20:37:14 »
0 Show voters
kérhetnék 1 képet?
am tetszik

Mozgo Lo by SkillZ
« Válasz #2 Dátum: 2012. Június 21. - 20:40:36 »
0 Show voters
Most nem vagyok gep kozelben.Csak telefonon,de holnap teszek azt is.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal