17.07.2014, 16:15
(
Последний раз редактировалось Zodiaco; 17.07.2014 в 19:15.
)
Hola amigos, alguien fuera tan amable de orientarme, como puedo hacer que este textdraw solo aparezca a los nuevos usuarios, o a los que tenga cero de score.
imagen
codigo.
muchas gracias
imagen
codigo.
PHP код:
#include <a_samp>
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;
new Text:Textdraw17;
new Text:Textdraw18;
new Text:Textdraw19;
new Text:Textdraw20;
new Text:Textdraw21;
new Text:Textdraw22;
new Text:Textdraw23;
new Text:Textdraw24;
new Text:Textdraw25;
new Text:Textdraw26;
new Text:Textdraw27;
new Text:Textdraw28;
new Text:Textdraw29;
new Text:Textdraw30;
new Text:Textdraw31;
new Text:Textdraw32;
public OnFilterScriptInit()
{
// Crear los textdraws:
Textdraw0 = TextDrawCreate(427.000000, 198.000000, "Informacion");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 16711935);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
Textdraw1 = TextDrawCreate(430.000000, 210.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 0);
TextDrawLetterSize(Textdraw1, 0.500000, 17.000003);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 598.000000, 0.000000);
Textdraw2 = TextDrawCreate(437.000000, 218.000000, "Sistema de Puntos:");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.310000, 1.100000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
Textdraw3 = TextDrawCreate(434.000000, 237.000000, "Cada estrella supondra un nivel~n~ de respeto. Eso dependera de~n~ de los asesinatos que cometas.");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.310000, 1.100000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
Textdraw4 = TextDrawCreate(437.000000, 280.000000, "Score");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.310000, 1.100000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
Textdraw5 = TextDrawCreate(544.000000, 280.000000, "Respeto");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.310000, 1.100000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
Textdraw6 = TextDrawCreate(577.000000, 295.000000, "]");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 0);
TextDrawLetterSize(Textdraw6, 0.310000, 1.100000);
TextDrawColor(Textdraw6, -65281);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
Textdraw7 = TextDrawCreate(577.000000, 305.000000, "]");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 0);
TextDrawLetterSize(Textdraw7, 0.310000, 1.100000);
TextDrawColor(Textdraw7, -65281);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
Textdraw8 = TextDrawCreate(577.000000, 315.000000, "]");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 0);
TextDrawLetterSize(Textdraw8, 0.310000, 1.100000);
TextDrawColor(Textdraw8, -65281);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
Textdraw9 = TextDrawCreate(577.000000, 325.000000, "]");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 0);
TextDrawLetterSize(Textdraw9, 0.310000, 1.100000);
TextDrawColor(Textdraw9, -65281);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
Textdraw10 = TextDrawCreate(577.000000, 335.000000, "]");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 0);
TextDrawLetterSize(Textdraw10, 0.310000, 1.100000);
TextDrawColor(Textdraw10, -65281);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
Textdraw11 = TextDrawCreate(577.000000, 344.000000, "]");
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 0);
TextDrawLetterSize(Textdraw11, 0.310000, 1.100000);
TextDrawColor(Textdraw11, -65281);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
Textdraw12 = TextDrawCreate(567.000000, 305.000000, "]");
TextDrawBackgroundColor(Textdraw12, 255);
TextDrawFont(Textdraw12, 0);
TextDrawLetterSize(Textdraw12, 0.310000, 1.100000);
TextDrawColor(Textdraw12, -65281);
TextDrawSetOutline(Textdraw12, 0);
TextDrawSetProportional(Textdraw12, 1);
TextDrawSetShadow(Textdraw12, 1);
Textdraw13 = TextDrawCreate(566.000000, 315.000000, "]");
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 0);
TextDrawLetterSize(Textdraw13, 0.310000, 1.100000);
TextDrawColor(Textdraw13, -65281);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 1);
Textdraw14 = TextDrawCreate(555.000000, 315.000000, "]");
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 0);
TextDrawLetterSize(Textdraw14, 0.310000, 1.100000);
TextDrawColor(Textdraw14, -65281);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);
Textdraw15 = TextDrawCreate(567.000000, 325.000000, "]");
TextDrawBackgroundColor(Textdraw15, 255);
TextDrawFont(Textdraw15, 0);
TextDrawLetterSize(Textdraw15, 0.310000, 1.100000);
TextDrawColor(Textdraw15, -65281);
TextDrawSetOutline(Textdraw15, 0);
TextDrawSetProportional(Textdraw15, 1);
TextDrawSetShadow(Textdraw15, 1);
Textdraw16 = TextDrawCreate(556.000000, 325.000000, "]");
TextDrawBackgroundColor(Textdraw16, 255);
TextDrawFont(Textdraw16, 0);
TextDrawLetterSize(Textdraw16, 0.310000, 1.100000);
TextDrawColor(Textdraw16, -65281);
TextDrawSetOutline(Textdraw16, 0);
TextDrawSetProportional(Textdraw16, 1);
TextDrawSetShadow(Textdraw16, 1);
Textdraw17 = TextDrawCreate(546.000000, 325.000000, "]");
TextDrawBackgroundColor(Textdraw17, 255);
TextDrawFont(Textdraw17, 0);
TextDrawLetterSize(Textdraw17, 0.310000, 1.100000);
TextDrawColor(Textdraw17, -65281);
TextDrawSetOutline(Textdraw17, 0);
TextDrawSetProportional(Textdraw17, 1);
TextDrawSetShadow(Textdraw17, 1);
Textdraw18 = TextDrawCreate(567.000000, 335.000000, "]");
TextDrawBackgroundColor(Textdraw18, 255);
TextDrawFont(Textdraw18, 0);
TextDrawLetterSize(Textdraw18, 0.310000, 1.100000);
TextDrawColor(Textdraw18, -65281);
TextDrawSetOutline(Textdraw18, 0);
TextDrawSetProportional(Textdraw18, 1);
TextDrawSetShadow(Textdraw18, 1);
Textdraw19 = TextDrawCreate(557.000000, 335.000000, "]");
TextDrawBackgroundColor(Textdraw19, 255);
TextDrawFont(Textdraw19, 0);
TextDrawLetterSize(Textdraw19, 0.310000, 1.100000);
TextDrawColor(Textdraw19, -65281);
TextDrawSetOutline(Textdraw19, 0);
TextDrawSetProportional(Textdraw19, 1);
TextDrawSetShadow(Textdraw19, 1);
Textdraw20 = TextDrawCreate(547.000000, 335.000000, "]");
TextDrawBackgroundColor(Textdraw20, 255);
TextDrawFont(Textdraw20, 0);
TextDrawLetterSize(Textdraw20, 0.310000, 1.100000);
TextDrawColor(Textdraw20, -65281);
TextDrawSetOutline(Textdraw20, 0);
TextDrawSetProportional(Textdraw20, 1);
TextDrawSetShadow(Textdraw20, 1);
Textdraw21 = TextDrawCreate(537.000000, 335.000000, "]");
TextDrawBackgroundColor(Textdraw21, 255);
TextDrawFont(Textdraw21, 0);
TextDrawLetterSize(Textdraw21, 0.310000, 1.100000);
TextDrawColor(Textdraw21, -65281);
TextDrawSetOutline(Textdraw21, 0);
TextDrawSetProportional(Textdraw21, 1);
TextDrawSetShadow(Textdraw21, 1);
Textdraw22 = TextDrawCreate(567.000000, 344.000000, "]");
TextDrawBackgroundColor(Textdraw22, 255);
TextDrawFont(Textdraw22, 0);
TextDrawLetterSize(Textdraw22, 0.310000, 1.100000);
TextDrawColor(Textdraw22, -65281);
TextDrawSetOutline(Textdraw22, 0);
TextDrawSetProportional(Textdraw22, 1);
TextDrawSetShadow(Textdraw22, 1);
Textdraw23 = TextDrawCreate(557.000000, 344.000000, "]");
TextDrawBackgroundColor(Textdraw23, 255);
TextDrawFont(Textdraw23, 0);
TextDrawLetterSize(Textdraw23, 0.310000, 1.100000);
TextDrawColor(Textdraw23, -65281);
TextDrawSetOutline(Textdraw23, 0);
TextDrawSetProportional(Textdraw23, 1);
TextDrawSetShadow(Textdraw23, 1);
Textdraw24 = TextDrawCreate(547.000000, 344.000000, "]");
TextDrawBackgroundColor(Textdraw24, 255);
TextDrawFont(Textdraw24, 0);
TextDrawLetterSize(Textdraw24, 0.310000, 1.100000);
TextDrawColor(Textdraw24, -65281);
TextDrawSetOutline(Textdraw24, 0);
TextDrawSetProportional(Textdraw24, 1);
TextDrawSetShadow(Textdraw24, 1);
Textdraw25 = TextDrawCreate(537.000000, 344.000000, "]");
TextDrawBackgroundColor(Textdraw25, 255);
TextDrawFont(Textdraw25, 0);
TextDrawLetterSize(Textdraw25, 0.310000, 1.100000);
TextDrawColor(Textdraw25, -65281);
TextDrawSetOutline(Textdraw25, 0);
TextDrawSetProportional(Textdraw25, 1);
TextDrawSetShadow(Textdraw25, 1);
Textdraw26 = TextDrawCreate(526.000000, 344.000000, "]");
TextDrawBackgroundColor(Textdraw26, 255);
TextDrawFont(Textdraw26, 0);
TextDrawLetterSize(Textdraw26, 0.310000, 1.100000);
TextDrawColor(Textdraw26, -65281);
TextDrawSetOutline(Textdraw26, 0);
TextDrawSetProportional(Textdraw26, 1);
TextDrawSetShadow(Textdraw26, 1);
Textdraw27 = TextDrawCreate(437.000000, 295.000000, "10");
TextDrawBackgroundColor(Textdraw27, 255);
TextDrawFont(Textdraw27, 1);
TextDrawLetterSize(Textdraw27, 0.310000, 1.100000);
TextDrawColor(Textdraw27, -8388353);
TextDrawSetOutline(Textdraw27, 0);
TextDrawSetProportional(Textdraw27, 1);
TextDrawSetShadow(Textdraw27, 1);
Textdraw28 = TextDrawCreate(437.000000, 304.000000, "10000");
TextDrawBackgroundColor(Textdraw28, 255);
TextDrawFont(Textdraw28, 1);
TextDrawLetterSize(Textdraw28, 0.310000, 1.100000);
TextDrawColor(Textdraw28, -8388353);
TextDrawSetOutline(Textdraw28, 0);
TextDrawSetProportional(Textdraw28, 1);
TextDrawSetShadow(Textdraw28, 1);
Textdraw29 = TextDrawCreate(437.000000, 313.000000, "15000");
TextDrawBackgroundColor(Textdraw29, 255);
TextDrawFont(Textdraw29, 1);
TextDrawLetterSize(Textdraw29, 0.310000, 1.100000);
TextDrawColor(Textdraw29, -8388353);
TextDrawSetOutline(Textdraw29, 0);
TextDrawSetProportional(Textdraw29, 1);
TextDrawSetShadow(Textdraw29, 1);
Textdraw30 = TextDrawCreate(437.000000, 322.000000, "20000");
TextDrawBackgroundColor(Textdraw30, 255);
TextDrawFont(Textdraw30, 1);
TextDrawLetterSize(Textdraw30, 0.310000, 1.100000);
TextDrawColor(Textdraw30, -8388353);
TextDrawSetOutline(Textdraw30, 0);
TextDrawSetProportional(Textdraw30, 1);
TextDrawSetShadow(Textdraw30, 1);
Textdraw31 = TextDrawCreate(437.000000, 331.000000, "25000");
TextDrawBackgroundColor(Textdraw31, 255);
TextDrawFont(Textdraw31, 1);
TextDrawLetterSize(Textdraw31, 0.310000, 1.100000);
TextDrawColor(Textdraw31, -8388353);
TextDrawSetOutline(Textdraw31, 0);
TextDrawSetProportional(Textdraw31, 1);
TextDrawSetShadow(Textdraw31, 1);
Textdraw32 = TextDrawCreate(437.000000, 340.000000, "30000");
TextDrawBackgroundColor(Textdraw32, 255);
TextDrawFont(Textdraw32, 1);
TextDrawLetterSize(Textdraw32, 0.310000, 1.100000);
TextDrawColor(Textdraw32, -8388353);
TextDrawSetOutline(Textdraw32, 0);
TextDrawSetProportional(Textdraw32, 1);
TextDrawSetShadow(Textdraw32, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Textdraw6);
TextDrawShowForPlayer(i, Textdraw7);
TextDrawShowForPlayer(i, Textdraw8);
TextDrawShowForPlayer(i, Textdraw9);
TextDrawShowForPlayer(i, Textdraw10);
TextDrawShowForPlayer(i, Textdraw11);
TextDrawShowForPlayer(i, Textdraw12);
TextDrawShowForPlayer(i, Textdraw13);
TextDrawShowForPlayer(i, Textdraw14);
TextDrawShowForPlayer(i, Textdraw15);
TextDrawShowForPlayer(i, Textdraw16);
TextDrawShowForPlayer(i, Textdraw17);
TextDrawShowForPlayer(i, Textdraw18);
TextDrawShowForPlayer(i, Textdraw19);
TextDrawShowForPlayer(i, Textdraw20);
TextDrawShowForPlayer(i, Textdraw21);
TextDrawShowForPlayer(i, Textdraw22);
TextDrawShowForPlayer(i, Textdraw23);
TextDrawShowForPlayer(i, Textdraw24);
TextDrawShowForPlayer(i, Textdraw25);
TextDrawShowForPlayer(i, Textdraw26);
TextDrawShowForPlayer(i, Textdraw27);
TextDrawShowForPlayer(i, Textdraw28);
TextDrawShowForPlayer(i, Textdraw29);
TextDrawShowForPlayer(i, Textdraw30);
TextDrawShowForPlayer(i, Textdraw31);
TextDrawShowForPlayer(i, Textdraw32);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawDestroy(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawDestroy(Textdraw4);
TextDrawHideForAll(Textdraw5);
TextDrawDestroy(Textdraw5);
TextDrawHideForAll(Textdraw6);
TextDrawDestroy(Textdraw6);
TextDrawHideForAll(Textdraw7);
TextDrawDestroy(Textdraw7);
TextDrawHideForAll(Textdraw8);
TextDrawDestroy(Textdraw8);
TextDrawHideForAll(Textdraw9);
TextDrawDestroy(Textdraw9);
TextDrawHideForAll(Textdraw10);
TextDrawDestroy(Textdraw10);
TextDrawHideForAll(Textdraw11);
TextDrawDestroy(Textdraw11);
TextDrawHideForAll(Textdraw12);
TextDrawDestroy(Textdraw12);
TextDrawHideForAll(Textdraw13);
TextDrawDestroy(Textdraw13);
TextDrawHideForAll(Textdraw14);
TextDrawDestroy(Textdraw14);
TextDrawHideForAll(Textdraw15);
TextDrawDestroy(Textdraw15);
TextDrawHideForAll(Textdraw16);
TextDrawDestroy(Textdraw16);
TextDrawHideForAll(Textdraw17);
TextDrawDestroy(Textdraw17);
TextDrawHideForAll(Textdraw18);
TextDrawDestroy(Textdraw18);
TextDrawHideForAll(Textdraw19);
TextDrawDestroy(Textdraw19);
TextDrawHideForAll(Textdraw20);
TextDrawDestroy(Textdraw20);
TextDrawHideForAll(Textdraw21);
TextDrawDestroy(Textdraw21);
TextDrawHideForAll(Textdraw22);
TextDrawDestroy(Textdraw22);
TextDrawHideForAll(Textdraw23);
TextDrawDestroy(Textdraw23);
TextDrawHideForAll(Textdraw24);
TextDrawDestroy(Textdraw24);
TextDrawHideForAll(Textdraw25);
TextDrawDestroy(Textdraw25);
TextDrawHideForAll(Textdraw26);
TextDrawDestroy(Textdraw26);
TextDrawHideForAll(Textdraw27);
TextDrawDestroy(Textdraw27);
TextDrawHideForAll(Textdraw28);
TextDrawDestroy(Textdraw28);
TextDrawHideForAll(Textdraw29);
TextDrawDestroy(Textdraw29);
TextDrawHideForAll(Textdraw30);
TextDrawDestroy(Textdraw30);
TextDrawHideForAll(Textdraw31);
TextDrawDestroy(Textdraw31);
TextDrawHideForAll(Textdraw32);
TextDrawDestroy(Textdraw32);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw9);
TextDrawShowForPlayer(playerid, Textdraw10);
TextDrawShowForPlayer(playerid, Textdraw11);
TextDrawShowForPlayer(playerid, Textdraw12);
TextDrawShowForPlayer(playerid, Textdraw13);
TextDrawShowForPlayer(playerid, Textdraw14);
TextDrawShowForPlayer(playerid, Textdraw15);
TextDrawShowForPlayer(playerid, Textdraw16);
TextDrawShowForPlayer(playerid, Textdraw17);
TextDrawShowForPlayer(playerid, Textdraw18);
TextDrawShowForPlayer(playerid, Textdraw19);
TextDrawShowForPlayer(playerid, Textdraw20);
TextDrawShowForPlayer(playerid, Textdraw21);
TextDrawShowForPlayer(playerid, Textdraw22);
TextDrawShowForPlayer(playerid, Textdraw23);
TextDrawShowForPlayer(playerid, Textdraw24);
TextDrawShowForPlayer(playerid, Textdraw25);
TextDrawShowForPlayer(playerid, Textdraw26);
TextDrawShowForPlayer(playerid, Textdraw27);
TextDrawShowForPlayer(playerid, Textdraw28);
TextDrawShowForPlayer(playerid, Textdraw29);
TextDrawShowForPlayer(playerid, Textdraw30);
TextDrawShowForPlayer(playerid, Textdraw31);
TextDrawShowForPlayer(playerid, Textdraw32);
return 1;
}
muchas gracias