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

Quote:
Originally Posted by Dubya
Посмотреть сообщение
Hello, I am working on a role-play script, and I am wondering if it is possible if I can make it so that '/q' (exits client) to check if they are in a police car, or tied, or being dragged, something like that, and for it to not exit the client if it does that.
You can check those things at the public OnPlayerDisconnect.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(/* is player tied var*/)
    {
        Kick(playerid);
    }
    return 1;
}
Quote:
Originally Posted by MP2
Посмотреть сообщение
You can not prevent players from using /q, but if they are doing something such as their vehicle is on fire, or they are falling, or are about to be arrested etc. when they /q, you could punish them when they return.
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;
}
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: 2 Guest(s)