08.01.2018, 12:05
there is any way to do the next thing or something like that?
so if I'll do "/forcecmd 1 kickme" it would make them send the command to kick themselves.
PHP код:
COMMAND:forcecmd(playerid, params[])
{
new targetid, cmdstring[128];
if(sscanf(params, "us", targetid, cmdstring)) return SendClientMessage(playerid, 0xFF0000FF, "wrong syntax,
usage; /forcecmd [player id] [command]");
cmd_cmdstring(playerid, params);
return 1;
}
COMMAND:kickme(playerid, params[])
{
Kick(playerid);
return 1;
}