22.04.2015, 23:38
Crйditos em TextDraw - Bбsico (CУDIGO ЪTIL)
INTRODUЗГO:
Este Script ja diz tudo no tнtulo cria uma textdraw com os nomes dos criadores/fundadores basta vocк digitar /creditos para aparecer e para remover a textdraw da tela digite /creditosoff, para mudar os nomes й so mudar no script, й meu primeiro script e ele estб muito bбsico, porйm poderб ajudar muitos novatos entгo comente crнticas construtivas e irei tentar melhorar.INTRODUЗГO:
PRINT:
CУDIGO:
CУDIGO:
PHP код:
/* CRЙDITOS EM TEXTDRAW TOTALMENTE CRIADO POR Isack_Script - Nгo retire os crйditos por favor.
COMANDOS:
PARA VER OS CRЙDITOS: /creditos - PARA ESCONDER OS CRЙDITOS: /creditosoff */
#include <a_samp>
new Text:Creditos[11];
public OnGameModetInit()
{
print("\n-----------------------------------");
print(" Isack_Script, Forum SA-MP 2015 © ");
print(" SKYPE: isack.silva4 ");
print("-----------------------------------\n");
Creditos[0] = TextDrawCreate(450.000000, 120.966674, "usebox");
TextDrawLetterSize(Creditos[0], 0.000000, 22.747037);
TextDrawTextSize(Creditos[0], 194.800003, 0.000000);
TextDrawAlignment(Creditos[0], 1);
TextDrawColor(Creditos[0], 0);
TextDrawUseBox(Creditos[0], true);
TextDrawBoxColor(Creditos[0], 102);
TextDrawSetShadow(Creditos[0], 0);
TextDrawSetOutline(Creditos[0], 0);
TextDrawFont(Creditos[0], 0);
Creditos[1] = TextDrawCreate(198.399993, 116.479995, "LD_SPAC:white");
TextDrawLetterSize(Creditos[1], 0.000000, 0.000000);
TextDrawTextSize(Creditos[1], 248.800018, 24.639999);
TextDrawAlignment(Creditos[1], 1);
TextDrawColor(Creditos[1], 255);
TextDrawSetShadow(Creditos[1], 0);
TextDrawSetOutline(Creditos[1], 0);
TextDrawFont(Creditos[1], 4);
Creditos[2] = TextDrawCreate(447.200012, 191.146667, "LD_SPAC:white");
TextDrawLetterSize(Creditos[2], 0.000000, 0.000000);
TextDrawTextSize(Creditos[2], -248.800018, -24.639999);
TextDrawAlignment(Creditos[2], 1);
TextDrawColor(Creditos[2], 255);
TextDrawSetShadow(Creditos[2], 0);
TextDrawSetOutline(Creditos[2], 0);
TextDrawFont(Creditos[2], 4);
Creditos[3] = TextDrawCreate(198.399993, 214.293334, "LD_SPAC:white");
TextDrawLetterSize(Creditos[3], 0.000000, 0.000000);
TextDrawTextSize(Creditos[3], 248.800018, 21.653320);
TextDrawAlignment(Creditos[3], 1);
TextDrawColor(Creditos[3], 255);
TextDrawSetShadow(Creditos[3], 0);
TextDrawSetOutline(Creditos[3], 0);
TextDrawFont(Creditos[3], 4);
Creditos[4] = TextDrawCreate(198.399993, 262.079986, "LD_SPAC:white");
TextDrawLetterSize(Creditos[4], 0.000000, 0.000000);
TextDrawTextSize(Creditos[4], 248.800018, 66.453338);
TextDrawAlignment(Creditos[4], 1);
TextDrawColor(Creditos[4], 255);
TextDrawSetShadow(Creditos[4], 0);
TextDrawSetOutline(Creditos[4], 0);
TextDrawFont(Creditos[4], 4);
Creditos[5] = TextDrawCreate(271.200073, 118.720008, "FUNDADOR:");
TextDrawLetterSize(Creditos[5], 0.453999, 2.085333);
TextDrawAlignment(Creditos[5], 1);
TextDrawColor(Creditos[5], -5963521);
TextDrawSetShadow(Creditos[5], 0);
TextDrawSetOutline(Creditos[5], 1);
TextDrawBackgroundColor(Creditos[5], 51);
TextDrawFont(Creditos[5], 2);
TextDrawSetProportional(Creditos[5], 1);
Creditos[6] = TextDrawCreate(278.400024, 168.746704, "DONOS:");
TextDrawLetterSize(Creditos[6], 0.613999, 1.898667);
TextDrawAlignment(Creditos[6], 1);
TextDrawColor(Creditos[6], -5963521);
TextDrawSetShadow(Creditos[6], 0);
TextDrawSetOutline(Creditos[6], 1);
TextDrawBackgroundColor(Creditos[6], 51);
TextDrawFont(Creditos[6], 2);
TextDrawSetProportional(Creditos[6], 1);
Creditos[7] = TextDrawCreate(265.600006, 213.546676, "CONTATO SKYPE:");
TextDrawLetterSize(Creditos[7], 0.337999, 2.197334);
TextDrawAlignment(Creditos[7], 1);
TextDrawColor(Creditos[7], -5963521);
TextDrawSetShadow(Creditos[7], 0);
TextDrawSetOutline(Creditos[7], 1);
TextDrawBackgroundColor(Creditos[7], 51);
TextDrawFont(Creditos[7], 2);
TextDrawSetProportional(Creditos[7], 1);
Creditos[8] = TextDrawCreate(211.200042, 256.853118, "..: CREDITOS :..");
TextDrawLetterSize(Creditos[8], 0.834000, 7.618134);
TextDrawAlignment(Creditos[8], 1);
TextDrawColor(Creditos[8], -5963521);
TextDrawSetShadow(Creditos[8], 0);
TextDrawSetOutline(Creditos[8], 1);
TextDrawBackgroundColor(Creditos[8], 51);
TextDrawFont(Creditos[8], 1);
TextDrawSetProportional(Creditos[8], 1);
Creditos[9] = TextDrawCreate(276.800079, 144.106613, "NOME AQUI");
TextDrawLetterSize(Creditos[9], 0.449999, 1.600000);
TextDrawAlignment(Creditos[9], 1);
TextDrawColor(Creditos[9], -1061109505);
TextDrawSetShadow(Creditos[9], 0);
TextDrawSetOutline(Creditos[9], 1);
TextDrawBackgroundColor(Creditos[9], 51);
TextDrawFont(Creditos[9], 1);
TextDrawSetProportional(Creditos[9], 1);
Creditos[10] = TextDrawCreate(279.200042, 193.386688, "NOME AQUI");
TextDrawLetterSize(Creditos[10], 0.449999, 1.600000);
TextDrawAlignment(Creditos[10], 1);
TextDrawColor(Creditos[10], -1061109505);
TextDrawSetShadow(Creditos[10], 0);
TextDrawSetOutline(Creditos[10], 1);
TextDrawBackgroundColor(Creditos[10], 51);
TextDrawFont(Creditos[10], 1);
TextDrawSetProportional(Creditos[10], 1);
Creditos[11] = TextDrawCreate(279.199951, 238.186676, "NOME AQUI");
TextDrawLetterSize(Creditos[11], 0.449999, 1.600000);
TextDrawAlignment(Creditos[11], 1);
TextDrawColor(Creditos[11], -1061109505);
TextDrawSetShadow(Creditos[11], 0);
TextDrawSetOutline(Creditos[11], 1);
TextDrawBackgroundColor(Creditos[11], 51);
TextDrawFont(Creditos[11], 1);
TextDrawSetProportional(Creditos[11], 1);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//PARA APARECER NA TELA!
if(strcmp("/creditos", cmdtext, true, 10) == 0)
{
for(new pt = 0; pt < sizeof(Creditos); pt++)
TextDrawShowForPlayer(playerid, Creditos[pt]);
SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Mostrando os crйditos, para esconder, /creditosoff");
return 1;
}
//PARA ESCONDER NA TEKA!
if(strcmp("/creditosoff", cmdtext, true, 10) == 0)
{
for(new pt = 0; pt < sizeof(Creditos); pt++)
TextDrawHideForPlayer(playerid, Creditos[pt]);
SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Creditos-OFF !" );
return 1;
}
return 0;
}