OnPlayerExitVehicle Help
#5

Quote:
Originally Posted by Syncro
Посмотреть сообщение
Why u use the loop?
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetTimerEx("DesVeh", 6000, 0, "i", vehicleid);
    return 1;
}

forward DesVeh(vehid);
public DesVeh(vehid)
{
    SetVehicleToRespawn(vehid);
}
He's using it so that if any player is in vehicle, it doesn't get respawned so removing that can make a flaw.

Quote:
Originally Posted by MahdiGames
Посмотреть сообщение
Thanks but the function which i gived is makes loop for all the players can i make it for 1 player?
Making it for 1 player is the wrong way to go since basically you can't tell who's in vehicle without looping through MAX_PLAYERS and making the checks. Stop worrying! Your code is all good, if you notice something in performence while running it then come here and make a report otherwise it's all nice!
Reply


Messages In This Thread
OnPlayerExitVehicle Help - by MahdiGames - 28.01.2014, 20:36
Re: OnPlayerExitVehicle Help - by Scottas - 28.01.2014, 20:52
Re: OnPlayerExitVehicle Help - by MahdiGames - 28.01.2014, 20:59
Re: OnPlayerExitVehicle Help - by Syncro - 28.01.2014, 21:03
Re: OnPlayerExitVehicle Help - by [KHK]Khalid - 28.01.2014, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)