You are not allowed to use this command! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: You are not allowed to use this command! (
/showthread.php?tid=481978)
You are not allowed to use this command! -
SplinteX - 18.12.2013
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;}
Re: You are not allowed to use this command! -
Riddick94 - 18.12.2013
pawn Код:
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "You are not allowed to use this command!");
return 1;
}
Re: You are not allowed to use this command! -
Wizza - 18.12.2013
Or an easier way
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not allowed to use this command!");