How to detect..
#2

pawn Код:
stock IsVehicleInUse(vehicleid)
{
new IsTrue=0;
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerVehicleID(i) == vehicleid) IsTrue=1;
}
}
}
return IsTrue;
}
Not tested
Reply


Messages In This Thread
How to detect.. - by NewTorran - 07.06.2010, 10:29
Re: How to detect.. - by Desert - 07.06.2010, 11:27
Re: How to detect.. - by Norck - 07.06.2010, 12:46

Forum Jump:


Users browsing this thread: 2 Guest(s)