admin class problem
#1

Heya!

I got a problem here. im trying to make the admin class but i always doing it wrong

pawn Код:
if(GetPlayerTeam(playerid) == TEAM_ADMIN)
    {
        SetPlayerPos(playerid,2127.6040,2371.3657,10.5461);
        SetPlayerHealth(playerid,100);
    }
    else if(!TEAM_ADMIN && PlayerInfo[playerid][AdminLevel] == 0)
    {
        GameTextForPlayer(playerid,"~w~YOU CANNOT USE THIS CLASS~n~YOU ARE NOT ADMIN~n~ ~b~GO PLAY SOME MORE",5000,3);
        return 1;
    }
did i do something wrong

when i spawn as JonnyBoy_2 (non admin) i can join the admin class and if i take JonnyBoy (real one) it works also

can some one tell me what i did wrong
Reply


Messages In This Thread
admin class problem - by jonnyboy - 18.04.2011, 12:46
Re: admin class problem - by AntiGen - 18.04.2011, 12:47
Re: admin class problem - by jonnyboy - 18.04.2011, 12:55

Forum Jump:


Users browsing this thread: 1 Guest(s)