Help with /q
#1

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....
Reply
#2

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

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

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.
Reply
#5

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.
Reply
#6

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.
Reply
#7

You know how to make NPC?
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)