10.01.2010, 10:43
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
Im admin level 3 and still doesnt have permission?
Whats wrong?
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!");
}
Whats wrong?