SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 06/03/2009, 02:53 AM   #1
Wheels
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default Need help with houses / house cars

I have two problems. The first one is:
How can I make vehicles so they can only be driven by certain players, like if they appear locked to other players?
Someone already told me about SetVehicleParamsForPlayer, and I tried to do that, but I failed. If you have another idea please tell it, if you're sure I'm suposed to use SetVehicleParamsForPlayer, please post an example so I can see how to do it.

The second question is:
In multiplayer, the safehouses from single-player, are open for everyone(safehouses, Madd Dog's Mansion for example, 24/7, etc). How can I remove their entrances? I know it's possible because I've already seen servers without those entrances, but I don't know how to do it.

Thanks in advance,
Wheels
Wheels is offline  
Old 06/03/2009, 03:22 AM   #2
ICECOLDKILLAK8
High-roller
 
Join Date: Aug 2008
Posts: 1,200
Reputation: 1
Default Re: Need help with houses / house cars

1) Look at how to use SetVehicleParamsForPlayer in the Wiki
2) DisableInteriorEnterExits() in OnGameModeInit
__________________
IVMP
ICECOLDKILLAK8 is offline  
Old 06/03/2009, 03:28 AM   #3
FrazZ
Big Clucker
 
Join Date: Feb 2009
Posts: 186
Reputation: 0
Default Re: Need help with houses / house cars

Read the Pen1 Topic to know how to do it for PEN1... Switch to pen1 lol :P
FrazZ is offline  
Old 06/03/2009, 03:29 AM   #4
ICECOLDKILLAK8
High-roller
 
Join Date: Aug 2008
Posts: 1,200
Reputation: 1
Default Re: Need help with houses / house cars

Quote:
Originally Posted by .:>|★Fr4zZ★|<:.
Read the Pen1 Topic to know how to do it for PEN1... Switch to pen1 lol :P
Why would he want to switch to PEN1?,
Are you just posting random shit to get your post count up?
1) He could have a stunt server/DM/RP
2) PEN1 is old
__________________
IVMP
ICECOLDKILLAK8 is offline  
Old 06/03/2009, 03:30 AM   #5
Wheels
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default Re: Need help with houses / house cars

Thanks for the house thing.
But about the SetVehicleblablabla I checked wiki and I tried doing it, but it didnt work, thats why I was looking for someone who could post an example or something...

About the Pen1, I'll try checking that.
Wheels is offline  
Old 06/03/2009, 03:32 AM   #6
ICECOLDKILLAK8
High-roller
 
Join Date: Aug 2008
Posts: 1,200
Reputation: 1
Default Re: Need help with houses / house cars

Quote:
Originally Posted by Wheels
Thanks for the house thing.
But about the SetVehicleblablabla I checked wiki and I tried doing it, but it didnt work, thats why I was looking for someone who could post an example or something...

About the Pen1, I'll try checking that.
There have been a LOT of updates to PEN1, PEN1 > GODFATHER > MODERNTOPIA(MYSQL) > Citywide(MYSQL),
Search for a simple vehicle lock system and study the code to see how to use SetVehicleParamsForPlayer
__________________
IVMP
ICECOLDKILLAK8 is offline  
Old 06/03/2009, 03:36 AM   #7
Wheels
Little Clucker
 
Join Date: Jan 2009
Posts: 10
Reputation: 0
Default Re: Need help with houses / house cars

Yeah, I'll try doing that tomorrow now I gotta sleep
Well, thanks for the help.
Wheels is offline  
Old 06/03/2009, 07:21 AM   #8
[RP]Rav
Huge Clucker
 
Join Date: Oct 2007
Posts: 280
Reputation: 0
Default Re: Need help with houses / house cars

SetVehicleParamsForPlayer(vehicleid, playerid, is-objective, is-locked);

pawn Code:
new vehicle = AddStaticVehicle( .................... );

lock a car for a player:
pawn Code:
public OnPlayerSpawn(playerid)
{
  [...]
 
  SetVehicleParamsForPlayer(vehicle, playerid, 0, 1);

  [...]
}
[RP]Rav is offline  
Old 07/03/2009, 12:03 AM   #9
FrazZ
Big Clucker
 
Join Date: Feb 2009
Posts: 186
Reputation: 0
Default Re: Need help with houses / house cars

Code:
Why would he want to switch to PEN1?,
Ask him dumbass.

Code:
Are you just posting random shit to get your post count up?
Are YOU arguing with random people accross the internet to get your post count up?

Code:
1) He could have a stunt server/DM/RP
True.

Code:
2) PEN1 is old
Nope, its a classic.

And IDK about you but arguing is quite pointless in this matter. So, the moral of the story is, STFU.
FrazZ 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
[FilterScript] [FS] C-House - Load, and Save houses through MySQL. Quick and Easy! Carlton Filterscripts 79 12/02/2013 03:32 PM
[HELP] Adding Houses and House Cars in LA-RP Gamemode GloomY Help Archive 1 23/02/2010 07:32 AM
[Map] [MAP]House with cars killer__577 Maps 7 21/01/2010 09:42 PM
houses + cars 123orel321 Help Archive 1 22/08/2009 05:30 PM


All times are GMT. The time now is 07:06 AM.


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