Respawn Vehicles - Please Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Respawn Vehicles - Please Help (
/showthread.php?tid=522132)
Respawn Vehicles - Please Help -
M0HAMMAD - 26.06.2014
Hi all
I Have A Cmd /RV When Admin Used All Cars Respawn But
When Admin Do This. The Cars Are VIP Spawned Not Destroy
Why?
I Use Include foreach But This have A problem
when admin used after 5 sec the vehicles respawn and the server it's like is off for 5 sec
so this i say
1. I Need a cmd /rv to when admin used all vehicle respawn but VIP vehicle destroy
2.my cmd rv it's useing include foreach but after 5 sec the vehicle respawn and it's like the server is off for
5 sec...
----------- and ...
it possible? use like /rv and all vehicles in server destory and create new vehicle ?AddStaticVehicleEx(448, -1824.7000, 616.5000, 34.6650, 180.0000, -1, -1, 900);
*** sorry for my bad english ****
Re: Respawn Vehicles - Please Help -
M0HAMMAD - 26.06.2014
this is the my cmd :
pawn Код:
dcmd_rv(playerid,params[])
{
#pragma unused params
new string[128];
for(new v = 1; v != MAX_VEHICLES; ++v)
{
if (!IsVehicleOccupied(v)) SetVehicleToRespawn(v);
}
format(string,sizeof(string),"{00ff00}Admin {8282ff}%s(%d) {00ff00}Mashin Ha Ra Dobare Load Kard.",PlayerName(playerid),playerid);
SendClientMessageToAll(COLOR_ADMIN,string);
return 1;
}
Re: Respawn Vehicles - Please Help -
BroZeus - 26.06.2014
try use this
pawn Код:
native IsValidVehicle(vehicleid);//on top of script
for(new v = 0; v <= MAX_VEHICLES; v++)
{
if(!IsValidVehicle(v))continue;
if(!IsVehicleOccupied(v)) SetVehicleToRespawn(v);
}
Re: Respawn Vehicles - Please Help -
M0HAMMAD - 26.06.2014
Thanks BroZeus
It's Not More 5 Sec. 1 Sec

but the vip vehicle is not destroy
VIP Car Is The LastCar You Sayed In Skype To Me !