SA-MP Forums Archive
/crash 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /crash command (/showthread.php?tid=110074)



/crash command - makogemata - 24.11.2009

What do i need to add to my Script? - To crash another players.. like /adcrash[id]
Admin LVL 1337


Re: /crash command - dice7 - 24.11.2009

http://forum.sa-mp.com/index.php?topic=114903


Re: /crash command - MenaceX^ - 24.11.2009

Quote:
Originally Posted by dice7
He didn't request someone to make it.


It's not possible as far as I know in 0.3, Kye has avoided all functions that can crash a player.


Re: /crash command - Butilka - 24.11.2009

Possible.
Code:
dcmd_crash(playerid,params[]) {
	if(sPlayerAdmin(playerid)) {
	  if(!strlen(params)) return SendClientMessage(playerid, red, " USAGE: /crash [playerid]");
		new player1 = strval(params), string[128], Float:X,Float:Y,Float:Z;
    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
	        GetPlayerPos(player1,X,Y,Z);
	  		CreatePlayerObject(player1,385,X,Y,Z,0,0,0);
			format(string, sizeof(string), " You have crash player %s", pName(player1));
			return SendClientMessage(playerid,COLOR_RED, string);
	  } else return SendClientMessage(playerid,red," ERROR: There is no such player");
	} else return SendClientMessage(playerid,red," ERROR: You must be an admin to use this command");
}

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(crash,5,cmdtext);
return 0;
}
Try...


Re: /crash command - dice7 - 24.11.2009

What is asking someone to give you the code different from requesting ?

Also, they seem to fix a lot of stuff even from the R2 build. Like in R2 you could crash someone with
SetPlayerPos(playerid, 9999999.857, 9999999.858, 9999999.857);
but now it just makes
http://i45.tinypic.com/4t7skn.png


Re: /crash command - Rzzr - 24.11.2009

Maybe you could try to put them on an NRG-500 or another bike and add Nitro's oxide to it? Or something like that.