fugasjunior 1 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Ahoj. Připravil jsem pro vás InfoBox přes TextDraw. Než začnete, že už to tu je, tak si přečtěte tohle: Screen: http://img179.imageshack.us/img179/3337/pickc.jpg Doba testace: Test úspěšný, pokud naleznete bugy, napište Doba programování: CCa 15min. Doba vytváření TD: CCa 10min. Vhodné pro: Jakýkoliv typ modu Současná verze: 0.1ß Připravovaná verze: 0.2 PlayerInfoBox se hodí například k oznámení pro hráče (nevlastníte řidičský průkaz apod.)(HideTimer: 7,5 vteřiny) GlobalInfoBox se hodí pro oznámení všem hráčům (ten a ten se stal tím a tím, ten a ten umřel apod.)(HideTimer: 10 vteřin) FUNKCE Ukázání infoboxu pro jednoho hráčeUkázání globálního infoboxu INSTALL AND USSING Přesuňte stažený soubor do složky s pawnem > includes (př. C:\Programmer\Desktop\SA-MP server\nPawno\includes) V modu/filterscriptu vložte do OnGameModeInit: InfoBox_OnGameModeInit(); a do OnPlayerConnect: InfoBox_OnPlayerConnect(playerid); Poté už jen dejte do funkce příkaz k zobrazení Infoboxu. VYSVĚTLIVKY ShowPlayerInfoBox(playerid, string[]); ukáže infobox pouze pro jednoho hráče (přímo pod chatem, s černým průhledným boxem) ShowGlobalInfoBox(string[]); ukáže infobox všem hráčům (v pravém dolním rohu, bez boxu) DOWNLOAD Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 screeny screeny screeny btw: i really dont like your red color in the post. edit: ano umím čist, že je dodaš později, ale u takovejhle přispevku je davej hned nebo je udělej a až pak postuj takhle si to nikdo enstahne Link to comment Share on other sites More sharing options...
Mischino19 2 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 si mohol aj obrazok hodit Link to comment Share on other sites More sharing options...
fugasjunior 1 Odesláno: 13. Květen, 2010 Author Share Odesláno: 13. Květen, 2010 ku*va sem udělal testační GM ale nejde spustit -- čtv 13. kvě 2010 17:23:45 -- Prosím, zatím to nestahujte, když do modu vložim jednu z těch funkci server mi hodí chybu. Opravím o co nejdříve Link to comment Share on other sites More sharing options...
Guest Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 stock InfoBox(playerid,text[],time) { TextDrawSetString(Textdraw1, text); TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); SetTimer("Timer", time*1000, 0); return 1; } radím ti takto niak (aj s time) je to lepšie... Link to comment Share on other sites More sharing options...
Guest nVidiaX Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Fugasi... nepostuj tu ty čínské sračky! Link to comment Share on other sites More sharing options...
fugasjunior 1 Odesláno: 13. Květen, 2010 Author Share Odesláno: 13. Květen, 2010 Fugasi... nepostuj tu ty čínské sračky! Ehm... známe se? Link to comment Share on other sites More sharing options...
Guest Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Fungas uprav tak ako som ti napísal inač good job... Link to comment Share on other sites More sharing options...
Guest nVidiaX Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Fugasi... nepostuj tu ty čínské sračky! Ehm... známe se? Ano OMG Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Fugasi... nepostuj tu ty čínské sračky! Sklidni slovník... -- čtv 13. kvě 2010 17:44:06 -- btw: nejsi nahodou pan velky machr Black Joker? Link to comment Share on other sites More sharing options...
AvestX 5 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Ano, blackjoker je tu ! s novím multiacc... ano je tomu tak ! důkaz? deník facebook.com Omlouvám se za offtopic.... Link to comment Share on other sites More sharing options...
fugasjunior 1 Odesláno: 13. Květen, 2010 Author Share Odesláno: 13. Květen, 2010 Ano, blackjoker je tu !s novím multiacc... ano je tomu tak ! důkaz? deník facebook.com Přesně tak ale nedělejte off topic Link to comment Share on other sites More sharing options...
Exe_R 0 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Číno.. furt je lepší než někteří jiní na fóru Link to comment Share on other sites More sharing options...
Guest nVidiaX Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Číno.. furt je lepší než někteří jiní na fóru Mno Hej no Link to comment Share on other sites More sharing options...
fugasjunior 1 Odesláno: 13. Květen, 2010 Author Share Odesláno: 13. Květen, 2010 Include byl opraven, můžete stahovat! Screen přidán Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 Číno.. furt je lepší než někteří jiní na fóru Baví, tě to, furt se do mě navažet. No tvoje věc Link to comment Share on other sites More sharing options...
fugasjunior 1 Odesláno: 13. Květen, 2010 Author Share Odesláno: 13. Květen, 2010 ku*va tfuj! Víte jak jsem se lekl že mi sem někdo postnul krityku? Sem mohl dostat infarkt!! :D :D xDDDDDDD Ale fakt, nedělejte mi z toho offtopic Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 13. Květen, 2010 Share Odesláno: 13. Květen, 2010 [*:p66ppcoc] Jelikož ve funkci InfoBox_OnPlayerConnect vytváříš hráči textdraw tak bys měl mít i funkci InfoBox_OnPlayerDisconnect, která mu ten textdraw zničí, jinak ti to bude blbnout[*:p66ppcoc] Doporučuju abys vytvářel SetTimery jako proměnné, protože když použiješ několikrát za sebou stejný SetTimer tak ti začně dělat problémy (to samé se SetTimerEx), příklad: new timer1; public ShowGlobalInfoBox(string[]) { TextDrawShowForAll(InfoBox2); TextDrawSetString(InfoBox2, string); KillTimer(timer1); timer1 = SetTimer("Infobox2Hide", 10000, 0); return 1; } Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 14. Květen, 2010 Share Odesláno: 14. Květen, 2010 sry ale mohol si to urobyt aj lepsie tie obrysi atd Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 14. Květen, 2010 Share Odesláno: 14. Květen, 2010 Udelal bych to vetsi, neni to moc videt, a ja myslel ze infobox bude ctverec a v nem text, no pro ty co si to chteji stahnout tak jim doporucuju si to upravit. Link to comment Share on other sites More sharing options...
Guest Odesláno: 14. Květen, 2010 Share Odesláno: 14. Květen, 2010 vôbec sa mi nepáči... ak tam dáš dlhší text tak to bude cez červené... Link to comment Share on other sites More sharing options...
Michael 4 Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 Sry za starý topic ale barvy mám dělat přes hex nebo pomocí ~g~ ? Link to comment Share on other sites More sharing options...
Guest Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 http://wiki.sa-mp.com/wiki/Colors_List "Game Text Colors" Link to comment Share on other sites More sharing options...
Michael 4 Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 Díky Link to comment Share on other sites More sharing options...
Yamaha 0 Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 Moc sa my to nepáči,2/10 a je to jednoduché tak by to mal dokázať aj začiatočník Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now