Guest User

Untitled

a guest
Jul 11th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. COMMAND:colorcar(playerid, params[])
  2. {
  3. new color1, color2;
  4. new string[64];
  5. if(!sscanf(params, "ui", color1, color2))
  6. {
  7. if (GetPlayerVehicleID(playerid) != 0)
  8. {
  9. ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
  10. format(string, sizeof(string), "Vehicle color changed to %i, %i!", color1, color2);
  11. SCM(playerid, YELLOW, string);
  12. }
  13. else SCM(playerid, RED, "You are not in a vehicle!");
  14. }
  15. else if(IsPlayerInAnyVehicle(playerid)==1)
  16. {
  17. SCM(playerid, RED, "Usage: /colorcar [Color1] [Color2]");
  18. }
  19. else SCM(playerid, RED, "Command error!");
  20. return 1;
  21. }
Add Comment
Please, Sign In to add comment