Make cars stay spawned in
#1

I need help making my player cars stay spawned in when they logout, I have tried this many different ways and no luck, could someone please help me? I am using zGaming script.
Reply
#2

Check for something like DestroyVehicle at OnPlayerDisconnect
Reply
#3

The cars are dynamic so once a player logs out they automatically destroy it's done purposely otherwise vehicles will keep building up. Now it would be possible to certainly make them stay for a period of time after the player logs out but its going to take a log of re-coding. If you couldn't figure out your approach right away your going to have trouble solving this problem.
Reply
#4

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)