Ipleomax Textdraw Show
#1

hi im using ipleomax and it workks fine. but i cant make it work Like GameTextForPlayer it will show only when the player

type cmd /kill will show "You Killed Yourself with transparent box"

and here's the code

Код:
CMD:kill(playerid, params[])
{

SetPlayerHealth(playerid, 0.0);
new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];

Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 641.375000, 237.166671, "usebox");
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 5.516668);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);
PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);
PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);

Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 243.125000, 253.166748, "You Killed Yourself!");
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw1[playerid], 16711935);
PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 3);
PlayerTextDrawBackgroundColor(playerid, Textdraw1[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw1[playerid], 1);
PlayerTextDrawSetProportional(playerid, Textdraw1[playerid], 1);

return true;
}
But there's no text or box showing
Reply
#2

anybody??
Reply
#3

you are not even trying to show them, try doing this :
PHP код:
//These must be outside ! in top of gamemode
new PlayerText:Textdraw0[MAX_PLAYERS];
new 
PlayerText:Textdraw1[MAX_PLAYERS];
//
CMD:kill(playeridparams[])
{
SetPlayerHealth(playerid0.0);
Textdraw0[playerid] = CreatePlayerTextDraw(playerid641.375000237.166671"usebox");
PlayerTextDrawLetterSize(playeridTextdraw0[playerid], 0.0000005.516668);
PlayerTextDrawTextSize(playeridTextdraw0[playerid], -2.0000000.000000);
PlayerTextDrawAlignment(playeridTextdraw0[playerid], 1);
PlayerTextDrawColor(playeridTextdraw0[playerid], 0);
PlayerTextDrawUseBox(playeridTextdraw0[playerid], true);
PlayerTextDrawBoxColor(playeridTextdraw0[playerid], 102);
PlayerTextDrawSetShadow(playeridTextdraw0[playerid], 0);
PlayerTextDrawSetOutline(playeridTextdraw0[playerid], 0);
PlayerTextDrawFont(playeridTextdraw0[playerid], 0);
PlayerTextDrawShow(playeridTextdraw0[playerid]);
Textdraw1[playerid] = CreatePlayerTextDraw(playerid243.125000253.166748"You Killed Yourself!");
PlayerTextDrawLetterSize(playeridTextdraw1[playerid], 0.4499991.600000);
PlayerTextDrawAlignment(playeridTextdraw1[playerid], 1);
PlayerTextDrawColor(playeridTextdraw1[playerid], 16711935);
PlayerTextDrawSetShadow(playeridTextdraw1[playerid], 0);
PlayerTextDrawSetOutline(playeridTextdraw1[playerid], 3);
PlayerTextDrawBackgroundColor(playeridTextdraw1[playerid], 51);
PlayerTextDrawFont(playeridTextdraw1[playerid], 1);
PlayerTextDrawSetProportional(playeridTextdraw1[playerid], 1);
PlayerTextDrawShow(playeridTextdraw1[playerid]);
return 
true;

I added playertextdrawshow.
Also, the new must be on top of ur gamemode
Reply
#4

Ahh ok gonna try that ^
Reply
#5

WOW ! its works! but not hidding ?

EDIT : btw i fix already heheh you earn rep! ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)