Possible to overrule '/q' ???
#10

Quote:
Originally Posted by Income
Посмотреть сообщение
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(/* is player tied var*/)
    {
        Kick(playerid);
    }
    return 1;
}
So basically - if the player is disconnecting - disconnect them. Please tell me you understand how silly that sounds.


Quote:
Originally Posted by Income
Посмотреть сообщение
What are the chances of this snippet to work(?)
pawn Код:
CMD:q(playerid, params[])
{
    if(/* is player tied */) return SendClientMessage(playerid, 0xAFAFAFAA, "Error: You cannot quit during being tied!");
    return 1;
}
Absolutely 0. Client-side commands are processed in the SA-MP client before OnPlayerCommandText is called (which it isn't for client commands). Would be nice though.
Reply


Messages In This Thread
Possible to overrule '/q' ??? - by Dubya - 28.07.2013, 22:33
Re: Possible to overrule '/q' ??? - by -Prodigy- - 28.07.2013, 22:43
Re: Possible to overrule '/q' ??? - by EvanA - 28.07.2013, 22:44
Re: Possible to overrule '/q' ??? - by [ABK]Antonio - 28.07.2013, 22:49
Re: Possible to overrule '/q' ??? - by MP2 - 28.07.2013, 22:52
Re: Possible to overrule '/q' ??? - by Income - 28.07.2013, 23:37
Re: Possible to overrule '/q' ??? - by Mitchy - 28.07.2013, 23:46
Re: Possible to overrule '/q' ??? - by Riddy - 28.07.2013, 23:48
Re: Possible to overrule '/q' ??? - by EvanA - 29.07.2013, 00:00
Re: Possible to overrule '/q' ??? - by MP2 - 29.07.2013, 00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)