Szerző Téma: TextDraw Segitség  (Megtekintve 798 alkalommal)

TextDraw Segitség
« Dátum: 2011. Szeptember 29. - 14:44:25 »
0 Show voters
Sziasztok kellene egy kiss segitség nekem. Nem tudok rájöni hogyan lehet késziteni váltogató textdrawot vagyis olyan mint Lusta szerveriben ahogyan váltja a parancsok nevit csak nekem nem oda kellene hanem a Pénz alá valaki segitene :(  :\'(

Nem elérhető Tomee

  • 385
    • Profil megtekintése
TextDraw Segitség
« Válasz #1 Dátum: 2011. Szeptember 29. - 16:03:37 »
0 Show voters

new Text:ParancsText[MAX_PLAYERS];
ParancsText[playerid] = TextDrawCreate(20.000000, 280.000000, \" \");
TextDrawAlignment(ParancsText[playerid], 1);
TextDrawFont(ParancsText[playerid], 2);
TextDrawColor(ParancsText[playerid], 0x000000FF);
TextDrawBackgroundColor(ParancsText[playerid], 0xFFFF00FF);
TextDrawSetOutline(ParancsText[playerid], 1);
TextDrawLetterSize(ParancsText[playerid], 0.4, 0.9);

 
Ez bal oldalt a térkép alatt van, de állíthatod a
TextDrawCreate(20.000000, 280.000000, \" \"); - résznél
20.000000 = Oldalra
280.000000 = fel/le
Meg a színt is állítod, meg amire te szeretnéd.
 

OnGameModeInit
SetTimer(\"ParancsTimer\", 60000, 1);
forward ParancsTimer();
public ParancsTimer()
{
new szoveg[50],parancs[10];
new randparancs;
randparancs = random(20);
if(randparancs==1) { parancs = \"/help\";  }
else if(randparancs==2) { parancs = \"/info\"; }
...
format(szoveg,sizeof(szoveg),\"%s\",parancs);
TextDrawSetString(Text:AntiCheatText, szoveg);
}

 
Ezt nem teszteltem csak most összedobtam, az is lehet, hogy meglehet oldani azt, hogy a parancsok közül válogasson, de azt nem tudom, hogy hogy én így csinálnám. ha rossz akkor bocs.
« Utoljára szerkesztve: 2011. Szeptember 29. - 16:05:27 írta Tomee »

TextDraw Segitség
« Válasz #2 Dátum: 2011. Szeptember 29. - 17:57:41 »
0 Show voters
Nem megyen sajnos semmi bajj :)

TextDraw Segitség
« Válasz #3 Dátum: 2011. Szeptember 30. - 12:51:48 »
+1 Show voters
Pedró készített egy ilyet http://sampforum.hu/index.php?topic=14308.0

TextDraw Segitség
« Válasz #4 Dátum: 2011. Szeptember 30. - 15:01:45 »
0 Show voters
Kössz tesó megyen a + ! :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal