SA-MP Forums Archive
admin chat and tester chat dont work - 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: admin chat and tester chat dont work (/showthread.php?tid=425397)



admin chat and tester chat dont work - Don_Cage - 25.03.2013

Hi, I recently changed admin chat from this
pawn Код:
if(text[0], '#' && (PlayerInfo[playerid][pTester] >= 1 || PlayerInfo[playerid][pAdmin] >= 1))
to this
pawn Код:
if(!strcmp(text[0], "//") && (PlayerInfo[playerid][pTester] >= 1 || PlayerInfo[playerid][pAdmin] >= 1))
and same with the tester chat. But now when i type // It says that its an unknown command. What is wrong? I get no errors on complie


Re: admin chat and tester chat dont work - Scenario - 25.03.2013

Because / tells the server you're initiating a new command!


Re: admin chat and tester chat dont work - Don_Cage - 25.03.2013

But how can I make the admin chat use // insted of #? I know it is possible cuz I have seen it on other server


Re: admin chat and tester chat dont work - Scenario - 25.03.2013

Make a new command called /

Example: CMD:/(playerd, params[])


Re: admin chat and tester chat dont work - Don_Cage - 25.03.2013

Oh right.. Thanks!