[HELP] death match zone dynamic's 3dtext labels
#1

Hello since last year I have this problem and I can solve it so let's start in my death match zone exist two teams pDM1 is tim 1 and pDM2 is tim 2 of course and when someone player enter in death match zone then label 3dtext dynamic create perfect no problems but the problem is in moving that the same 3d dynamic text label when player exit from zone then it should be destroyed that label but label stay I have no more idea how to fix it? Please help

I hope so that you know what I want and what is the problem


this is for teams death match zone enter

pawn Код:
if(dialogid == DM_ZONA) // death match zone team one and team two
    {
        if(response)
        {
            if(listitem == 0) // team one
            {
                StariSkin[playerid] = GetPlayerSkin(playerid);
                PlayerInfo[playerid][pDM] = 1;
                SendClientMessage(playerid,ZUTA,"you enter in team 1.");
                timp[playerid] = CreateDynamic3DTextLabel("(( team one ))",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",Min(2),false,"d",playerid);
            }
            if(listitem == 1) // tim two
            {
                StariSkin[playerid] = GetPlayerSkin(playerid);
                PlayerInfo[playerid][pDM] = 2;
                SendClientMessage(playerid,ZUTA,"you enter in tim two");
                timc[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",Min(2),false,"d",playerid);
            }
        }
        return 1;
    }

and know dmexit in this is problem so when player exit from death math zone the label stay but it should be destroyed on exit


pawn Код:
CMD:dmexit(playerid,params[])
{
    switch(PlayerInfo[playerid][pDM])
    {
        case 1: tim one
        {
            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(timp[playerid]);
            timpl[playerid] = 0;
            DMBjezanje[playerid] = 0;
            KillTimer(dmztajmer[playerid]);
            KillTimer(dmztimer[playerid]);
        }
        case 2: tim two
        {
            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(timc[playerid]);
            timcr[playerid] = 0;
            DMBjezanje[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;
}
Reply
#2

anyone? Thanks
Reply
#3

anyone?thanks
Reply
#4

anyone? Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)