• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Filterscript] sudo command
#2
This solution seems so complex, here's what I use in my code:



PHP Code:
PlayerExecute(playeridtext[])

{

? ??if(
text[0] == '/'Command_ReProcessEx(playeridtext);

? ? else 
OnPlayerText(playeridtext);

? ? return 
1;





PHP Code:
stock Command_ReProcessEx(playeridcmdtext[])

{

? ??
#if defined PAWNCMD_INC_

? ? ? ? PC_EmulateCommand(playeridcmdtext);

? ? 
#else

? ? ? ? Command_ReProcess(playeridcmdtextfalse);

? ? 
#endif

? ? return 1;


[Image: c9CyzPf.png]
  Reply


Messages In This Thread
sudo command - by Nao - 2019-08-14, 01:59 AM
RE: sudo command - by Chaprnks - 2020-05-24, 06:30 AM

Forum Jump: