You are not authorized to use this command.
#1

Hey.

When i add this: if(!IsPlayerAdmin(playerid)) return sendclientmessage bla bla you are not authorized to use this command, it returns you are not authorized to use this command even if i type /sampisagreatgame. I also added this:
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(!success) SendClientMessage(playerid, COLORWHITE, "That command does not exist. Use {FFFF00}/help{FFFFFF} to see a list of available commands.");
	return 1;
}
at the end of my script, and it doesnt return that if i type a non-existing command, it returns "you are not authorized". only if i am a rcon admin, it returns "that command does not exist" normally.

please help. thank you.
Reply


Messages In This Thread
You are not authorized to use this command. - by iamjems - 08.10.2016, 23:38
Re: You are not authorized to use this command. - by DTV - 09.10.2016, 00:40
Re: You are not authorized to use this command. - by iamjems - 09.10.2016, 11:32

Forum Jump:


Users browsing this thread: 1 Guest(s)