Not working online
#7

pawn Код:
CMD:akill(playerid, params[])
{
    if(Player_Data[playerid][Adminlevel] >=4)
    {
        if(sscanf(params, "u[50]", pid)) return SCM(playerid, GREY, "[SERVER]: /akill [playerid/name]");
        if(pid != playerid)
        {
            if(pid != INVALID_PLAYER_ID)
            {
                if(Player_Data[playerid][Adminlevel] < Player_Data[pid][Adminlevel]) return SCM(playerid, RED, "You can't akill an admin with a higher level than you.");
                format(string2, sizeof(string2), "Admin %s has akilled %s.", PlayerName(playerid), PlayerIDName(pid));
                SCMTA(RED, string2);
                SetPlayerHealth(pid, 0.0);
            }
            else return SCM(playerid, GREY, "That player isn't connected.");
        }
        else return SCM(playerid, RED, "You can not akill yourself");
    }
    else return SCM(playerid, GREY, UNAUTHORIZED);
    return 1;
}
Reply


Messages In This Thread
Not working online [FIXED] - by Duck4coder - 02.02.2014, 01:09
Re: Not working online - by CuervO - 02.02.2014, 01:16
Re: Not working online - by Borg - 02.02.2014, 01:18
Re: Not working online - by CuervO - 02.02.2014, 01:48
Re: Not working online - by Duck4coder - 02.02.2014, 02:38
Re: Not working online - by Duck4coder - 02.02.2014, 03:49
Re: Not working online - by Don_Cage - 02.02.2014, 04:05
Re: Not working online - by Duck4coder - 02.02.2014, 21:17

Forum Jump:


Users browsing this thread: 2 Guest(s)