/crash command
#1

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

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

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.
Reply
#4

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...
Reply
#5

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
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)