• 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(playerid, text[]) { ? ??if(text[0] == '/') Command_ReProcessEx(playerid, text); ? ? else OnPlayerText(playerid, text); ? ? return 1; }



PHP Code:
stock Command_ReProcessEx(playerid, cmdtext[]) { ? ??#if defined PAWNCMD_INC_ ? ? ? ? PC_EmulateCommand(playerid, cmdtext); ? ? #else ? ? ? ? Command_ReProcess(playerid, cmdtext, false); ? ? #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