OnVehicleRespray

From SA-MP Wiki

Jump to: navigation, search

OnVehicleRespray


This callback is called when a player changes the color of their vehicle.


Parameters:
(playerid, vehicleid, color1, color2)
playeridThe ID of the player who is driving the vehicle.
vehicleidThe ID of the vehicle that was resprayed.
color1The color that the vehicle's primary color was changed to.
color2The color that the vehicle's secondary color was changed to.


This callback does not handle returns.


Note: Only called for Transfender


public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    new string[48];
    format(string, sizeof(string), "You sprayed vehicle %d to colors %d and %d!", vehicleid,color1,color2);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
}

Related Functions

The following functions might be useful, as they're related to this callback in one way or another.


Related Callbacks

The following callbacks might be useful as well, as they're related to this callback in one way or another.

Personal tools