SA-MP Forums Archive
Crashing the player - 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: Crashing the player (/showthread.php?tid=194020)



Crashing the player - sushihusi - 28.11.2010

Hello!

How to crash a player? I want to create a /crash command, but I dont know how to crash a player.
I have tried it with PutPlayerInVehicle(playerid,1,100), but it doesnt works.

Can you help me??


Re: Crashing the player - [NWA]Hannes - 28.11.2010

pawn Код:
new vehicle;
vehicle = CreateVehicle(400, 0, 0, 10, 0, 0, 0);
PutPlayerInVehicle(playerid, vehicle, 100);
Important Note: If the seat is invalid (like the one above, 100) the game will cause a crash only when they EXIT the car.


Re: Crashing the player - WillyP - 28.11.2010

Maybe 'CreateObject(11111111111111111111,x,y,z,0);'?


Re: Crashing the player - The_Moddler - 28.11.2010

pawn Код:
new Text:Crash;
Crash = TextDrawCreate(320, 240, "~");
TextDrawSetString(Crash, "~");
TextDrawShowForPlayer(id, Crash); //Change ID to the variable that holds the player that you wish to crash.
TextDrawDestroy(Crash);
Put that in your command.


Re: Crashing the player - BMUK - 28.11.2010

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
pawn Код:
new Text:Crash;
Crash = TextDrawCreate(320, 240, "~");
TextDrawSetString(Crash, "~");
TextDrawShowForPlayer(id, Crash); //Change ID to the variable that holds the player that you wish to crash.
TextDrawDestroy(Crash);
Put that in your command.
That will fail to crash them


Re: Crashing the player - [NWA]Hannes - 28.11.2010

pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(id, X, Y, Z); //Replace "id" with the player id to crash.
CreatePlayerObject(id, 384, X, Y, Z, 0.0, 0.0, 0.0); //Replace "id" with the player id to crash.



Re: Crashing the player - BMUK - 28.11.2010

Quote:
Originally Posted by [NWA]Hannes
Посмотреть сообщение
pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(id, X, Y, Z); //Replace "id" with the player id to crash.
CreatePlayerObject(id, 384, X, Y, Z, 0.0, 0.0, 0.0); //Replace "id" with the player id to crash.
That does the trick!


Re: Crashing the player - The_Moddler - 28.11.2010

Quote:
Originally Posted by BMUK
Посмотреть сообщение
That will fail to crash them
Did you try it?

I will tell you something, I got it on my server and works fine, you fail.


Re: Crashing the player - BMUK - 28.11.2010

Yes I did try it and it failed to crash me. umad cuz I said that it failed?


Re: Crashing the player - The_Moddler - 28.11.2010

Quote:
Originally Posted by BMUK
Посмотреть сообщение
Yes I did try it and it failed to crash me. umad cuz I said that it failed?
I am

Works fine for me.