22.02.2012, 03:57
Hola tengo probelas con creear este textdraw
Solo quiero que
del textdraw No[1]: al No[10]:
cuente el nombre y el los kills que se hicieron en la ronda
no quiero q se guarde solo quiero q cuando se ha cave la ronda
cuente cuantos kills el jugador causo
ayuda
Solo quiero que
del textdraw No[1]: al No[10]:
cuente el nombre y el los kills que se hicieron en la ronda
no quiero q se guarde solo quiero q cuando se ha cave la ronda
cuente cuantos kills el jugador causo
ayuda
pawn Код:
#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;
public OnFilterScriptInit()
{
// Crear los textdraws:
Textdraw0 = TextDrawCreate(192.000000, 117.000000, "TOP KILLERS/MATONES");
TextDrawBackgroundColor(Textdraw0, 65535);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 384.000000, 0.000000);
Textdraw1 = TextDrawCreate(62.000000, 131.000000, "Name/Nombre Kills");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 537.000000, 0.000000);
Textdraw2 = TextDrawCreate(62.000000, 142.000000, "No[1]:");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 255);
TextDrawTextSize(Textdraw2, 537.000000, 0.000000);
Textdraw3 = TextDrawCreate(62.000000, 153.000000, "No[2]:");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 255);
TextDrawTextSize(Textdraw3, 537.000000, 0.000000);
Textdraw4 = TextDrawCreate(62.000000, 163.000000, "No[3]:");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 255);
TextDrawTextSize(Textdraw4, 537.000000, 0.000000);
Textdraw5 = TextDrawCreate(62.000000, 173.000000, "No[4]:");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 255);
TextDrawTextSize(Textdraw5, 537.000000, 0.000000);
Textdraw6 = TextDrawCreate(62.000000, 183.000000, "No[5]:");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 255);
TextDrawTextSize(Textdraw6, 537.000000, 0.000000);
Textdraw7 = TextDrawCreate(62.000000, 193.000000, "No[6]:");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 255);
TextDrawTextSize(Textdraw7, 537.000000, 0.000000);
Textdraw8 = TextDrawCreate(62.000000, 203.000000, "No[7]:");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
TextDrawUseBox(Textdraw8, 1);
TextDrawBoxColor(Textdraw8, 255);
TextDrawTextSize(Textdraw8, 537.000000, 0.000000);
Textdraw9 = TextDrawCreate(62.000000, 213.000000, "No[8]:");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 0.500000, 1.000000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
TextDrawUseBox(Textdraw9, 1);
TextDrawBoxColor(Textdraw9, 255);
TextDrawTextSize(Textdraw9, 537.000000, 0.000000);
Textdraw10 = TextDrawCreate(62.000000, 223.000000, "No[9]:");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 1);
TextDrawLetterSize(Textdraw10, 0.500000, 1.000000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
TextDrawUseBox(Textdraw10, 1);
TextDrawBoxColor(Textdraw10, 255);
TextDrawTextSize(Textdraw10, 537.000000, 0.000000);
Textdraw11 = TextDrawCreate(62.000000, 233.000000, "No[10]:");
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 1);
TextDrawLetterSize(Textdraw11, 0.500000, 1.000000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
TextDrawUseBox(Textdraw11, 1);
TextDrawBoxColor(Textdraw11, 255);
TextDrawTextSize(Textdraw11, 537.000000, 0.000000);
Textdraw12 = TextDrawCreate(54.000000, 66.000000, "[");
TextDrawBackgroundColor(Textdraw12, 255);
TextDrawFont(Textdraw12, 1);
TextDrawLetterSize(Textdraw12, 0.500000, 21.900011);
TextDrawColor(Textdraw12, -65281);
TextDrawSetOutline(Textdraw12, 1);
TextDrawSetProportional(Textdraw12, 0);
Textdraw13 = TextDrawCreate(537.000000, 61.000000, "]");
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 1);
TextDrawLetterSize(Textdraw13, 0.500000, 22.299993);
TextDrawColor(Textdraw13, -65281);
TextDrawSetOutline(Textdraw13, 1);
TextDrawSetProportional(Textdraw13, 1);
Textdraw14 = TextDrawCreate(380.000000, 130.000000, "[grove]");
TextDrawBackgroundColor(Textdraw14, 16777215);
TextDrawFont(Textdraw14, 1);
TextDrawLetterSize(Textdraw14, 0.490000, 1.799998);
TextDrawColor(Textdraw14, 65535);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);
Textdraw15 = TextDrawCreate(425.000000, 140.000000, "number");
TextDrawBackgroundColor(Textdraw15, 16711935);
TextDrawFont(Textdraw15, 1);
TextDrawLetterSize(Textdraw15, 0.519999, 3.000000);
TextDrawColor(Textdraw15, -1);
TextDrawSetOutline(Textdraw15, 1);
TextDrawSetProportional(Textdraw15, 1);
Textdraw16 = TextDrawCreate(408.000000, 190.000000, "By: [INK]");
TextDrawBackgroundColor(Textdraw16, -65281);
TextDrawFont(Textdraw16, 2);
TextDrawLetterSize(Textdraw16, 0.500000, 2.599999);
TextDrawColor(Textdraw16, 16777215);
TextDrawSetOutline(Textdraw16, 1);
TextDrawSetProportional(Textdraw16, 1);
Textdraw17 = TextDrawCreate(98.000000, 248.000000, "Cargando el sigiente Mapa / Loading next Map");
TextDrawBackgroundColor(Textdraw17, -1);
TextDrawFont(Textdraw17, 1);
TextDrawLetterSize(Textdraw17, 0.500000, 2.099999);
TextDrawColor(Textdraw17, -16776961);
TextDrawSetOutline(Textdraw17, 1);
TextDrawSetProportional(Textdraw17, 1);
TextDrawUseBox(Textdraw17, 1);
TextDrawBoxColor(Textdraw17, 255);
TextDrawTextSize(Textdraw17, 505.000000, -20.000000);
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);
}
}
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);
return 1;
}
public OnPlayerDesnect(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);
return 1;
}