Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.06 KB | None | 0 0
  1. if (strcmp(cmd, "/savecar", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             new car;
  6.             if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { car = PlayerInfo[playerid][pPcarkey]; }
  7.             else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { car = PlayerInfo[playerid][pPcarkey2]; }
  8.             if (car != 999)
  9.             {
  10.                 if(IsPlayerInVehicle(playerid, car))
  11.                 {
  12.                     new info[] = "Save Car Position \n Save Car Mods \n Save All Car Mods \n Clear Car Mods \n Clear All Car Mods ";
  13.                     ShowPlayerDialog(playerid, 1300, DIALOG_STYLE_LIST,"Choose the Option",info,"Ok","Cancel");
  14.                     SendClientMessage(playerid, COLOR_PINK,"* To save the vehicle paintjob and colours use /v paintjob and /v color");
  15.                     SendClientMessage(playerid, COLOR_GRAD1, "* You are not in a setted car.");
  16.                 }
  17.                 else
  18.                 {
  19.                     SendClientMessage(playerid, COLOR_GRAD1, "* You are not in your vehicle!");
  20.                 }
  21.             }
  22.             else
  23.             {
  24.                 SendClientMessage(playerid, COLOR_GRAD1, "* You do not own a car!");
  25.             }
  26.         }
  27.         return 1;
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement