MattyC6 0 Odesláno: 19. Srpen, 2015 Share Odesláno: 19. Srpen, 2015 Servus! Je mi to blbý, ale jsem levej na vše co se týče pwn. Potřeboval bych, kdyby byl někdo tak hodnej tomu věnovat minutku vytvořit textdraw v pwn, mám už tákladní informace, které jsem si udělal přes TDE (TextDraw Editor), chtěl bych to hodit do pwn. Mám to na mp verze 037 Viz. zde // TextDraw developed using Zamaroht's Textdraw Editor 1.0 // On top of script: new Text:Textdraw0; // In OnGameModeInit prefferably, we procced to create our textdraws: Textdraw0 = TextDrawCreate(41.000000, 308.000000, "SanAndreas"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 1); TextDrawLetterSize(Textdraw0, 0.500000, 2.599999); TextDrawColor(Textdraw0, -65281); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); // You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and // TextDrawDestroy functions to show, hide, and destroy the textdraw. Link to comment Share on other sites More sharing options...
The hidden face 77 Odesláno: 19. Srpen, 2015 Share Odesláno: 19. Srpen, 2015 Tady to máš, samozřejmě, šlo by to i jinak, jestli je tohle nejlepší způsob nevím. Když tak to někdo zkritizuje a udělá ti to jinak. #include <a_samp> new Text:Textdraw0; main(){} public OnGameModeInit() { Textdraw0 = TextDrawCreate(41.000000, 308.000000, "SanAndreas"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 1); TextDrawLetterSize(Textdraw0, 0.500000, 2.599999); TextDrawColor(Textdraw0, -65281); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); return 1; } public OnGameModeExit() { TextDrawDestroy(Textdraw0); return 1; } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawHideForPlayer(playerid, Textdraw0); return 1; } Link to comment Share on other sites More sharing options...
MattyC6 0 Odesláno: 19. Srpen, 2015 Author Share Odesláno: 19. Srpen, 2015 Děkuju moc, vážim si každé odpovědi i když je to easy pro vás. 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