SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 26/07/2010, 11:55 PM   #1
Kevin_Joshen
Huge Clucker
 
Kevin_Joshen's Avatar
 
Join Date: Jul 2010
Posts: 320
Reputation: 0
Smile Please Help: Parameters and such.

Does Anyone know a guide, or can someone just help me out with the following? :

1. I need to know how to take a minigun (and different guns) from the player when he/she TPís or leaves the minigun(or other DM) area.
2. I need to know how to set up a car bomb system.
3. I need to know how to add houses and interiors for each house.
4. How the heck do I make some form of a car Derby? Here are the specifications for the derby;
A. Each player spawns in a random vehicle.
B. There can only be a max of 10 players per each derby round.
C. This will take place on top of that triangle shaped rooftop. So when the player falls off, I need he/she to be eliminated and spectate the derby.
I would also like those specs. For the different derby courses I make and such.


Please help! I just donít know where to begin. Thank you!

-Kevin
__________________


Check out the Forums!



Banner made by Zh3R0
Kevin_Joshen is offline  
Old 27/07/2010, 12:00 AM   #2
WillyP
High-roller
 
WillyP's Avatar
 
Join Date: Jul 2010
Location: England
Posts: 2,027
Reputation: 63
Default Re: Please Help: Parameters and such.

Here
__________________
once average now terrible
WillyP is offline  
Old 27/07/2010, 12:07 AM   #3
Kevin_Joshen
Huge Clucker
 
Kevin_Joshen's Avatar
 
Join Date: Jul 2010
Posts: 320
Reputation: 0
Default Re: Please Help: Parameters and such.

oh! HAHA! but, i've already tried that. that's why i have asked here. lolrofl. heheh
__________________


Check out the Forums!



Banner made by Zh3R0
Kevin_Joshen is offline  
Old 27/07/2010, 12:14 AM   #4
mastasquizy
Big Clucker
 
Join Date: Feb 2008
Location: Long Island, New York
Posts: 60
Reputation: 0
Default Re: Please Help: Parameters and such.

Well there are several things wrong here:

1: You may be asking for too much
2: You should know how to do some of those
3: I would help you, but then I would be working....we wouldn't want that now would we?

EDIT: if your hiring a scripter, then that's something different....
mastasquizy is offline  
Old 27/07/2010, 12:19 AM   #5
Kevin_Joshen
Huge Clucker
 
Kevin_Joshen's Avatar
 
Join Date: Jul 2010
Posts: 320
Reputation: 0
Default Re: Please Help: Parameters and such.

im not hiring a scripter. im simply looking for some one to help me understand how to script certain things. like i dont know how to make the parameters for a derby and such. more like im not asking anyone to do work to help me. just asking if anyone knows good tutorials for these things, and to point me in the right direction.

i hope i'm not sounding rude, i just need to know these things.

thank you.
__________________


Check out the Forums!



Banner made by Zh3R0
Kevin_Joshen is offline  
Old 27/07/2010, 12:54 AM   #6
mastasquizy
Big Clucker
 
Join Date: Feb 2008
Location: Long Island, New York
Posts: 60
Reputation: 0
Default Re: Please Help: Parameters and such.

I see...sorry for misinterpreting that xD. Lets see if I can help:

1. You can use "ResetPlayerWeapons" to take away weapons and then immediately give them their previous weapons. Before they enter the event zone and start the event, you should 'GetPlayerWeaponData' and then save it to a database (try dudb). Then 'ResetPlayerWeapons' to clear their inventory then give them the minigun. When they exit or die or something, ;ResetPlayerWeapons' again and load their weapon data back and give them their weapons back.

2. This is simple. You can create a timer when someone enters the vehicle.
pawn Code:
public OnPlayerEnterVehicle(playerid,vehicleid)
{
       if(vehicleid == /*your vehicle*/)
       {
                SetTimer("Boom",10000,0);
       }
}
Then later.....
pawn Code:
forward Boom(playerid)
public Boom(playerid)
{
         new Float:x,Float:y,Float:z;
         GetPlayerPos(playerid,x,y,z);
         CreateExplosion(x,y,z,7,15.0);//type 7 is my favorite and the radius doesn't really matter...
}
You can style that as you wish...
If thats not what you want then instead of CreateExplosion then SetVehicleHealth(GetPlayerVehicleID(playerid),0);

3. I don't know much about this, but you can find filterscripts for these

4. You would need to make a zone. Try dCallbacks (****** it). Then when they leave the zone or die or something, spawn them somewhere then SetPlayerCameraPos then SetPlayerCameraLookAt to the middle of the stage. Be sure to TogglePlayerControllable so they don't move. When the event is over, reset their cameras and continue with the game.

Hope this helps lots and sorry if I made you feel bad xD. If you need help on details just make a new thread or something.
mastasquizy is offline  
Old 27/07/2010, 01:00 AM   #7
Kevin_Joshen
Huge Clucker
 
Kevin_Joshen's Avatar
 
Join Date: Jul 2010
Posts: 320
Reputation: 0
Default Re: Please Help: Parameters and such.

thank you. i still am very fuzzy on this. as i have just created my server and i am still fuzzy on the weapons thing( #1) but i will try it. thank you!
__________________


Check out the Forums!



Banner made by Zh3R0
Kevin_Joshen is offline  
 

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
Optional parameters? Gozerr Help Archive 1 27/02/2010 02:21 PM
Referenced parameters? yom Plugin Development 15 22/11/2009 06:41 PM
Optional Parameters Dreftas Help Archive 1 11/10/2009 11:34 AM
Object Parameters SimonXY Help Archive 2 31/05/2009 05:40 PM
samp.exe parameters 13th Client Support 12 18/04/2009 03:28 PM


All times are GMT. The time now is 05:53 PM.


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