Posts: 98
Threads: 30
Joined: Aug 2009
Reputation:
0
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i=0; i<MAX_VEHICLES; i++)
{
for(new pl = 0; pl<MAX_PLAYERS; pl++)
{
if(IsPlayerConnected(pl))
{
if(!IsPlayerInVehicle(pl, i))
{
SetVehicleToRespawn(i);
}
}
}
}
}
Posts: 98
Threads: 30
Joined: Aug 2009
Reputation:
0
Thanks, so what does that do exactly? Does that mean if a vehicle is not used for 5 seconds it re spawns to where it was?
And I get one error:
C:\Documents and Settings\Administrator\Desktop\SAMP\sampserver\fil terscripts\SSnSCarsReset.pwn(3) : error 021: symbol already defined: "AddStaticVehicleEx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
what's the difference between this, which is what I have:
AddStaticVehicle(424,407.0562,2437.2500,16.2805,35 8.0372,2,2); // da ground
and this? what does the "ex" do?
AddStaticVehicleEx ( 520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 15 );
Posts: 98
Threads: 30
Joined: Aug 2009
Reputation:
0
Thanks MadeMan I got it working. Thanks for being patient too