29.08.2013, 00:07
Hey, I'm currently working on a little server of mine, and I have a quite straightforward question. Currently I'm using an admin FS, and I want to set it up so my property FS works through it. For example, I have AVS setup, and I had to convert that from RCON admin to pAdmin with no problems at all. However, when I try using the same method on the property FS, it doesn't work. To make AVS work via admin commands, all I had to do was set it up as:
(obviously 4 being the admin level)
With how the property FS is currently set up, it has:
Basically what I'm asking, how would I converty if(!IsPlayerAdmin(playerid)) return 0; to PlayerInfo[playeri][pAdmin] >=4;
I've tried replacing the IsPlayerAdmin with PlayerInfo, but it just gave me a bunch of errors.
Код:
PlayerInfo[playerid][pAdmin] >= 4;
With how the property FS is currently set up, it has:
Код:
if(!IsPlayerAdmin(playerid)) return 0; //then the commands and everything start here
I've tried replacing the IsPlayerAdmin with PlayerInfo, but it just gave me a bunch of errors.