an command /qdm not working
#1

PHP код:
CMD:qdm(playerid)
{
    if(
moneybagdm[playerid] == 0) return SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You must in a deathmatch to use this command.");
    if(
minigundm[playerid] == 0) return SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You must in a deathmatch to use this command.");
    if(
rpgdm[playerid] == 0) return SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You must in a deathmatch to use this command.");
    if(
sniperdm[playerid] == 0) return SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You must in a deathmatch to use this command.");
    
//if(jungledm[playerid] == 0) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You must in a deathmatch to use this command.");
    
if(cbugdm[playerid] == 0) return SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You must in a deathmatch to use this command.");
     if(
moneybagdm[playerid] == 1)
     {
         
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
        
SetPlayerTeam(playeridgPlayerTeam[playerid]);
        
SetPlayerHealth(playerid0.0);
    }
    if(
minigundm[playerid] == 1)
       {
         
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
        
SetPlayerTeam(playeridgPlayerTeam[playerid]);
        
SetPlayerHealth(playerid0.0);
    }
    if(
rpgdm[playerid] == 1)
       {
         
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
        
SetPlayerTeam(playeridgPlayerTeam[playerid]);
        
SetPlayerHealth(playerid0.0);
    }
    if(
sniperdm[playerid] == 1
     {
         
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
        
SetPlayerTeam(playeridgPlayerTeam[playerid]);
        
SetPlayerHealth(playerid0.0);
    }
    
/*if(jungledm[playerid] == 1) 
     {
         gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
        SetPlayerTeam(playerid, gPlayerTeam[playerid]);
        SetPlayerHealth(playerid, 0.0);
    }*/
    
if(cbugdm[playerid] == 1)
     {
         
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
        
SetPlayerTeam(playeridgPlayerTeam[playerid]);
        
SetPlayerHealth(playerid0.0);
    }
    return 
1;

this not executing
Reply
#2

PHP код:
CMD:qdm(playerid)
{
    if(!
moneybagdm[playerid] && !minigundm[playerid] && !rpgdm[playerid] && !sniperdm[playerid
    && !
jungledm[playerid] && !cbugdm[playerid]) return SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You must in a deathmatch to use this command.");
    
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
    
SetPlayerTeam(playeridgPlayerTeam[playerid]);
    
SetPlayerHealth(playerid0.0);
    return 
1;

if I get you right
p.s. !moneybagdm[playerid] => moneybagdm[playerid] == 0
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)