How to emule "/q"
#1

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

how to emule.. /q command?

thnxx
Reply
#2

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)
Reply
#3

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

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

:P
Reply
#5

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

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

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

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

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);
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)