28.07.2011, 07:55
THX you Nero_3D
All is work now.Just now i want to do with 3dtextlabel i do this timer when player mute player:
MuteLeft[MuteID] = SetTimerEx("MuteShow",1000,true,"i",MuteID);
forward MuteShow(playerid);
public MuteShow(playerid)
{
if(PlayerData[playerid][muted] == 1)
{
new Tekstas[10];
format(Tekstas,sizeof(Tekstas),"Mute %d",((PlayerData[playerid][muted] - GetTickCount()) / 1000));
SeeMute[playerid] = Create3DTextLabel(Tekstas, 0xFF0000FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(SeeMute[playerid], playerid, 0.0, 0.0, 0.7);
}
else
KillTimer(MuteLeft[playerid]);
}
And why when i mute player,player don't get 3dtextlabel
All is work now.Just now i want to do with 3dtextlabel i do this timer when player mute player:
MuteLeft[MuteID] = SetTimerEx("MuteShow",1000,true,"i",MuteID);
forward MuteShow(playerid);
public MuteShow(playerid)
{
if(PlayerData[playerid][muted] == 1)
{
new Tekstas[10];
format(Tekstas,sizeof(Tekstas),"Mute %d",((PlayerData[playerid][muted] - GetTickCount()) / 1000));
SeeMute[playerid] = Create3DTextLabel(Tekstas, 0xFF0000FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(SeeMute[playerid], playerid, 0.0, 0.0, 0.7);
}
else
KillTimer(MuteLeft[playerid]);
}
And why when i mute player,player don't get 3dtextlabel
