25.05.2015, 00:42
[TD] Canto Da Tela
Olб pessoal do forum SA-MP, to trazendo um cуdigo ъtil, uma textdraw que fica no canto direito em baixo na tela, fiz especialmente para o servidor EMPTY 4FUN, e vou disponibilizar para vocкs, bom uso!
Print:
Code:
By: IsackScript
Olб pessoal do forum SA-MP, to trazendo um cуdigo ъtil, uma textdraw que fica no canto direito em baixo na tela, fiz especialmente para o servidor EMPTY 4FUN, e vou disponibilizar para vocкs, bom uso!
Print:
Code:
Quote:
//Include #include <a_samp> //Define #define FILTERSCRIPT #if defined FILTERSCRIPT //Variaveis da TextDraw new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; //Callbaks public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2); return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawDestroy(Textdraw0); TextDrawDestroy(Textdraw1); TextDrawDestroy(Textdraw2); return 1; } public OnFilterScriptInit() { Textdraw0 = TextDrawCreate(552.800048, 400.213256, "EMPTY"); TextDrawLetterSize(Textdraw0, 0.544399, 4.444800); TextDrawAlignment(Textdraw0, 1); TextDrawColor(Textdraw0, -5963521); TextDrawSetShadow(Textdraw0, 0); TextDrawSetOutline(Textdraw0, 2); TextDrawBackgroundColor(Textdraw0, 51); TextDrawFont(Textdraw0, 2); TextDrawSetProportional(Textdraw0, 1); Textdraw1 = TextDrawCreate(579.199829, 394.986724, "4FUN"); TextDrawLetterSize(Textdraw1, 0.449999, 1.600000); TextDrawAlignment(Textdraw1, 1); TextDrawColor(Textdraw1, 8388863); TextDrawSetShadow(Textdraw1, 0); TextDrawSetOutline(Textdraw1, 2); TextDrawBackgroundColor(Textdraw1, 51); TextDrawFont(Textdraw1, 2); TextDrawSetProportional(Textdraw1, 1); Textdraw2 = TextDrawCreate(549.600036, 433.066741, "-"); TextDrawLetterSize(Textdraw2, 5.944402, 0.972800); TextDrawAlignment(Textdraw2, 1); TextDrawColor(Textdraw2, -5963521); TextDrawSetShadow(Textdraw2, 0); TextDrawSetOutline(Textdraw2, 1); TextDrawBackgroundColor(Textdraw2, 51); TextDrawFont(Textdraw2, 1); TextDrawSetProportional(Textdraw2, 1); #endif return 1; } |