Problems2
#1

What to do spawn cars every payday?
Reply
#2

Could you please re-word your question for us?
Reply
#3

How do I give every payday to automatically respawn all cars
Reply
#4

Put this under your paycheck, and that will respawn all unused vehicles on every paycheck, also change it to your own variable to avoid errors.
pawn Код:
for(new i=0; i<MAX_VEHICLES; i++)
        {
                                new vehs;
                foreach(Player, x)
                {
                    if(GetPlayerVehicleID(x) == i)
                    {
                        vehs = 1;
                    }
                }
                if(!vehs)
                {
                    SetVehicleToRespawn(i);
                }
                vehs = 0;
        }
PS: U should have foreach include and hope you already have it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)