18.04.2011, 12:46
Heya!
I got a problem here. im trying to make the admin class but i always doing it wrong
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
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;
}

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
