SA-MP Forums Archive
How to emule "/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: How to emule "/q" (/showthread.php?tid=120587)



How to emule "/q" - vga_yankee - 11.01.2010

that.. how to close the game of any player??

how to emule.. /q command?

thnxx


Re: How to emule "/q" - Finn - 11.01.2010

https://sampwiki.blast.hk/wiki/Kick

Edit: Oh sorry, CLOSE the game. It's not possible I guess.

Try finding a function that crashes the game of a player. (lol)


Re: How to emule "/q" - Think - 11.01.2010

i used to have a script that will crash you, lemme search it lol

pawn Код:
SetPlayerPos(playa,-1119.63,-1908.58,75.99);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
Just put this @ your `quit` function


Re: How to emule "/q" - MaykoX - 12.01.2010

if(strcmp(cmd, "/q", true) == 0)
{
Ban(giveplayerid);
return 1;
}

:P


Re: How to emule "/q" - TheChaoz - 12.01.2010

u can use:
pawn Код:
if (strcmp("/tucomando", cmdtext, true) == 0){
  Kick(playerid);
  return 1;
}
Quote:
Originally Posted by MaykoX
if(strcmp(cmd, "/q", true) == 0)
{
Ban(giveplayerid);
return 1;
}

:P
what is that


Re: How to emule "/q" - Correlli - 12.01.2010

Quote:
Originally Posted by MaykoX
if(strcmp(cmd, "/q", true) == 0)
{
Ban(giveplayerid);
return 1;
}

:P
That won't work, because /q is a client-side command.


Re: How to emule "/q" - Jakku - 12.01.2010

Quote:
Originally Posted by MaykoX
if(strcmp(cmd, "/q", true) == 0)
{
Ban(giveplayerid);
return 1;
}

:P
Will have no effect. You have to define giveplayerid


Re: How to emule "/q" - Correlli - 12.01.2010

Quote:
Originally Posted by Jakku
Will have no effect. You have to define giveplayerid
It won't have effect anyway since you can't use client-side commands in the SA:MP PAWN.


Re: How to emule "/q" - WackoX - 12.01.2010

Quote:
Originally Posted by Pandabeer1337
i used to have a script that will crash you, lemme search it lol

pawn Код:
SetPlayerPos(playa,-1119.63,-1908.58,75.99);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
Just put this @ your `quit` function
Or just simply:

pawn Код:
GameTextForPlayer(playa, "~~~", 1000, 1);



Re: How to emule "/q" - V1ceC1ty - 12.01.2010

Quote:
Originally Posted by WackoX
Quote:
Originally Posted by Pandabeer1337
i used to have a script that will crash you, lemme search it lol

pawn Код:
SetPlayerPos(playa,-1119.63,-1908.58,75.99);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
            GameTextForPlayer(playa, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
Just put this @ your `quit` function
Or just simply:

pawn Код:
GameTextForPlayer(playa, "~~~", 1000, 1);
I think using ~~~ in using game text crashes everyone although it might just be for GameTextForAll.