Vehicle respawn thing thing -
velkarumpali - 28.07.2009
How to get vehicles respawn them self?
Re: Vehicle respawn thing thing -
clean180ollie - 28.07.2009
Quote:
Originally Posted by velkarumpali
How to get vehicles respawn them self?
|
use
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Re: Vehicle respawn thing thing -
.::: Ecko :::. - 28.07.2009
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
Re: Vehicle respawn thing thing -
clean180ollie - 28.07.2009
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)
Re: Vehicle respawn thing thing -
velkarumpali - 28.07.2009
While waiting answers i solved it on my own, but thanks anyway.
And ecko i didn't mean that.
Re: Vehicle respawn thing thing -
.::: Ecko :::. - 28.07.2009
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