Posts: 200
Threads: 51
Joined: Nov 2009
Reputation:
0
I need help, i've been looking all over the place to find a carspawn script, i need one that spawns a car for you (where you are) and if you spawn a new car the old one gets deleted and respawned or warped to you, also when you log off the old one dissapears, have tried it myself but couldnt make it work, (the farthest i have come is spawning a car but you steal someone elses XD)
So please help me locate this.
Thanks in advance!
Posts: 649
Threads: 4
Joined: Jul 2010
pawn Код:
if(strcmp(cmdtext, "/RespawnVehicle", true) )
{
VehicleReset();
return 1;
}
forward VehicleReset();
public VehicleReset()
{
new string[128];
format(string, sizeof(string), "Os Veнculos forгo Respawnados Automaticamente");
SendClientMessageToAll(Aviso, string);
new inVeh;
for( new i = 0; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for( new j = 0; j < MAX_PLAYERS; j++ )
{
if(IsPlayerInVehicle( j, i ))
{
inVeh = true;
break;
}
}
if(!inVeh)
{
SetVehicleToRespawn(i);
}
}
}
Posts: 476
Threads: 21
Joined: Feb 2009
Reputation:
0
If you spawn a new one now, the old one will be destroyed
Posts: 476
Threads: 21
Joined: Feb 2009
Reputation:
0
So you want to spawn 2 vehicles?
Posts: 476
Threads: 21
Joined: Feb 2009
Reputation:
0
Lol that's really dificult, I don't got the time for that now :P