send a zcmd command that equal to a string text? (+REP)
#1

there is any way to do the next thing or something like that?

PHP код:
COMMAND:forcecmd(playeridparams[])
{
    new 
targetidcmdstring[128];
    if(
sscanf(params"us"targetidcmdstring)) return SendClientMessage(playerid0xFF0000FF"wrong syntax, 
    usage; /forcecmd [player id] [command]"
);
    
cmd_cmdstring(playeridparams);
    return 
1;
}
COMMAND:kickme(playeridparams[])
{
    
Kick(playerid);
    return 
1;

so if I'll do "/forcecmd 1 kickme" it would make them send the command to kick themselves.
Reply


Messages In This Thread
send a zcmd command that equal to a string text? (+REP) - by Lirbo - 08.01.2018, 12:05
Re: send a zcmd command that equal to a string text? (+REP) - by solstice_ - 08.01.2018, 12:07
Re: send a zcmd command that equal to a string text? (+REP) - by Ebisu - 08.01.2018, 12:20
Re: send a zcmd command that equal to a string text? (+REP) - by jlalt - 08.01.2018, 12:30
Re: send a zcmd command that equal to a string text? (+REP) - by Lirbo - 08.01.2018, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)