Car deleting/despawning ??
#1

Hello all, i have this code:
PHP код:
            new veh;
            if(
IsPlayerInAnyVehicle(playerid))
            {
            
SendClientMessage(playerid0xFFFFFFFF"You are already in a vehicle, leave your car to spawn a new one.");
            }
            else
            
veh CreateVehicle(4152135.12, -2552.6513.559000100000000000000000000000000);
            
PutPlayerInVehicle(playerid,veh,0);
            
SetCameraBehindPlayer(playerid); 
And i have:

PHP код:
public OnPlayerExitVehicle(playeridvehicleid)
{
    new 
vehicleid2 GetPlayerVehicleID(playerid);
    
DestroyVehicle(vehicleid2);
    return 
1;

But i want, when he exits the vehicle, the car mustn't spawn again. It must despawn/go away completely. But it just re-spawns when he exits.
Reply


Messages In This Thread
Car deleting/despawning ?? - by lawonama - 18.06.2011, 22:21
Re: Car deleting/despawning ?? - by sleepysnowflake - 18.06.2011, 22:23
Re: Car deleting/despawning ?? - by lawonama - 18.06.2011, 22:30
Re: Car deleting/despawning ?? - by lawonama - 18.06.2011, 22:36
Re: Car deleting/despawning ?? - by sleepysnowflake - 18.06.2011, 22:40
Re: Car deleting/despawning ?? - by lawonama - 18.06.2011, 22:45
Re: Car deleting/despawning ?? - by sleepysnowflake - 18.06.2011, 22:48
Re: Car deleting/despawning ?? - by Madsen - 18.06.2011, 23:51
Re: Car deleting/despawning ?? - by lawonama - 19.06.2011, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)