[HELP] Dynamic 3d text labels
#1

Hello I have this huge problem so when player enter in death match zone area then ge get dynamic 3d text label for example if he choose in dialog blue tim then he get dynamic label blue team, and know the problem is when player leave death match zone area /dmzexit then label it should destroy but the label stay it isn't destroyed?
Reply
#2

I don't understand exactly.
Reply
#3

Are you serious?
Do you expect us to magically figure out your problem without seeing any of your code?

Show us the code where the player gets the 3DTextLabel assigned to him.
Reply
#4

You need to use DestroyDynamic3DTextLabel when they leave the death match zone.
Reply
#5

Yes I have all of that, look command /dmzexit.Thanks

pawn Code:
CMD:dmzexit(playerid,params[])
{
    switch(PlayerInfo[playerid][pDM])
    {
        case 1:
        {
            SetPlayerSkin(playerid,StariSkin[playerid]);
            PlayerInfo[playerid][pDM] = 0;
            IgracUZoni[playerid] = 0;
            SendClientMessage(playerid,SVIJETLOPLAVA,"[OOC DM Zona] {FFFFFF}Napustili ste OOC DM Zonu.");
            SetPlayerPos_H(playerid,57.5926,2299.3740,21.7211);
            ResetPlayerWeapons(playerid);
            DestroyDynamic3DTextLabel(timplavi[playerid]);
            timpl[playerid] = 0;
            DMBjezanjeOtkriveno[playerid] = 0;
            KillTimer(dmztajmer[playerid]);
            KillTimer(dmztimer[playerid]);
        }
        case 2:
        {
            SetPlayerSkin(playerid,StariSkin[playerid]);
            PlayerInfo[playerid][pDM] = 0;
            IgracUZoni[playerid] = 0;
            SendClientMessage(playerid,SVIJETLOPLAVA,"[OOC DM Zona] {FFFFFF}Napustili ste OOC DM Zonu.");
            SetPlayerPos_H(playerid,57.5926,2299.3740,21.7211);
            ResetPlayerWeapons(playerid);
            DestroyDynamic3DTextLabel(timcrveni[playerid]);
            timcr[playerid] = 0;
            DMBjezanjeOtkriveno[playerid] = 0;
            KillTimer(dmztajmer[playerid]);
            KillTimer(dmztimer[playerid]);
        }
        default: SCM(playerid,GRAD2,"{F81414}[Greska!] {C3C3C3}Ne mozete koristiti ovu komandu jel ne igrate u dm zoni!");
    }
    return 1;
}
and of course in this code player get's dynamic3dtextlabel:

pawn Code:
if(dialogid == DM_ZONA)
    {
        if(response)
        {
            if(listitem == 0)
            {
                StariSkin[playerid] = GetPlayerSkin(playerid);
                PlayerInfo[playerid][pDM] = 1;
                SendClientMessage(playerid,ZUTA,"Usli ste u Plavi Tim.");
                timplavi[playerid] = CreateDynamic3DTextLabel("(( PLAVI ))",SVIJETLOPLAVA,0.0,0.0,0.6,15.0,playerid,INVALID_VEHICLE_ID,0,-1,-1,-1,100.0);
                timpl[playerid] = 1;
                GivePlayerWeapon(playerid,16,10);
                GivePlayerWeapon(playerid,24,999);
                GivePlayerWeapon(playerid,29,999);
                GivePlayerWeapon(playerid,31,999);
                GivePlayerWeapon(playerid,35,5);
                GivePlayerWeapon(playerid,34,999);
                IgracUZoni[playerid] = 1;
                DMWarAktivan = true;
                SetPlayerPos_H(playerid,424.3157,2536.3532,15.6639);
                PlayerInfo[playerid][pChar] = GetPlayerSkin(playerid);
                SetPlayerSkin(playerid,285);
                dmztimer[playerid] = SetTimerEx("DMtimerrefresh",Sec(4),true,"d",playerid);
                dmztajmer[playerid] = SetTimerEx("ZaustaviDMWar",Sec(25),false,"d",playerid);
            }
            if(listitem == 1)
            {
                StariSkin[playerid] = GetPlayerSkin(playerid);
                PlayerInfo[playerid][pDM] = 2;
                SendClientMessage(playerid,ZUTA,"Usli ste u Crveni Tim.");
                timcrveni[playerid] = CreateDynamic3DTextLabel("(( CRVENI ))",COLOR_LIGHTRED,0.0,0.0,0.6,15.0,playerid,INVALID_VEHICLE_ID,0,-1,-1,-1,100.0);
                timcr[playerid] = 1;
                GivePlayerWeapon(playerid,16,10);
                GivePlayerWeapon(playerid,24,999);
                GivePlayerWeapon(playerid,29,999);
                GivePlayerWeapon(playerid,31,999);
                GivePlayerWeapon(playerid,35,5);
                GivePlayerWeapon(playerid,34,999);
                IgracUZoni[playerid] = 1;
                DMWarAktivan = true;
                SetPlayerPos_H(playerid,-723.9285,2338.4038,126.1309);
                PlayerInfo[playerid][pChar] = GetPlayerSkin(playerid);
                SetPlayerSkin(playerid,287);
                dmztimer[playerid] = SetTimerEx("DMtimerrefresh",Sec(4),true,"d",playerid);
                dmztajmer[playerid] = SetTimerEx("ZaustaviDMWar",Sec(25),false,"d",playerid);
            }
        }
        return 1;
    }
Reply
#6

anyone? thanks
Reply
#7

anyone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)