13.09.2014, 14:25
Hola me gustaria si me pueden decir para que cuando un admin este en Modo Dios(Duty) Y mate con cualquier arma estando en ese modo de UNFAIR KILL al otro player , y cuando se lo saque y vuelva a estar normal y pueda matar con normalidad este es el codigo de mi script :
Quote:
dcmd_dios(playerid, params[]) { #pragma unused params if(pInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE""); if(aduty[playerid] == 0) { new Float:dutyhp; new Float:dutyarmour; pDutyHealth[playerid] = GetPlayerHealth(playerid, dutyhp); pDutyArmour[playerid] = GetPlayerArmour(playerid, dutyarmour); SCM(playerid, COLOR_RED,"* Modo Dios ON."); SetPlayerArmour(playerid, 9999999999); SetPlayerHealth(playerid, 999999); oldcolor[playerid]=GetPlayerColor(playerid); SetPlayerColor(playerid, 0x000000FF); GivePlayerWeapon(playerid, 38, 9999999); oldskin[playerid] = GetPlayerSkin(playerid); SetPlayerSkin(playerid, 294); aduty[playerid] =1; } else { SCM(playerid, COLOR_RED,"* Modo Dios OFF."); SetPlayerHealth(playerid, pDutyHealth[playerid]); SetPlayerArmour(playerid, pDutyArmour[playerid]); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, oldskin[playerid]); aduty[playerid] =0; oldskin[playerid] =0; SetPlayerColor(playerid, oldcolor[playerid]); oldcolor[playerid] =0; GivePlayerWeapon(playerid, 9, 99999); GivePlayerWeapon(playerid, 14, 99999); GivePlayerWeapon(playerid, 16, 99999); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 26, 99999); GivePlayerWeapon(playerid, 28, 99999); GivePlayerWeapon(playerid, 31, 99999); GivePlayerWeapon(playerid, 26, 99999); GivePlayerWeapon(playerid, 34, 99999); GivePlayerWeapon(playerid, 38, 99999); GivePlayerWeapon(playerid, 46, 99999); } return 1; } |