SA-MP Forums Archive
command - 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)
+--- Thread: command (/showthread.php?tid=584742)



command - lanix - 07.08.2015

I want to know is possible to make exit command,when i write /exit, game just exit like on normal gta sa


Re: command - Stanford - 07.08.2015

You can make the player crash ( there's something about gamemodetext I think that crashes the client )

Any feedback is appreciated I hope I helped!


Re: command - SpikeSpigel - 07.08.2015

There is a /quit and a /q command for this.. I think it works.


Re: command - lanix - 07.08.2015

But how can i make crash for player


Re: command - Roberto80 - 07.08.2015

SetPlayerSkin(playerid,74); ?


Re: command - MarvinPWN - 07.08.2015

Quote:

But how can i make crash for player

You show the player a textdraw with the font 20.
Or you show the player this:
PHP код:
GameTextForPlayer(playerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"10000);
GameTextForPlayer(playerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"20001);
GameTextForPlayer(playerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"30002);
GameTextForPlayer(playerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"40003);
GameTextForPlayer(playerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"50004);
GameTextForPlayer(playerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"60005);
GameTextForPlayer(playerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"70006); 



Re: command - Roberto80 - 07.08.2015

Quote:
Originally Posted by samp wiki
text[] must NOT be empty or the server will crash! If you need a textdraw that shows nothing, use " " (a space) or _ (underscore)
So create a player textdraw with empty text like: ""