[Help] Delete3DTextLabel
#1

When i'm in duty, the text label show, but when i put the command again, to back to the player mode, the Text Label dont delete, someone know why?

PHP код:
ACMD:admin[1](playeridparams[])
{
    if(
GetPlayerAdminLevel(playerid) < 2)
        return 
Msg(playeridRED"[ > ] Vocк nгo tem permissгo para usar este comando.");
    new 
name[MAX_PLAYER_NAME];
    new 
Text3D:label Create3DTextLabel("Admin"0x33CCFFFF30.040.050.010.00);
    
GetPlayerName(playeridnamesizeof(name));
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
    {
        
Msg(playeridRED"[ > ] Vocк nгo pode fazer isso enquanto estб espiando!");
        return 
1;
    }
    if(!
IsPlayerOnAdminDuty(playerid))
    {
        
TogglePlayerAdminDuty(playeridtrue);
        
MsgAdminsF(1NovoA"[ > ] O(a) Administrador(a){FFFFFF} %s {00c0ff}saiu do modo jogador!"name);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.2);
    }
    else
    {
        
TogglePlayerAdminDuty(playeridfalse);
        
MsgAdminsF(1NovoA"[ > ] O(a) Administrador(a){FFFFFF} %s {00c0ff}entrou no modo jogador!"name);
           
Delete3DTextLabel(label);
    }
    return 
1;

Reply


Messages In This Thread
[Help] Delete3DTextLabel - by ApolloScripter - 26.11.2018, 20:47
Re: [Help] Delete3DTextLabel - by ApolloScripter - 27.11.2018, 15:50
Re: [Help] Delete3DTextLabel - by Kane - 27.11.2018, 15:59
Re: [Help] Delete3DTextLabel - by ApolloScripter - 27.11.2018, 16:24
Re: [Help] Delete3DTextLabel - by ApolloScripter - 27.11.2018, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)