Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:colorcar(playerid, params[])
- {
- new color1, color2;
- new string[64];
- if(!sscanf(params, "ui", color1, color2))
- {
- if (GetPlayerVehicleID(playerid) != 0)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
- format(string, sizeof(string), "Vehicle color changed to %i, %i!", color1, color2);
- SCM(playerid, YELLOW, string);
- }
- else SCM(playerid, RED, "You are not in a vehicle!");
- }
- else if(IsPlayerInAnyVehicle(playerid)==1)
- {
- SCM(playerid, RED, "Usage: /colorcar [Color1] [Color2]");
- }
- else SCM(playerid, RED, "Command error!");
- return 1;
- }
Add Comment
Please, Sign In to add comment