Respawn All Vehicles On Server [SOLVED]
#1

Hi again...
Well i can't find how to do that.

I try to make commad with DestroyVehicle and it works but that vehicles just disapear from server, i just destroy it.
So i don't want to do that, i want to respawn all vehicles so they go on theri usually spawn position.
Can you give me some example, please.
Reply
#2

pawn Код:
for(new i=1; i < MAX_VEHICLES; i++)
{
    SetVehicleToRespawn(i);
}
Reply
#3

Ok from that i make:

pawn Код:
if (!strcmp(cmdtext,"/respawnajvozila"))
        {
                for(new i=1; i < MAX_VEHICLES; i++)
                {
                    SetVehicleToRespawn(i);
                }
                SendClientMessage(playerid, 0x33CCFFAA, "Vozila respawnana!");
                return 1;
        }
And it works like a charm, Respect MadeMan!! Thank you very much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)