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


Messages In This Thread
an command /qdm not working - by Jokers98s - 28.12.2017, 12:50
Re: an command /qdm not working - by Argument - 28.12.2017, 13:51

Forum Jump:


Users browsing this thread: 2 Guest(s)