Advertisement
Guest User

0K

a guest
Feb 6th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.17 KB | None | 0 0
  1. if(strcmp(cmd, "/agarer", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             new Float:x,Float:y,Float:z;
  6.             new Float:a;
  7.             new carid;
  8.             carid = GetPlayerVehicleID(playerid);
  9.             GetPlayerName(playerid, playername, sizeof(playername));
  10.             GetVehiclePos(carid, x, y, z);
  11. //          GetPlayerFacingAngle(playerid, a);
  12.             GetVehicleZAngle(carid, a);
  13.             if(PlayerInfo[playerid][pAdmin] >= 3)
  14.             {
  15.                         CarInfo[carid][cLocationx] = x;
  16.                         CarInfo[carid][cLocationy] = y;
  17.                         CarInfo[carid][cLocationz] = z;
  18.                         CarInfo[carid][cAngle] = a;
  19.                         format(string, sizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
  20.                         GameTextForPlayer(playerid, "Vous avez garer ce vehicule a cette position. Il reaparetra ici.", 10000, 3);
  21.                         OnPropUpdate();
  22.                         OnPlayerUpdate(playerid);
  23.                         DestroyVehicle(carid);
  24.                         CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
  25.                     return 1;
  26.             }
  27.         }
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement