Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(hGarazaEntered[playerid] != 9999)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- AC_SetPlayerPos(playerid, HouseInfo[hGarazaEntered[playerid]][hGarazaX], HouseInfo[hGarazaEntered[playerid]][hGarazaY], HouseInfo[hGarazaEntered[playerid]][hGarazaZ]);
- SetPlayerVirtualWorld(playerid, 0);
- hGarazaEntered[playerid] = 9999;
- }
- else if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new vehicleiid = GetPlayerVehicleID(playerid);
- Portan[playerid] = 4;
- SetPlayerVirtualWorld(playerid, 0);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerInVehicle(i, vehicleiid) && i != playerid)
- {
- SetPlayerVirtualWorld(i, 0);
- hGarazaEntered[i] = 9999;
- }
- }
- SetVehicleVirtualWorld(vehicleiid, 0);
- SetVehiclePos(vehicleiid, HouseInfo[hGarazaEntered[playerid]][hGarazaX], HouseInfo[hGarazaEntered[playerid]][hGarazaY], HouseInfo[hGarazaEntered[playerid]][hGarazaZ]);
- SetVehicleZAngle(vehicleiid, HouseInfo[hGarazaEntered[playerid]][hGarazaA]);
- hGarazaEntered[playerid] = 9999;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement