Help about duel and godmode
#7

Is this ok for godmode for normal players too :-

Код:
dcmd_god(playerid,params[])
{
    #pragma unused params
        if(AccInfo[playerid][Level] >= 0
        {
            AccInfo[playerid][God] = 1;
            SetPlayerHealth(playerid,100000);
            ResetPlayerWeapons(playerid); // Resets the player's weapon (Disarm)
            SendClientMessage(playerid,green,"|- GodMod ON -|");
            SendClientMessage(playerid,red,"You cannot use weapons in godmode");
            return SendCommandToAdmins(playerid,"God");
            }
            else
            {
            AccInfo[playerid][God] = 0;
            SendClientMessage(playerid,red,"|- GodMod OFF -|");
            SendClientMessage(playerid,red,"Now you can safely use your weapons");
            SetPlayerHealth(playerid, 100);
        }
        return GivePlayerWeapon(playerid,29,500); (Gives M4 or something while god mode is turned off)
   }
And bro i want normal /duel [playerid] and other player must accept duel to start..

But you are saying to set level of luxadmin duel to 0 it will work but they will do /duel playerid1 playerid2 area

I only want simple /duel in which other player must accept duel to start
Reply


Messages In This Thread
Help about duel and godmode - by vikassharma - 15.02.2014, 09:04
Re: Help about duel and godmode - by Clad - 15.02.2014, 11:02
Re: Help about duel and godmode - by vikassharma - 15.02.2014, 12:14
Re: Help about duel and godmode - by vikassharma - 15.02.2014, 12:16
Re: Help about duel and godmode - by vikassharma - 16.02.2014, 06:07
Re: Help about duel and godmode - by rakshith122 - 16.02.2014, 07:18
Re: Help about duel and godmode - by vikassharma - 16.02.2014, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)