28.12.2017, 12:50
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;
}