/sudo , force player to use command - 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: /sudo , force player to use command (
/showthread.php?tid=665337)
/sudo , force player to use command -
TokicMajstor - 31.03.2019
Hey, Iam trying to make a command to force another player to use any command. Like /sudo, I was searching for it on forum but nothing useful. Iam using YCMD...
Re: /sudo , force player to use command -
TokicMajstor - 01.04.2019
Quote:
Originally Posted by ******
PHP код:
YCMD:sudo(playerid, params[], help)
{
new targetid;
if (help) // ...
else if (sscanf(params, "us[256]", targetid, params)) // ...
else Command_ReParse(targetid, params, false);
}
Something like that. Might also be "Command_ReProcess" not "Command_ReParse", I'm not at my PC right now.
|
Thank you sir