Help With AScript - 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: Help With AScript (
/showthread.php?tid=591909)
Help With AScript -
Rafaeloo - 18.10.2015
i have a script for admin aduty.
when admin is going aduty to tell all players is now onduty.
Code
PHP код:
if(!strcmp("/aduty", cmdtext, true) && IsPlayerAdmin(playerid)) return
SendClientMessageToAll(0xFF0000AA,"SERVER: An admin is on duty.");
but i dont know when can i addd this script ?
Re: Help With AScript -
Rafaeloo - 18.10.2015
+rep if u help me
Re: Help With AScript -
AndySedeyn - 18.10.2015
It belongs in the body of the OnPlayerCommandText callback.
Read more about the callback on the WIKI page:
https://sampwiki.blast.hk/wroot/index.ph...yerCommandText
Re: Help With AScript -
Rafaeloo - 18.10.2015
i dont have that commnd on my rolepla script
Re: Help With AScript -
AndySedeyn - 18.10.2015
That means the gamemode you are editing is using a command processing library. (I)-ZCMD, DCMD, Y_Commands,...
Re: Help With AScript -
J0sh... - 18.10.2015
Quote:
Originally Posted by AndySedeyn
That means the gamemode you are editing is using a command processor library. (I)-ZCMD, DCMD, Y_Commands,...
|
Not DCMD, because DCMD uses OnPlayerCommandText.
Re: Help With AScript -
Rafaeloo - 18.10.2015
and how to make it ?
Re: Help With AScript -
Rafaeloo - 18.10.2015
how to make it ? with horizon roleplay script ?