SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 28/07/2009, 03:56 PM   #1
velkarumpali
Little Clucker
 
Join Date: Jul 2009
Posts: 26
Reputation: 0
Default Vehicle respawn thing thing

How to get vehicles respawn them self?
velkarumpali is offline  
Old 28/07/2009, 04:29 PM   #2
clean180ollie
Huge Clucker
 
Join Date: Jun 2009
Posts: 260
Reputation: 0
Default Re: Vehicle respawn thing thing

Quote:
Originally Posted by velkarumpali
How to get vehicles respawn them self?
use

http://wiki.sa-mp.com/wiki/AddStaticVehicleEx
clean180ollie is offline  
Old 28/07/2009, 04:38 PM   #3
.::: Ecko :::.
Huge Clucker
 
Join Date: May 2009
Posts: 389
Reputation: 2
Default Re: Vehicle respawn thing thing

very simple,I'll write you an example.

for example you want to spawn an infernus ;

forward it

forward Spawncar(playerid,model);

make a variable;

new Spawncar[MAX_PLAYERS];

Command

if(strcmp(cmd, "/infernus", true) == 0) {
Spawncar(playerid,411);
return 1;}

some example;
public Spawncar(playerid,model){
new Float;new Float:y;new Float:z;
GetPlayerPos(playerid, x, y, z);

new string[256];

if(IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid, COLOR_RED, "You have alvredy a vehicle!");
}else{
if(Spawncar[playerid]==0){
Spawcar[playerid]=CarSpawnLimit;
new vehicleid=CreateVehicle(model, x+3, y, z, 900.00, -1, -1, -1);

}

just an example.

Ecko
.::: Ecko :::. is offline  
Old 28/07/2009, 04:42 PM   #4
clean180ollie
Huge Clucker
 
Join Date: Jun 2009
Posts: 260
Reputation: 0
Default Re: Vehicle respawn thing thing

Quote:
Originally Posted by .::: [E
Ecko :::. ]
very simple,I'll write you an example.

for example you want to spawn an infernus ;

forward it

forward Spawncar(playerid,model);

make a variable;

new Spawncar[MAX_PLAYERS];

Command

if(strcmp(cmd, "/infernus", true) == 0) {
Spawncar(playerid,411);
return 1;}

some example;
public Spawncar(playerid,model){
new Float;new Float:y;new Float:z;
GetPlayerPos(playerid, x, y, z);

new string[256];

if(IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid, COLOR_RED, "You have alvredy a vehicle!");
}else{
if(Spawncar[playerid]==0){
Spawcar[playerid]=CarSpawnLimit;
new vehicleid=CreateVehicle(model, x+3, y, z, 900.00, -1, -1, -1);

}

just an example.

Ecko
use
Code:
 command next time,

and let the person do it, (lazy)
clean180ollie is offline  
Old 28/07/2009, 04:53 PM   #5
velkarumpali
Little Clucker
 
Join Date: Jul 2009
Posts: 26
Reputation: 0
Default Re: Vehicle respawn thing thing

While waiting answers i solved it on my own, but thanks anyway.

And ecko i didn't mean that.
velkarumpali is offline  
Old 28/07/2009, 07:29 PM   #6
.::: Ecko :::.
Huge Clucker
 
Join Date: May 2009
Posts: 389
Reputation: 2
Default Re: Vehicle respawn thing thing

Quote:
Originally Posted by velkarumpali
While waiting answers i solved it on my own, but thanks anyway.

And ecko i didn't mean that.
Oh,respawn vehicles by them self..sorry my mistake.Well,okay if you solved your problem.
btw wiki king of scripting school

Ecko
.::: Ecko :::. 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
I need help with some GF thing Mark k Help Archive 6 20/01/2010 05:28 AM
Lil thing FrazZ Help Archive 3 30/06/2009 09:32 AM
One thing, someone help. Dreftas Help Archive 3 25/06/2009 07:37 PM
help with a thing... WardenCS Help Archive 4 25/04/2009 10:21 PM
Vehicle thing, please fast answer! loT4r Help Archive 3 15/03/2009 03:09 AM


All times are GMT. The time now is 05:41 AM.


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