27.07.2015, 11:35
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
But there's no text or box showing
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; }