SA-MP Forums Archive
an command /qdm not working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: an command /qdm not working (/showthread.php?tid=647018)



an command /qdm not working - Jokers98s - 28.12.2017

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


Re: an command /qdm not working - Argument - 28.12.2017

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