toribio

toribio

Aug 29th, 2008
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1.     case 0:
  2.     {
  3.         if(GetPlayerMoney(playerid) >= 70000) //quantia de grana
  4.         {
  5.             new Float:x, Float:y, Float:z, Float:a;
  6.             GetPlayerPos(playerid, x, y, z);
  7.             vehicle1 = CreateVehicle(522, x, y, z, 0, -1, -1, 99999999);
  8.             vehicle_respawn[vehicle1] = 1;
  9.             PutPlayerInVehicle(playerid, vehicle1, 0);
  10.             GetPlayerFacingAngle(playerid, a);
  11.             SetVehicleZAngle(vehicle1, a);
  12.             //DestroyMenu(Menu:Main1); //n�o use isso, destruir� o menu pra sempre, use isto:
  13.             HideMenuForPlayer(Main1, playerid);
  14.             LinkVehicleToInterior(vehicle1, GetPlayerInterior(playerid));
  15.             SetCameraBehindPlayer(playerid);
  16.             GivePlayerMoney(playerid, -70000);
  17.             SendClientMessage(playerid, COLOR_GREEN, "Voc� adquiriu uma Nrg500 que lhe custou 70000$");
  18.             TogglePlayerControllable(playerid, 1);
  19.         } else {
  20.             SendClientMessage(playerid, 0xFF0000AA, "Voc� n�o possue $70000!");
  21.         }
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment