26.11.2011, 05:56
(
Последний раз редактировалось Joshb93; 26.11.2011 в 15:36.
)
When i use the command, the textlabel shows up for a few seconds, then disappears, whats wrong?
This is the code:
This is the code:
pawn Код:
CMD:createtl(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new tdtext[128];
if(sscanf(params, "s", tdtext)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createtl [TextLabel Text]");
new Float:tdx, Float:tdy, Float:tdz;
GetPlayerPos(playerid, tdx, tdy, tdz);
format(tdtext, sizeof(tdtext), "%s", tdtext);
Create3DTextLabel(tdtext, COLOR_YELLOW, tdx, tdy, tdz+1.5, 15.0, -1);
}
return 1;
}