SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 11/07/2012, 12:53 PM   #1
kaisersouse
High-roller
 
kaisersouse's Avatar
 
Join Date: Jun 2006
Location: Subaru Forester
Posts: 2,799
Reputation: 1024
Default Noob question: how to make on-foot underwater spawn make player stick to ocean floor?

I keep trying to make an underwater spawn that lets player run around on ocean floor. Instead, the player floats to the surface every time and I don't want that.

I know this can be done, I've just forgotten how

Please help? Thanks!
__________________
Life is like a box of cheap-ass no cocoa garbage dollar-store chocolate.

Ban UIF
kaisersouse is offline   Reply With Quote
Old 11/07/2012, 12:58 PM   #2
Warfish
Big Clucker
 
Join Date: Jul 2010
Location: Belgium
Posts: 113
Reputation: 19
Default Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor?

it is possible when you spawn a new vehicle underwater and then put the player in the vehicle, then you can drive on the ocean floor, but On foot.. I don't know..
__________________
Warfish is offline   Reply With Quote
Old 11/07/2012, 01:02 PM   #3
sleepysnowflake
Gangsta
 
sleepysnowflake's Avatar
 
Join Date: Dec 2009
Posts: 925
Reputation: 138
Default Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor?

Spawn him in a vehicle, make him exit the vehicle, destroy the vehicle and you're all set.
sleepysnowflake is offline   Reply With Quote
Old 11/07/2012, 01:06 PM   #4
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,698
Reputation: 1177
Default Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor?

Spawn the player with a vehicle,and then remove the vehicle from player.
I hope so...
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 11/07/2012, 01:18 PM   #5
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor?

Vehicles aren't needed. All you have to do is SetPlayerPos under the water from land. It might not work under OnPlayerSpawn or if they are in the air, never really tested it.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 11/07/2012, 02:30 PM   #6
Psymetrix
Huge Clucker
 
Join Date: Oct 2011
Posts: 292
Reputation: 104
Default Re: Noob question: how to make on-foot underwater spawn make player stick to ocean floor?

Set there position from dry land, as said before. Setting them under water while there in water gives the same effect as diving under.
Psymetrix is offline   Reply With Quote
Reply

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
How To Make Player Spawn In Custom Loc. 15outland Scripting Help 2 24/10/2011 03:34 AM
How can i make player freeze on spawn for about 5 seconds? Feel Scripting Help 6 26/09/2011 12:17 PM
How to make all player spawn @ one place not where they left SwatOwner Help Archive 4 15/07/2011 07:44 PM
How to make player goto jail on spawn Torran Help Archive 8 12/03/2010 08:13 PM
Make Car Spawn At Player Chords bumfluff Help Archive 3 19/05/2009 06:19 AM


All times are GMT. The time now is 12:59 PM.


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