Problem...
#1

I need help with that... I have this:

Код:
public OnVehicleSpawn(vehicleid)
{
	SetVehicleToRespawn(mothership);
	ChangeVehiclePaintjob(mothership,0);
	return 1;
}
It is a mothership Painjob... But the Painjob appears only after destroy this vehicle... I have no errors, I need just help, can anyone tell how to make this painjob appears without that destroy?
Reply
#2

pawn Код:
OnGameModeInit add SetVehicleToRespawn(mothership);

forward CarRespawn(carid);
public CarRespawn(carid)
{
    if( carid == mothership)
    {
        ChangeVehiclePaintjob(carid,0);
    }
    return 1;
}
public OnVehicleSpawn(vehicleid)
{
    if( vehicleid == mothership)
    {
            SetTimerEx("CarRespawn",1000,false,"i",vehicleid);
    }
    return 1;
}
This should work
Reply
#3

hi libra can you now give me your serrver ip?? ill help you there
Reply
#4

As mmrk said, that should work.
It is a bug that the vehicle doesn't actually spawn when OnVehicleSpawn is called, it's just some few milliseconds after or w/e.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)