daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 132 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top