/q cmd function.
#10

Well I would try it like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext){
    if(!strcmp("/logout", cmdtext, true)){
        return OnPlayerCommandText(playerid, "/q");
    }
    return 0;
}
This is the most elegant way I can imagine, just dunno if it works how I expect.

If /q is a command in itself then it will work, but I fear that /q is embedded in the samp application itself.

Let me know if it worked.
Reply


Messages In This Thread
/q cmd function. - by Kalroz - 26.07.2012, 18:06
Re: /q cmd function. - by Misiur - 26.07.2012, 18:13
Re: /q cmd function. - by maramizo - 26.07.2012, 18:14
Re: /q cmd function. - by Marlon_Lorran - 26.07.2012, 18:49
Re: /q cmd function. - by [KHK]Khalid - 26.07.2012, 18:51
Respuesta: /q cmd function. - by farCry.xD - 26.07.2012, 20:40
Respuesta: /q cmd function. - by farCry.xD - 26.07.2012, 20:45
Re: Respuesta: /q cmd function. - by Marlon_Lorran - 26.07.2012, 20:54
Respuesta: /q cmd function. - by farCry.xD - 26.07.2012, 20:59
Re: /q cmd function. - by DeathOnaStick - 26.07.2012, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)