[HELP]Needa admin team - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Needa admin team (
/showthread.php?tid=77506)
[HELP]Needa admin team -
T.I. - 11.05.2009
Код:
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!
Re: [HELP]Needa admin team -
Klutty - 11.05.2009
Admin level 3 or Player level 3 ?
Re: [HELP]Needa admin team -
T.I. - 11.05.2009
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.
Re: [HELP]Needa admin team -
Klutty - 11.05.2009
I think that requires enum's, and I don't know how to use that, sorry.
Consider someone who knows it.
Re: [HELP]Needa admin team -
T.I. - 12.05.2009
Can someone help me please?
Re: [HELP]Needa admin team -
Think - 12.05.2009
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.