Problem... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem... (
/showthread.php?tid=173094)
Problem... -
Libra_PL - 01.09.2010
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?
Re: Problem... -
mmrk - 01.09.2010
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
Re: Problem... -
FireCat - 01.09.2010
hi libra can you now give me your serrver ip?? ill help you there
Re: Problem... -
LarzI - 01.09.2010
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.