SA-MP Forums Archive
Help with /q - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with /q (/showthread.php?tid=237788)



Help with /q - Linus- - 10.03.2011

Hey i saw in some servers if anyone type /q in the main chat hell will be auto kicked
Is there any code? plz give me....


Re: Help with /q - iGetty - 10.03.2011

It is a default SA-MP server thing, go in your server, and type /q the game will close.


Re: Help with /q - Roomeo - 10.03.2011

LOL he will not be kicked it's /q (quit)


Re: Help with /q - HyperZ - 10.03.2011

Under Include's:
pawn Код:
new CW[11][] = {
    "/quit",
    "/q"
    //you can add more there.
};
OnPlayerText:
pawn Код:
for(new i; i < sizeof(CW); i++)
{
    if(strfind(text,CW[i],true) != -1)
    {
        Kick( Playerid );
        return 0;
    }
}
Edit: correct me if im wrong.


Re: Help with /q - Linus- - 10.03.2011

Quote:
Originally Posted by getty154
Посмотреть сообщение
It is a default SA-MP server thing, go in your server, and type /q the game will close.
oh sorry my english is too bad, i was meaning if anyone say for example: /q all or /q he will get kicked.
Quote:
Originally Posted by Clive
Посмотреть сообщение
Under Include's:
pawn Код:
new CW[11][] = {
    "/quit",
    "/q"
    //you can add more there.
};
OnPlayerText:
pawn Код:
for(new i; i < sizeof(CW); i++)
{
    if(strfind(text,CW[i],true) != -1)
    {
        Kick( Playerid );
        return 0;
    }
}
Edit: correct me if im wrong.
Oh yes i want this, thank you very much.


Re: Help with /q - HyperZ - 10.03.2011

Quote:
Originally Posted by Linus-
Посмотреть сообщение
oh sorry my english is too bad, i was meaning if anyone say for example: /q all or /q he will get kicked.

Oh yes i want this, thank you very much.
Lol, ok no problem.


Re: Help with /q - Linus- - 10.03.2011

You know how to make NPC?


Re: Help with /q - HyperZ - 10.03.2011

Quote:
Originally Posted by Linus-
Посмотреть сообщение
You know how to make NPC?
Here you go: https://sampforum.blast.hk/showthread.php?tid=95034
And please next time use search too.