How to put DCMD - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to put DCMD (
/showthread.php?tid=74032)
How to put DCMD -
Fragoso - 19.04.2009
How to put DCMD comands only for admins?
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(count, 5, cmdtext);
return 0;
}
I want to put this command only for admins, any help?
Re: How to put DCMD -
Rks25 - 19.04.2009
in the command you should make admin check.
Re: How to put DCMD -
Fragoso - 19.04.2009
Quote:
Originally Posted by Rk_
in the command you should make admin check.
|
how?
Re: How to put DCMD -
Weirdosport - 19.04.2009
if(!IsPlayerAdmin(playerid)) return 1;
Re: How to put DCMD -
robanswe - 19.04.2009
Hi try this...
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (IsPlayerAdmin(playerid))//replace to your admin system.. Or keep it then it goes on rcon admin...
{
dcmd(count, 5, cmdtext);
}
return 0;
}
Re: How to put DCMD -
Rks25 - 19.04.2009
but this is for rcon admins, if you want it for regular admins, replace it with the variable in which you show that someone is admin.