command
#2

Код:
 if (PlayerData[playerid][pAdmin] < 6)


8.            return SendErrorMessage(playerid, "Nu ai permisiunea pentru a folosi aceasta comanda.");
The code by design doesn't allow RCON admins to use the command.

PlayerData[playerid][pAdmin] is your variable which stores the admin level. Unless you set that variable to 6 when a player logs in through RCON he/she won't be able to use the command.

Use IsPlayerAdmin to check if a player is an admin.
Reply


Messages In This Thread
command - by Jimmi - 04.09.2015, 22:06
Re: command - by Yashas - 05.09.2015, 07:23
Re: command - by Karan007 - 05.09.2015, 07:28
Re: command - by Yashas - 05.09.2015, 07:31
Re: command - by Karan007 - 05.09.2015, 07:33
Re: command - by jlalt - 05.09.2015, 07:53
Re: command - by saffierr - 05.09.2015, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)