Respawn Vehicles - Please Help
#1

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 ****
Reply
#2

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;
}
Reply
#3

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);
    }
Reply
#4

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 !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)