You are not allowed to use this command!
#1

Hello!

What should I add to this pawn script so it would say You are not allowed to use this command if I am not logged in as RCON.Now when I type /newbuycar it doesnt show nothing but if i am not rcon it should say You are not allowed to use this command.And if I am logged into RCON it should show Usage:

Код:
	if (strcmp(cmd, "/newbuycar", true) ==0 )
	{
	if(!IsPlayerAdmin(playerid)){return 1;}
Reply
#2

pawn Код:
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "You are not allowed to use this command!");
return 1;
}
Reply
#3

Or an easier way
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not allowed to use this command!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)