21.08.2015, 16:45
(
Последний раз редактировалось JeaSon; 21.08.2015 в 17:33.
)
well problem is its not showing when player die
PHP код:
public OnGameModeInit()
{
WastedTextDraws();
return 1;
}
WastedTextDraws()
{
TDEditor_PTD[0] = TextDrawCreate(-117.333343, -119.192596, "ld_spac:black");
TextDrawLetterSize(TDEditor_PTD[0], 0.000000, 0.000000);
TextDrawTextSize(TDEditor_PTD[0], 914.333129, 783.984985);
TextDrawAlignment(TDEditor_PTD[0], 1);
TextDrawColor(TDEditor_PTD[0], -186);
TextDrawSetShadow(TDEditor_PTD[0], 0);
TextDrawSetOutline(TDEditor_PTD[0], 0);
TextDrawBackgroundColor(TDEditor_PTD[0], 255);
TextDrawFont(TDEditor_PTD[0], 4);
TextDrawSetProportional(TDEditor_PTD[0], 0);
TextDrawSetShadow(TDEditor_PTD[0], 0);
TDEditor_PTD[1] = TextDrawCreate(320.000000, 190.000000, "eliminado");
TextDrawLetterSize(TDEditor_PTD[1], 0.730997, 3.043555);
TextDrawAlignment(TDEditor_PTD[1] ,2);
TextDrawColor(TDEditor_PTD[1], -76);
TextDrawSetShadow(TDEditor_PTD[1], 0);
TextDrawSetOutline(TDEditor_PTD[1], 0);
TextDrawBackgroundColor(TDEditor_PTD[1], 255);
TextDrawFont(TDEditor_PTD[1], 3);
TextDrawSetProportional(TDEditor_PTD[1], 1);
TextDrawSetShadow(TDEditor_PTD[1], 0);
TDEditor_PTD[2] = TextDrawCreate(-17.666658, 165.300109, "");
TextDrawLetterSize(TDEditor_PTD[2], 0.000000, 0.000000);
TextDrawTextSize(TDEditor_PTD[2], 668.000061, 86.266624);
TextDrawAlignment(TDEditor_PTD[2], 1);
TextDrawColor(TDEditor_PTD[2], 140);
TextDrawSetShadow(TDEditor_PTD[2], 0);
TextDrawSetOutline(TDEditor_PTD[2], 0);
TextDrawBackgroundColor(TDEditor_PTD[2], 0);
TextDrawFont(TDEditor_PTD[2], 5);
TextDrawSetProportional(TDEditor_PTD[2], 0);
TextDrawSetShadow(TDEditor_PTD[2], 0);
TextDrawSetPreviewModel(TDEditor_PTD[2], 19454);
TextDrawSetPreviewRot(TDEditor_PTD[2], 0.000000, 0.000000, 70.000000, 0.375391);
TDEditor_PTD[3] = TextDrawCreate(320.000000, 215.100479, "puto_nub_de_mierda");
TextDrawLetterSize(TDEditor_PTD[3] , 0.352331, 1.583407);
TextDrawAlignment(TDEditor_PTD[3], 2);
TextDrawColor(TDEditor_PTD[3], -2359116);
TextDrawSetShadow(TDEditor_PTD[3], 0);
TextDrawSetOutline(TDEditor_PTD[3], 0);
TextDrawBackgroundColor(TDEditor_PTD[3], 255);
TextDrawFont(TDEditor_PTD[3], 1);
TextDrawSetProportional(TDEditor_PTD[3], 1);
TextDrawSetShadow(TDEditor_PTD[3], 0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
TextDrawShowForPlayer(playerid, TDEditor_PTD[0]);
TextDrawShowForPlayer(playerid, TDEditor_PTD[1]);
TextDrawShowForPlayer(playerid, TDEditor_PTD[2]);
TextDrawShowForPlayer(playerid, TDEditor_PTD[3]);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, TDEditor_PTD[3]);
TextDrawHideForPlayer(playerid, TDEditor_PTD[0]);
TextDrawHideForPlayer(playerid, TDEditor_PTD[1]);
TextDrawHideForPlayer(playerid, TDEditor_PTD[2]);
return 1;
}