Help With AScript
#1

i have a script for admin aduty.
when admin is going aduty to tell all players is now onduty.
Code

PHP код:
if(!strcmp("/aduty"cmdtexttrue) && IsPlayerAdmin(playerid)) return 
        
SendClientMessageToAll(0xFF0000AA,"SERVER: An admin is on duty."); 
but i dont know when can i addd this script ?
Reply
#2

+rep if u help me
Reply
#3

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
Reply
#4

i dont have that commnd on my rolepla script
Quote:

OnPlayerCommandText

Reply
#5

That means the gamemode you are editing is using a command processing library. (I)-ZCMD, DCMD, Y_Commands,...
Reply
#6

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.
Reply
#7

and how to make it ?
Reply
#8

how to make it ? with horizon roleplay script ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)