Group Leader and Member. -
Sting. - 05.10.2011
I need a expert in RP for this.I need help in creating a group.I want to create a group where I can invite members to join.This group is not LSPD, family's or any other faction group.This is a Admin Group.I created a admin club with a interior.I added a door with keypads.Normal players can enter the door by pressing F.Now how do I stop them from entering the room.I was thinking something with the group thing can stop them.Example like:
if(!IsPlayer(I don't know what to put here!!!!)(playerid == 1))
{
MoveObject(door, ....................., 3.0);
SetTimerEx("doorclose", 5000, false, "i", playerid);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 10.0, 0, 0, 0, 0, 0);
}
.Can someone help me by showing how to create a group and the "if(!IsPlayer(What to put here?!)(playerid == 1))" thing so normal players can't enter the club.
Re: Group Leader and Member. -
[GOD]Dragonster82 - 05.10.2011
What admin call do you use?
Normally it would be
if(IsPlayerAdmin(playerid) >= 1);
bla bla bla.
Re: Group Leader and Member. -
Sting. - 05.10.2011
I'm using a admin Filterscript done by someone else. Now I want to create my own Admin Club thing so other players can't access.If it is IsPlayerAdmin thing, if I want other admins to come, I have to give them my rcon pass.
Re: Group Leader and Member. -
[GOD]Dragonster82 - 05.10.2011
Tell me whose Admin Script it is.
If its luxadmin, this probably would do.
pawn Код:
PRIVATE: YOUPUTIT::IsPlayerAdmin (playerid)
return (IsPlayerAdmin (playerid) || CallRemoteFunction ("IsPlayerAdminCall", "i", playerid));
Re: Group Leader and Member. -
Sting. - 05.10.2011
Its gAdmin.
Re: Group Leader and Member. -
[GOD]Dragonster82 - 05.10.2011
I've read it, and if you DO know, you can do like
On level 2, it makes you trusted ( iTrusted = 1 )
So...
If(iTrusted[playerid] == 1) {
BlABLABLALBABLA
Re: Group Leader and Member. -
Sting. - 05.10.2011
Thanks I'm giving u a reputation!!
Re: Group Leader and Member. -
Sting. - 05.10.2011
It says Undefined Symbol iTrusted.So what do I do?
I did : if(iTrusted(playerid == 1 )), then I ran it but it says Undefined Symbol iTrusted.
Re: Group Leader and Member. -
Sting. - 05.10.2011
I have to go offline now, but I'll be back later.Please try to help me in this situation.
Re: Group Leader and Member. -
[GOD]Dragonster82 - 05.10.2011
EDIT:
The right code is
pawn Код:
if(PlayerInfo[playerid][AdminLevel] >= g_Level[yourchoice]) {