OnPlayerDisconnect [REPS Ofcourse :D]
#2

You mean when you disconnect the car respawns, and when a passenger disconnects if your the leadership you want the car not to respawn? I think this is how its made :P

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new iSeat = GetPlayerVehicleSeat(playerid);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(iSeat >= 1)
        {
            // Do nothing
        }
        else
        {
            SetVehicleToRespawn(GetPlayerVehicleID(playerid));
        }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerDisconnect [REPS Ofcourse :D] - by MahdiGames - 01.02.2014, 20:42
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by TheFlyer - 01.02.2014, 21:19
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by Duck4coder - 01.02.2014, 21:35
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by MahdiGames - 01.02.2014, 21:43
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by CuervO - 01.02.2014, 23:35
Re: OnPlayerDisconnect [REPS Ofcourse :D] - by MahdiGames - 02.02.2014, 06:46

Forum Jump:


Users browsing this thread: 1 Guest(s)