How to script team vehicle colours?
#3

this goes above the main function
pawn Код:
new vehicle1;
this goes under GameModeInit
pawn Код:
vehicle1 == AddStaticVehicle(bla, bla, bla);
Look for OnPlayerEnterVehicle in your script and add this hope it helps
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[128];
    format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
    SendClientMessage(playerid, COLOR, string);//Replace COLOR with the color of the text you want
    return ChangeVehicleColor(vehicleid,color,color);//Ofcourse change vehicleid and colors
}
Reply


Messages In This Thread
How to script team vehicle colours? - by Alphos - 08.09.2010, 09:06
Re: How to script team vehicle colours? - by Mauzen - 08.09.2010, 09:16
Re: How to script team vehicle colours? - by Mean - 08.09.2010, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)