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;
}