SA-MP Forums Archive
Close game - 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: Close game (/showthread.php?tid=142171)



Close game - Johnny_Xayc - 17.04.2010

In general, try to make the automatic closing of the game the player server, tried to do so
Code
OnPlayerCommandText (playerid, "/ quit");

But do not get: D
tried every way to cause a crash the game the player is not an existing object, but kye forbade it> _ <...
Generally looking for any way to close the game player


p.s. Sorry for my bad English


Re: Close game - Correlli - 17.04.2010

You can't close the players game by using the "/quit" or "/q" commands because those commands are client-side only. SA:MP 0.3 is the most stable version yet, so creating invalid object like in 0.2 version won't crash the player.

I think there are some ways to crash the player, search around - this was discussed.


Re: Close game - Johnny_Xayc - 17.04.2010

i know why i not close game use OnPlayerCommandText(playerid,"/quit"); this i say just
maybe create 2.000.000 million objects ? for one player xD ...


Re: Close game - Victor - 17.04.2010

or uh GameTextForPlayer(playerid, "~r~~You have been crashed.", 2000, 3);


Re: Close game - DJDhan - 17.04.2010

OnPlayerCommandText /quit
KickPlayer(playerid);
Simple


Re: Close game - Correlli - 17.04.2010

Quote:
Originally Posted by DJDhan
OnPlayerCommandText /quit
KickPlayer(playerid);
Simple
Quote:
Originally Posted by Don Correlli
You can't close the players game by using the "/quit" or "/q" commands because those commands are client-side only.