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~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6); 



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: ""