SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 05/10/2009, 10:51 AM   #1
alex1a
Little Clucker
 
Join Date: Feb 2009
Posts: 32
Reputation: 0
Default How I Make Car Respawn

How I make a System when the people exit the car, the car respawn?
My GameMode is this: http://forum.sa-mp.com/index.php?topic=33818.0
alex1a is offline  
Old 05/10/2009, 10:55 AM   #2
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: How I Make Car Respawn

pawn Code:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  SetVehicleToRespawn(vehicleid);
  return 1;
}
Correlli is offline  
Old 05/10/2009, 11:05 AM   #3
Abernethy
Gangsta
 
Join Date: May 2009
Posts: 898
Reputation: -1
Default Re: How I Make Car Respawn

Use the SetVehicleToRespawn function.
Abernethy is offline  
Old 05/10/2009, 12:14 PM   #4
alex1a
Little Clucker
 
Join Date: Feb 2009
Posts: 32
Reputation: 0
Default Re: How I Make Car Respawn

Do you u have any script tho spwan vehicle after 20 seconds of use....

Ex.: I exit the vehicle and after 20 seconds, the vehicle respawn
alex1a is offline  
Old 05/10/2009, 12:19 PM   #5
.[XpoweR].
Little Clucker
 
Join Date: Oct 2009
Posts: 24
Reputation: 0
Default Re: How I Make Car Respawn

Try this i think it's work

Put on top

Code:
forward("VehicleRespawn");
And that (not on top)

Code:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  SetTimer("VehicleRespwn",2000,0);
  SetVehicleToRespawn(vehicleid);
  return 1;
}
i hope it work lol....
.[XpoweR]. is offline  
Old 05/10/2009, 12:21 PM   #6
Abernethy
Gangsta
 
Join Date: May 2009
Posts: 898
Reputation: -1
Default Re: How I Make Car Respawn

Quote:
Originally Posted by .[XpoweR
. ]
Try this i think it's work

Put on top

Code:
forward("VehicleRespawn");
Code:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  SetTimer("VehicleRespwn",2000,0);
  SetVehicleToRespawn(vehicleid);
  return 1;

i hope it work D:
}
Don't do it that way.
Use AddStaticVehicleEx or CreateVehicle. Search them on the wiki.
Abernethy is offline  
Old 05/10/2009, 12:21 PM   #7
[XST]O_x
High-roller
 
[XST]O_x's Avatar
 
Join Date: Aug 2009
Posts: 1,960
Reputation: 94
Default Re: How I Make Car Respawn

Quote:
Originally Posted by .[XpoweR
. ]
Try this i think it's work

Put on top

Code:
forward("VehicleRespawn");
And that (not on top)

Code:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  SetTimer("VehicleRespwn",2000,0);
  SetVehicleToRespawn(vehicleid);
  return 1;

i hope it work D:
}
Little mistake,he asked for 20 seconds.Just change 2000 to 20000
[XST]O_x is offline  
Old 05/10/2009, 12:22 PM   #8
.[XpoweR].
Little Clucker
 
Join Date: Oct 2009
Posts: 24
Reputation: 0
Default Re: How I Make Car Respawn

yup
.[XpoweR]. is offline  
Old 05/10/2009, 12:22 PM   #9
alex1a
Little Clucker
 
Join Date: Feb 2009
Posts: 32
Reputation: 0
Default Re: How I Make Car Respawn

Code:
forward("VehicleRespawn");
public OnPlayerExitVehicle(playerid, vehicleid)
{
  SetTimer("VehicleRespwn",2000,0);
  SetVehicleToRespawn(vehicleid);
  return 1;
}

I dont no where i put

Code:
forward("VehicleRespawn");
alex1a is offline  
Old 05/10/2009, 12:26 PM   #10
.[XpoweR].
Little Clucker
 
Join Date: Oct 2009
Posts: 24
Reputation: 0
Default Re: How I Make Car Respawn

put it on top after

Code:
#include <a_samp>
.[XpoweR]. 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
[MAKE HELP]Automatic Car Respawn zalyy Help Archive 21 24/05/2010 09:48 AM
How to make respawn when all players dead hardstop Help Archive 2 09/02/2010 06:01 PM
[HELP] Make These Objects Auto-Respawn Camacorn Help Archive 6 16/12/2009 09:05 PM
How I make a Command to Respawn alex1a Help Archive 7 08/10/2009 05:09 PM
How do i make it so when u go to a deathmatch teleport, when u die, u respawn bkohn Help Archive 3 17/07/2009 10:18 AM


All times are GMT. The time now is 01:35 PM.


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