05.04.2012, 11:24
hey guys,
i want to make it that when a player says for example HEY it gets showed in the chat box and on the players head, just for 4 or 5 secs it showed and then it gets deleted again.
now i searched on ****** for something like this but it aint working, i now have this:
onplayerspawn
pls help
greets niels
i want to make it that when a player says for example HEY it gets showed in the chat box and on the players head, just for 4 or 5 secs it showed and then it gets deleted again.
now i searched on ****** for something like this but it aint working, i now have this:
onplayerspawn
pawn Код:
Text[playerid]=Create3DTextLabel("Text", COLOR_BLUE, 0, 0, 0, 0, 0, 0);
Attach3DTextLabelToPlayer(Text[playerid], playerid, 0, 0, 2);
SetTimerEx("DelText", 10*1000, false, "d", playerid);
return 1;
pawn Код:
forward DelText(playerid); public DelText(playerid)
{
Delete3DTextLabel(Text[playerid]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(Text[playerid]);
return 1;
}
greets niels