12.01.2014, 15:07
Dear Guys and Girls,
I would like to create a filterscript where it checks if the player who is going to use a command is an admin.
It is easy to check if the player is using Rcon login, but I would like to check it this way so I don't have to share the rconpassword.
Using:
I don't know how to do this.
I thought I had to do:
It does not work.
Could anyone help me or show me a filterscript as an example to make it work?
Thank you in advance.
I would like to create a filterscript where it checks if the player who is going to use a command is an admin.
It is easy to check if the player is using Rcon login, but I would like to check it this way so I don't have to share the rconpassword.
Using:
Код:
if(PlayerInfo[playerid][pAdmin] > 0) { }
I thought I had to do:
Код:
#define FILTERSCRIPT #include <a_samp> enum pInfo { pAdmin }; new PlayerInfo[MAX_PLAYERS][pInfo];
Could anyone help me or show me a filterscript as an example to make it work?
Thank you in advance.