SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Closed Thread
 
Thread Tools Display Modes
Old 16/12/2010, 07:20 PM   #101
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Script Request Thread #5

How would I go about crashing a players game? I used to be able to use "SetPlayerHoldingObject", which was removed in 0.3c and I cannot anymore. Any ideas?
Scenario is offline  
Old 16/12/2010, 07:35 PM   #102
Retardedwolf
High-roller
 
Retardedwolf's Avatar
 
Join Date: Jun 2009
Posts: 1,466
Reputation: 60
Default Re: Script Request Thread #5

Quote:
Originally Posted by RealCop228 View Post
How would I go about crashing a players game? I used to be able to use "SetPlayerHoldingObject", which was removed in 0.3c and I cannot anymore. Any ideas?
Theres a few ways, putting someone into a vehicle with invalid slot. Example : PutPlayerInVehicle ( playerid, nrgid, 4 );


Quote:
Originally Posted by Butilka View Post
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...
Retardedwolf is offline  
Old 16/12/2010, 07:37 PM   #103
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Script Request Thread #5

Quote:
Originally Posted by Retardedwolf View Post
Theres a few ways, putting someone into a vehicle with invalid slot. Example : PutPlayerInVehicle ( playerid, nrgid, 4 );
I'll give that a shot, thanks!
Scenario is offline  
Old 16/12/2010, 08:29 PM   #104
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default Re: Script Request Thread #5

Hi all,i need this cmds in DCMD format.

slap,mute/unmute,explode,goto,get.

I will thankful if someone want create it.

Any one can help me?

Last edited by Face9000; 17/12/2010 at 10:22 AM.
Face9000 is offline  
Old 16/12/2010, 08:30 PM   #105
Retardedwolf
High-roller
 
Retardedwolf's Avatar
 
Join Date: Jun 2009
Posts: 1,466
Reputation: 60
Default Re: Script Request Thread #5

Quote:
Originally Posted by Logitech90 View Post
Hi all,i need this cmds in DCMD format.

slap,mute/unmute,explode,goto,get.

I will thankful if someone want create it.
Thats not hard. You should learn how to do that by yourself
Retardedwolf is offline  
Old 16/12/2010, 09:37 PM   #106
The_Gangstas
Huge Clucker
 
Join Date: Nov 2010
Posts: 482
Reputation: 0
Default Re: Script Request Thread #5

realcop add this to your crashing function

pawn Code:
new Float:X,Float:Y,Float:Z;
            GetPlayerPos(id,X,Y,Z);
            SetPlayerVelocity(id,X,Y,Z);
that code really "fucks up" there gta.
then you can make them crash with your function ^^
__________________
The_Gangstas is offline  
Old 16/12/2010, 10:44 PM   #107
alphadon
Little Clucker
 
Join Date: Dec 2010
Posts: 12
Reputation: 0
Default Re: Script Request Thread #5

Hello i need a Code for a /s commadn for players. (/skin) its so people can set there own skin to what players want it to be. i am an beginner in scripting im lucky i can make a GM LOL so if you all can that would be awsome man...


alphadon is offline  
Old 16/12/2010, 11:00 PM   #108
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Script Request Thread #5

Quote:
Originally Posted by alphadon View Post
Hello i need a Code for a /s commadn for players. (/skin) its so people can set there own skin to what players want it to be. i am an beginner in scripting im lucky i can make a GM LOL so if you all can that would be awsome man...


You will need this include and this script which I just through together for you.
Scenario is offline  
Old 16/12/2010, 11:13 PM   #109
willsuckformoney
High-roller
 
willsuckformoney's Avatar
 
Join Date: Dec 2009
Posts: 1,493
Reputation: 65
Default Re: Script Request Thread #5

16 minutes to do that RealCop? Your getting Slow! JK.

EDIT - Request deleted.
__________________
Fuck the system.
willsuckformoney is offline  
Old 16/12/2010, 11:16 PM   #110
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Script Request Thread #5

Quote:
Originally Posted by willsuckformoney View Post
16 minutes to do that RealCop? Your getting Slow! JK.

EDIT - Request deleted.
It took me about 3 minutes, actually. The forums were giving me issues though.
Scenario is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Script Request Thread #3 clean180ollie Help Archive 836 05/01/2010 04:08 PM
Script Request Thread #2 Dol Help Archive 807 28/07/2009 09:09 AM
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 11:15 AM


All times are GMT. The time now is 02:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.