28.02.2014, 21:07
(
Last edited by N3XTMapper; 01/03/2014 at 12:40 AM.
)
Olб galerinha, esse FS eu acabei de criar, bom , й um simples sistema de Creditos mostrados em textdraw e editaveis
Vamos la.
Para mostrar o textdraw digite /creditos ->
Vamos la.
Para mostrar o textdraw digite /creditos ->
Para apagar o textdraw digite /creditosoff ->
Cуdigo ->
pawn Code:
/*
FS CRIADO POR [0P_][_NeexT_][L] = N3XTMapper, Forum sa-mp. 2014 ©
Nгo remova os crйditos !
*/
#define FILTERSCRIPT
#include <a_samp>
new Text:CreditosTextDraw[9];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" N3XTMapper, Forum sa-mp. 2014 © ");
print("--------------------------------------\n");
CreditosTextDraw[0] = TextDrawCreate(314.000000, 124.000000, "~w~~h~::: ~b~~h~~h~exibindo os creditos ~w~~h~::::");
TextDrawAlignment(CreditosTextDraw[0], 2);
TextDrawBackgroundColor(CreditosTextDraw[0], 51);
TextDrawFont(CreditosTextDraw[0], 3);
TextDrawLetterSize(CreditosTextDraw[0], 0.400000, 1.100000);
TextDrawColor(CreditosTextDraw[0], -1);
TextDrawSetOutline(CreditosTextDraw[0], 1);
TextDrawSetProportional(CreditosTextDraw[0], 1);
TextDrawUseBox(CreditosTextDraw[0], 1);
TextDrawBoxColor(CreditosTextDraw[0], 136);
TextDrawTextSize(CreditosTextDraw[0], 0.000000, 270.000000);
CreditosTextDraw[1] = TextDrawCreate(314.000000, 139.000000, "Nome do servidor aqui ~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
TextDrawAlignment(CreditosTextDraw[1], 2);
TextDrawBackgroundColor(CreditosTextDraw[1], 51);
TextDrawFont(CreditosTextDraw[1], 2);
TextDrawLetterSize(CreditosTextDraw[1], 0.259999, 0.899999);
TextDrawColor(CreditosTextDraw[1], -1);
TextDrawSetOutline(CreditosTextDraw[1], 1);
TextDrawSetProportional(CreditosTextDraw[1], 1);
TextDrawUseBox(CreditosTextDraw[1], 1);
TextDrawBoxColor(CreditosTextDraw[1], 68);
TextDrawTextSize(CreditosTextDraw[1], 0.000000, 270.000000);
CreditosTextDraw[2] = TextDrawCreate(234.000000, 159.000000, "~g~~h~~h~Dono (s) ~>~");
TextDrawAlignment(CreditosTextDraw[2], 2);
TextDrawBackgroundColor(CreditosTextDraw[2], 51);
TextDrawFont(CreditosTextDraw[2], 2);
TextDrawLetterSize(CreditosTextDraw[2], 0.300000, 0.899999);
TextDrawColor(CreditosTextDraw[2], -1);
TextDrawSetOutline(CreditosTextDraw[2], 1);
TextDrawSetProportional(CreditosTextDraw[2], 1);
TextDrawUseBox(CreditosTextDraw[2], 1);
TextDrawBoxColor(CreditosTextDraw[2], 136);
TextDrawTextSize(CreditosTextDraw[2], 0.000000, 109.000000);
CreditosTextDraw[3] = TextDrawCreate(330.000000, 172.000000, "Nome do(s) dono(s) aqui !");
TextDrawAlignment(CreditosTextDraw[3], 3);
TextDrawBackgroundColor(CreditosTextDraw[3], 51);
TextDrawFont(CreditosTextDraw[3], 2);
TextDrawLetterSize(CreditosTextDraw[3], 0.259999, 0.899999);
TextDrawColor(CreditosTextDraw[3], -1);
TextDrawSetOutline(CreditosTextDraw[3], 1);
TextDrawSetProportional(CreditosTextDraw[3], 1);
CreditosTextDraw[4] = TextDrawCreate(234.000000, 188.000000, "~g~~h~~h~Criador (es) ~>~");
TextDrawAlignment(CreditosTextDraw[4], 2);
TextDrawBackgroundColor(CreditosTextDraw[4], 51);
TextDrawFont(CreditosTextDraw[4], 2);
TextDrawLetterSize(CreditosTextDraw[4], 0.300000, 0.899999);
TextDrawColor(CreditosTextDraw[4], -1);
TextDrawSetOutline(CreditosTextDraw[4], 1);
TextDrawSetProportional(CreditosTextDraw[4], 1);
TextDrawUseBox(CreditosTextDraw[4], 1);
TextDrawBoxColor(CreditosTextDraw[4], 136);
TextDrawTextSize(CreditosTextDraw[4], 0.000000, 109.000000);
CreditosTextDraw[5] = TextDrawCreate(360.000000, 202.000000, "Nome do (s) criador (es) aqui !");
TextDrawAlignment(CreditosTextDraw[5], 3);
TextDrawBackgroundColor(CreditosTextDraw[5], 51);
TextDrawFont(CreditosTextDraw[5], 2);
TextDrawLetterSize(CreditosTextDraw[5], 0.259999, 0.899999);
TextDrawColor(CreditosTextDraw[5], -1);
TextDrawSetOutline(CreditosTextDraw[5], 1);
TextDrawSetProportional(CreditosTextDraw[5], 1);
CreditosTextDraw[6] = TextDrawCreate(234.000000, 218.000000, "~g~~h~~h~Agradecimentos ~>~");
TextDrawAlignment(CreditosTextDraw[6], 2);
TextDrawBackgroundColor(CreditosTextDraw[6], 51);
TextDrawFont(CreditosTextDraw[6], 2);
TextDrawLetterSize(CreditosTextDraw[6], 0.230000, 0.799998);
TextDrawColor(CreditosTextDraw[6], -1);
TextDrawSetOutline(CreditosTextDraw[6], 1);
TextDrawSetProportional(CreditosTextDraw[6], 1);
TextDrawUseBox(CreditosTextDraw[6], 1);
TextDrawBoxColor(CreditosTextDraw[6], 136);
TextDrawTextSize(CreditosTextDraw[6], 0.000000, 109.000000);
CreditosTextDraw[7] = TextDrawCreate(312.000000, 238.000000, "agradecemos a voce por ter escolhido o nosso servidor~n~obrigado pela preferencia~n~volte sempre");
TextDrawAlignment(CreditosTextDraw[7], 2);
TextDrawBackgroundColor(CreditosTextDraw[7], 51);
TextDrawFont(CreditosTextDraw[7], 2);
TextDrawLetterSize(CreditosTextDraw[7], 0.189999, 0.699998);
TextDrawColor(CreditosTextDraw[7], -1);
TextDrawSetOutline(CreditosTextDraw[7], 1);
TextDrawSetProportional(CreditosTextDraw[7], 1);
CreditosTextDraw[8] = TextDrawCreate(312.000000, 280.000000, "~y~] ~w~~h~fs criado por n3xtmapper - forum sa-mp 2014 ~y~]");
TextDrawAlignment(CreditosTextDraw[8], 2);
TextDrawBackgroundColor(CreditosTextDraw[8], 51);
TextDrawFont(CreditosTextDraw[8], 2);
TextDrawLetterSize(CreditosTextDraw[8], 0.189999, 0.699998);
TextDrawColor(CreditosTextDraw[8], -1);
TextDrawSetOutline(CreditosTextDraw[8], 1);
TextDrawSetProportional(CreditosTextDraw[8], 1);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/creditos", cmdtext, true, 10) == 0)
{
for(new pt = 0; pt < sizeof(CreditosTextDraw); pt++)
TextDrawShowForPlayer(playerid, CreditosTextDraw[pt]);
SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Mostrando os crйdios, para destrui-los, /creditosoff");
return 1;
}
// sumir textdraw
if (strcmp("/creditosoff", cmdtext, true, 10) == 0)
{
for(new pt = 0; pt < sizeof(CreditosTextDraw); pt++)
TextDrawHideForPlayer(playerid, CreditosTextDraw[pt]);
SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Creditos apagados !" );
return 1;
}
return 0;
}
Crйditos -> Eu pelo fs xD , Zamaroth pelo textdraw editor
Cуdigo updated by @PT