PHP код:
CMD:qdm(playerid)
{
if(moneybagdm[playerid] == 0) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You must in a deathmatch to use this command.");
if(minigundm[playerid] == 0) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You must in a deathmatch to use this command.");
if(rpgdm[playerid] == 0) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You must in a deathmatch to use this command.");
if(sniperdm[playerid] == 0) return SendClientMessage(playerid, COLOR_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(playerid, COLOR_FIREBRICK, "ERROR: You must in a deathmatch to use this command.");
if(moneybagdm[playerid] == 1)
{
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
SetPlayerTeam(playerid, gPlayerTeam[playerid]);
SetPlayerHealth(playerid, 0.0);
}
if(minigundm[playerid] == 1)
{
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
SetPlayerTeam(playerid, gPlayerTeam[playerid]);
SetPlayerHealth(playerid, 0.0);
}
if(rpgdm[playerid] == 1)
{
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
SetPlayerTeam(playerid, gPlayerTeam[playerid]);
SetPlayerHealth(playerid, 0.0);
}
if(sniperdm[playerid] == 1)
{
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
SetPlayerTeam(playerid, gPlayerTeam[playerid]);
SetPlayerHealth(playerid, 0.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(playerid, gPlayerTeam[playerid]);
SetPlayerHealth(playerid, 0.0);
}
return 1;
}
PHP код:
CMD:qdm(playerid)
{
if(!moneybagdm[playerid] && !minigundm[playerid] && !rpgdm[playerid] && !sniperdm[playerid]
&& !jungledm[playerid] && !cbugdm[playerid]) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You must in a deathmatch to use this command.");
gPlayerSkin[playerid] = gTeam[gPlayerTeam[playerid]][TeamSkin];
SetPlayerTeam(playerid, gPlayerTeam[playerid]);
SetPlayerHealth(playerid, 0.0);
return 1;
}
p.s.