22.07.2017, 12:31
Galera й o seguinte, o IlanZ me deu uma base de como eu queria й pegou normal mas o meu nгo estб pegando, alguйm poderia me explicar?
OnPlayerConnect
Base do IlanZ: https://pastebin.com/f8J8rYaJ
PHP код:
new Text:Textdraw[7];
PHP код:
Textdraw[0]= TextDrawCreate(175.000000, 1.500000, "usebox");
TextDrawLetterSize(Textdraw[0], 0.000000, 49.391975);
TextDrawTextSize(Textdraw[0], -2.000000, 0.000000);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], 255);
TextDrawUseBox(Textdraw[0], true);
TextDrawBoxColor(Textdraw[0], 255);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 0);
TextDrawFont(Textdraw[0], 0);
Textdraw[1] = TextDrawCreate(18.500000, 59.111106, "Trafico nas Favelas");
TextDrawLetterSize(Textdraw[1], 0.509499, 2.147557);
TextDrawAlignment(Textdraw[1], 1);
TextDrawColor(Textdraw[1], -1);
TextDrawSetShadow(Textdraw[1], 0);
TextDrawSetOutline(Textdraw[1], 1);
TextDrawBackgroundColor(Textdraw[1], 51);
TextDrawFont(Textdraw[1], 0);
TextDrawSetProportional(Textdraw[1], 1);
Textdraw[2] = TextDrawCreate(89.000000, 84.622230, "OFICIAL");
TextDrawLetterSize(Textdraw[2], 0.271999, 1.108444);
TextDrawAlignment(Textdraw[2], 1);
TextDrawColor(Textdraw[2], -1);
TextDrawSetShadow(Textdraw[2], 0);
TextDrawSetOutline(Textdraw[2], 1);
TextDrawBackgroundColor(Textdraw[2], 51);
TextDrawFont(Textdraw[2], 2);
TextDrawSetProportional(Textdraw[2], 1);
Textdraw[3] = TextDrawCreate(22.500000, 82.755554, "LD_SPAC:white");
TextDrawLetterSize(Textdraw[3], 0.000000, 0.000000);
TextDrawTextSize(Textdraw[3], 115.500000, -0.622222);
TextDrawAlignment(Textdraw[3], 1);
TextDrawColor(Textdraw[3], -1);
TextDrawSetShadow(Textdraw[3], 0);
TextDrawSetOutline(Textdraw[3], 0);
TextDrawFont(Textdraw[3], 4);
Textdraw[4] = TextDrawCreate(49.000000, 167.377670, "Entrar");
TextDrawLetterSize(Textdraw[4], 0.449999, 1.600000);
TextDrawAlignment(Textdraw[4], 1);
TextDrawColor(Textdraw[4], -1);
TextDrawSetShadow(Textdraw[4], 0);
TextDrawSetOutline(Textdraw[4], 1);
TextDrawBackgroundColor(Textdraw[4], 51);
TextDrawFont(Textdraw[4], 1);
TextDrawSetProportional(Textdraw[4], 1);
Textdraw[5] = TextDrawCreate(40.000000, 208.444366, "Registrar");
TextDrawLetterSize(Textdraw[5], 0.449999, 1.600000);
TextDrawAlignment(Textdraw[5], 1);
TextDrawColor(Textdraw[5], -1);
TextDrawSetShadow(Textdraw[5], 0);
TextDrawSetOutline(Textdraw[5], 1);
TextDrawBackgroundColor(Textdraw[5], 51);
TextDrawFont(Textdraw[5], 1);
TextDrawSetProportional(Textdraw[5], 1);
Textdraw[6] = TextDrawCreate(53.500000, 246.399932, "Sair");
TextDrawLetterSize(Textdraw[6], 0.449999, 1.600000);
TextDrawAlignment(Textdraw[6], 1);
TextDrawColor(Textdraw[6], -1);
TextDrawSetShadow(Textdraw[6], 0);
TextDrawSetOutline(Textdraw[6], 1);
TextDrawBackgroundColor(Textdraw[6], 51);
TextDrawFont(Textdraw[6], 1);
TextDrawSetProportional(Textdraw[6], 1);
PHP код:
for(new i; i < 7; i++){TextDrawShowForPlayer(playerid, Textdraw[i]);}
SelectTextDraw(playerid, 0xFF0000AA);
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw[4])
{
SendClientMessage(playerid, -1, "Nгo pega saporra");
CancelSelectTextDraw(playerid);
}
return 1;
}