06.01.2011, 07:00
well i have my cars in a FilterScript and i have it so it destroys the vehicles on exit. but i dont want it to destroy cars with people in them. i have tried
But it still takes away the cars for players.
Can someone please post a working code?
P.S. I Searched
pawn Код:
public OnFilterScriptExit()
{
for(new p = 0; p < 20; p++)
{
for(new i = 0; i < VEHICLES; i++)
{
if(!IsPlayerInVehicle(p, i))
{
DestroyVehicle(i);
}
}
}
return 1;
}
Can someone please post a working code?
P.S. I Searched