Vehicle respawn thing thing
#1

How to get vehicles respawn them self?
Reply
#2

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

https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Reply
#3

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
Reply
#4

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)
Reply
#5

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

And ecko i didn't mean that.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)