[HELP]Needa admin team
#1

Код:
Hi, I am making my own Gamemode, but I still need help...
I don't know how to define the admin team.
I mean I made the spawn point, everything, I just need to make it unaccesible for the players with level 3 or higher.
I mean it must be restricted for the normal players, it can be joined just by admins.
What to do? I have no idea what to define...
Thanks a lot!
Reply
#2

Admin level 3 or Player level 3 ?
Reply
#3

Quote:
Originally Posted by Klutty
Admin level 3 or Player level 3 ?
Umm, if I make a player level 3, I will allow him to get my clan's tag, so if that player is level 3 or higher, he can join, if not, he is killed or spawned as another team.
Reply
#4

I think that requires enum's, and I don't know how to use that, sorry.

Consider someone who knows it.
Reply
#5

Can someone help me please?
Reply
#6

pawn Код:
enum gInfo
{
  reqlvl
}
new Clan[10][gInfo];

onplayerspawn(playerid)
{
 for(new i=0;i<sizeof(Clan);i++)
 {
  if(PlayerInfo[playerid][pLevel] < Clan[i][reqlvl])
  {
   gTeam[playerid] = TEAM_NONE;
   SpawnPlayer(playerid);
  }
 }
}
something like this, fill in your own teams and variables.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)