Posts: 32
Threads: 9
Joined: Jul 2008
Reputation:
0
Im trying to make automatic gates open only if an admin approaches them. The issue is that the admin system im using is Xtreme's admin system which im running as a filterscript, this admins system also uses levels and im just wondering how i would make it so that the gates would open for a level 10 admin. The function is something like IsPlayerXAdmin but the gamemode wont be able to define that will it?
Posts: 25
Threads: 1
Joined: Nov 2009
Reputation:
0
It works perfectly, you just have to define your gate object ID, and create a new timer. It wont complicate things.
Posts: 32
Threads: 9
Joined: Jul 2008
Reputation:
0
So what would I put around the within the gate function then?
IsPlayerXAdmin...
im struggling to do it because this admin system has levels
Posts: 351
Threads: 43
Joined: Jan 2010
Reputation:
0
i dont know your admin system but im sure it's somehting like this:
if (IsPlayerXAdmin(playerid, 10) // 10 is the level, but as i said, i don't know how your admin system check player's level
{
//your gates stuff
}
else
{
SendClientMessage(playerid, COLOR_RED, "Only Level 10 Admins Can Go Through The Gates");
}
Posts: 32
Threads: 9
Joined: Jul 2008
Reputation:
0
When i try add the IsPlayerXAdmin function it comes up with errors saying playerid is not defined, i dont understand why its doing this, playerid is used throughout the script
Sorry for double posting
Posts: 351
Threads: 43
Joined: Jan 2010
Reputation:
0
but where have you put these lines?
Posts: 351
Threads: 43
Joined: Jan 2010
Reputation:
0
playerid isn't defined because your public GatCheck() should be like this:
public GateCheck(playerid)