Admin only zone doesnt work for admins.
#1

I am using LAdmin 2.2 by Lethal. Everything works good.
But now when I want to create an admin-only zone, which should be enterable for admins only, it doesn't work properly. Whenever i am logged in into the rcon I can enter the zone, but when im logged in as ladmin I cant enter the zone, so it doesnt see me as an admin status. Heres the script, http://pastebin.com/4KZHgZG3

Can anyone help me how to make this zone enterable for admins, with the ladmin script?
scriptfiles\ladmin\users. The highest lvl for admins is 5, but I would like to make it enterable for all levels (1-5)

Thanks.
Reply
#2

pawn Code:
if(IsPlayerInArea(i,2082.2393,2417.5349,1203.1693,1363.7429) && !IsPlayerAdmin(i))
IsPlayerAdmin, change that to the what ever variable designates admin in your script.
Reply
#3

and how do I know what variable that is?
Reply
#4

so now I did this:
if(IsPlayerInArea(i,2082.2393,2417.5349,1203.1693, 1363.7429) && !IsPlayerLAdmin(i))

and it gives me error message; 'undefined symbol "IsPlayerLAdmin"
Reply
#5

I used #define IsPlayerLAdmin on top of the script, and it compiled.
But it still doesnt work, when im logged in and im lvl 5 ladmin (but not logged in into the rcon) i still die when I enter the zone. Help please.
Reply
#6

Is there a player admin level variable? if so, use this...

if(IsPlayerInArea(i,2082.2393,2417.5349,1203.1693, 1363.7429) && AdminLevelVariable[i] > 0)
Reply
#7

lol? u need to use like
pawn Code:
if(PlayerInfo[playerid][AdminLevel] >= 1)
Reply
#8

I dont understand anything of the admin variable, heres the admin script im using; http://pastebin.com/kk5AhxbM
and here, is the zone script with the added IsPlayerLAdmin; http://pastebin.com/QQrMfZvq
Reply
#9

yess perfect

add this
pawn Code:
if(PlayerInfo[playerid][Level] >= 1)
under the area..
Reply
#10

crap... i meant upper it like
pawn Код:
if(PlayerInfo[playerid][Level] >= 1) { sPlayerInArea(i,2082.2393,2417.5349,1203.1693, 1363.7429) }
Reply
#11

Could you perhaps download my pastebin script and add that line in there? I cant seem to make it work myself
Reply
#12

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(PlayerInfo[playerid][Level] >= 1)
    {
        PlayerInArea(i,2082.2393,2417.5349,1203.1693, 1363.7429);
    }
    else
    {
        if(IsPlayerInArea(2082.2393,2417.5349,1203.1693, 1363.7429);
        {
            SetHealth(i, 0.0);
        }
    }
}
Reply
#13

error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "playerid"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

4 errors
Reply
#14

well this is awkward..
Reply
#15

and it doesnt work still. I keep dieng when I enter the zone
Reply
#16

He doesn't use PlayerInfo.
LAdmin uses AccInfo.
pawn Код:
if( AccInfo[ playerid ][ Level ] >= 1 )
Reply
#17

I cant compile the script with that code, could you please download my pastebin file from the first post, and edit it with the working code? :S
Reply
#18

Quote:
Originally Posted by AK47317
View Post
yess perfect

add this
pawn Code:
if(PlayerInfo[playerid][Level] >= 1)
under the area..
HA HA
Reply
#19

Help please. BUMP
Reply
#20

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)