Advertisement
Gireada

1.

Apr 27th, 2013
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.46 KB | None | 0 0
  1. if(strcmp(cmd, "/park", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             if(IsPlayerInAnyVehicle(playerid))
  6.             {
  7.                new car = GetPlayerVehicleID(playerid);
  8.                GetPlayerName(playerid, sendername, sizeof(sendername));
  9.                if(car == PlayerInfo[playerid][pCarKey] || strcmp(VehicleInfo[car][vOwner], sendername, true) || PlayerInfo[playerid][pAdmin] >= 4)
  10.                {
  11.                    GetPlayerPos(playerid, VehicleInfo[car][vLocationx], VehicleInfo[car][vLocationy], VehicleInfo[car][vLocationz]);
  12.                    GetVehicleZAngle(car, VehicleInfo[car][vAngle]);
  13.                    DestroyVehicle(car);
  14.                    CreateVehicle(VehicleInfo[car][vModel],VehicleInfo[car][vLocationx], VehicleInfo[car][vLocationy], VehicleInfo[car][vLocationz],VehicleInfo[car][vAngle], VehicleInfo[car][vColorOne], VehicleInfo[car][vColorTwo],-1);
  15.                    SavePersonalVehicle(car);
  16.                    SendClientMessage(playerid, COLOR_WHITE, "Ti-ai parcat masina la pozitia actuala!");
  17.                    return 1;
  18.                 }
  19.             }
  20.             else
  21.             {
  22.                 SendClientMessage(playerid, COLOR_WHITE, "Nu esti in masina pentru a putea folosi comanda!");
  23.                 return 1;
  24.             }
  25.         }
  26.         else
  27.         {
  28.           SendClientMessage(playerid, COLOR_WHITE, "Nu esti conectat pentru a putea folosi comanda!");
  29.           return 1;
  30.         }
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement