SA-MP Forums Archive
Not showing marker above the vehicle ? - 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: Not showing marker above the vehicle ? (/showthread.php?tid=199138)



Not showing marker above the vehicle ? - Seven. - 14.12.2010

Title says all

pawn Код:
public OnPlayerSpawn(playerid)
{
SetVehicleParamsForPlayer(ObjectiveVehicle,playerid,true,false);
    SetVehicleParamsForPlayer(ObjectiveVehicle2,playerid,true,false);
    SetVehicleParamsForPlayer(ObjectiveVehicle3,playerid,true,false);
    SetVehicleParamsForPlayer(ObjectiveVehicle4,playerid,true,false);
    SetVehicleParamsForPlayer(ObjectiveVehicle5,playerid,true,false);
    SetVehicleParamsForPlayer(ObjectiveVehicle6,playerid,true,false);
return 1;
}



Re: Not showing marker above the vehicle ? - WillyP - 14.12.2010

OnVehicleSpawn ftw


Re: Not showing marker above the vehicle ? - Seven. - 14.12.2010

And.. how would i be making there the markers on the vehicles? As it has playerid in the code :S


Re: Not showing marker above the vehicle ? - WillyP - 14.12.2010

Quote:
Originally Posted by Seven.
Посмотреть сообщение
And.. how would i be making there the markers on the vehicles? As it has playerid in the code :S
'cause you've done it wrong - wait, you only wanted it showing for the playerid? But no exceptions so I don't know what you're doing with this.


Re: Not showing marker above the vehicle ? - Seven. - 14.12.2010

No.. for everyone.


Re: Not showing marker above the vehicle ? - CrucixTM - 14.12.2010

Try putting it here:

pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}
Use forplayerid instead of playerid

and of course

if(vehicle == ObjectiveVehicle1) - put this in there, so it checks if the vehicle is the objective vehicle. Replace the name with yours


Re: Not showing marker above the vehicle ? - WillyP - 14.12.2010

Quote:
Originally Posted by Seven.
Посмотреть сообщение
No.. for everyone.
Well why didn't you say that in your first post..?


Re: Not showing marker above the vehicle ? - Seven. - 14.12.2010

Well.. everyone spawns, don't they? So i thought it would be clear enough...