Problem with ChangeVehiclePaintjob - 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 with ChangeVehiclePaintjob (
/showthread.php?tid=172815)
Problem with ChangeVehiclePaintjob -
Libra_PL - 31.08.2010
Well, I need your help about this... Here's the script:
On the start of the script
On OnPlayerConnect
Код:
mothership = GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(mothership,0);
OnGameModeInit
Код:
mothership = AddStaticVehicleEx(483,-1101.638794, -1630.430176, 76.469536,270,-1,-1,20);
mothership = AddStaticVehicleEx(483,-1111.678589, -1630.315186, 76.469536,270,-1,-1,20);
mothership = AddStaticVehicleEx(483,-1104.774780, -1617.075928, 76.462784,270,-1,-1,20);
I have no errors. I wanted only get the The Truth's paintjob... When I come in-game, the paintjob is not changed, they looks like normal campers...
What did I wrong? Maybe it shouldn't be on OnPlayerConnect?
Anyway, help me in that
Re: Problem with ChangeVehiclePaintjob -
Jochemd - 31.08.2010
A player is not in a vehicle on his connect.
Re: Problem with ChangeVehiclePaintjob -
Libra_PL - 31.08.2010
Quote:
Originally Posted by Jochemd
A player is not in a vehicle on his connect.
|
So, where should I put it?
Re: Problem with ChangeVehiclePaintjob -
mmrk - 31.08.2010
pawn Код:
public OnVehicleSpawn(vehicleid)
{
ChangeVehiclePaintJob(mothership,0);
return 1;
}
Maybe?
Re: Problem with ChangeVehiclePaintjob -
Libra_PL - 31.08.2010
Still no paintjob
Re: Problem with ChangeVehiclePaintjob -
mmrk - 31.08.2010
Try this one
pawn Код:
public OnVehicleSpawn(vehicleid)
{
SetVehicleToRespawn(mothership);
ChangeVehiclePaintJob(mothership,0);
return 1;
}