[Help] Somethings wrong with my Admin commands?
#1

Hello SAMP members.

I've made this Admin filterscript, login etc works. but reading from the dudb file doesnt work?

heres one of the codes that doesnt work

pawn Код:
dcmd_ah(playerid, params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, COLOR_RED, "[NiixieDM]: You need to be logged in to use that command!");

    if(PlayerInfo[playerid][AdminLevel] == 1)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "");
        SendClientMessage(playerid, COLOR_YELLOW, "");
        SendClientMessage(playerid, COLOR_YELLOW, "******** NiixieDM - Admin Help ********");
        SendClientMessage(playerid, COLOR_YELLOW, "");
        SendClientMessage(playerid, COLOR_YELLOW, "/Kick - Kicks a player (Level: 1)");
        SendClientMessage(playerid, COLOR_YELLOW, "/Ban - Bans a player (Level: 2)");
        SendClientMessage(playerid, COLOR_YELLOW, "/Slap - Slaps a player (Level: 1)");
        SendClientMessage(playerid, COLOR_YELLOW, "/Sethealth - Sets a players health (Level: 1)");
        SendClientMessage(playerid, COLOR_YELLOW, "");
        SendClientMessage(playerid, COLOR_PINK, "/ah2 - Shows you more admin commands");
    }
    return SendClientMessage(playerid, COLOR_RED, "[NiixieDM]: You are not authorized to use that command!");
}
Im admin level 3 and still doesnt have permission?
Whats wrong?
Reply


Messages In This Thread
[Help] Somethings wrong with my Admin commands? - by Niixie - 10.01.2010, 10:43
Re: [Help] Somethings wrong with my Admin commands? - by [HiC]TheKiller - 10.01.2010, 11:13
Re: [Help] Somethings wrong with my Admin commands? - by Niixie - 10.01.2010, 11:21
Re: [Help] Somethings wrong with my Admin commands? - by Niixie - 11.01.2010, 14:00
Re: [Help] Somethings wrong with my Admin commands? - by [gmR]BarMaN - 11.01.2010, 14:16
Re: [Help] Somethings wrong with my Admin commands? - by Niixie - 11.01.2010, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)