Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.28 KB | None | 0 0
  1. if(hGarazaEntered[playerid] != 9999)
  2.             {
  3.                 if(!IsPlayerInAnyVehicle(playerid))
  4.                 {
  5.                     AC_SetPlayerPos(playerid, HouseInfo[hGarazaEntered[playerid]][hGarazaX], HouseInfo[hGarazaEntered[playerid]][hGarazaY], HouseInfo[hGarazaEntered[playerid]][hGarazaZ]);
  6.                     SetPlayerVirtualWorld(playerid, 0);
  7.                     hGarazaEntered[playerid] = 9999;
  8.                 }
  9.                 else if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  10.                 {
  11.                     new vehicleiid = GetPlayerVehicleID(playerid);
  12.                     Portan[playerid] = 4;
  13.                     SetPlayerVirtualWorld(playerid, 0);
  14.                     for(new i = 0; i < MAX_PLAYERS; i++)
  15.                     {
  16.                         if(IsPlayerInVehicle(i, vehicleiid) && i != playerid)
  17.                         {
  18.                             SetPlayerVirtualWorld(i, 0);
  19.                             hGarazaEntered[i] = 9999;
  20.                         }
  21.                     }
  22.                     SetVehicleVirtualWorld(vehicleiid, 0);
  23.                     SetVehiclePos(vehicleiid, HouseInfo[hGarazaEntered[playerid]][hGarazaX], HouseInfo[hGarazaEntered[playerid]][hGarazaY], HouseInfo[hGarazaEntered[playerid]][hGarazaZ]);
  24.                     SetVehicleZAngle(vehicleiid, HouseInfo[hGarazaEntered[playerid]][hGarazaA]);
  25.                     hGarazaEntered[playerid] = 9999;
  26.                 }
  27.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement