Disable Tune Garages
#6

Quote:
Originally Posted by _Zeus
View Post
Alright, I tested this a minute ago and it works fine. I don't get any opcode warning and it prevents it

pawn Code:
public OnGameModeInit( )
{
    CreateObject(971, -2715.97388, 217.96039, 3.80217,   0.00000, 0.00000, -90.00000); // Arch - SF
    return 1;
}

public OnPlayerConnect( playerid )
{
    RemoveBuildingForPlayer(playerid, 10575, -2716.3516, 217.4766, 5.3828, 0.25); // Arch - SF
    return 1;
}
I tested only the mod shop which is located to SF (arch) for elegy/sultan etc.

If you let players spawn vehicles, then it may fails because a player A can push playe B with forklift inside the gate and if player B spawns a vehicle, then he can tune it! You can add what I told you on my first post to prevent that kind of things.

EDIT: I had time and I removed garage doors/added gates. Have fun!
pawn Code:
/* REMOVING GARAGE DOOR - ADDING GATE :: MOD SHOPS

    CreateObject(971, -2715.9738, 217.9603, 3.8021, 0.00000, 0.00000, -90.00000); // SF - Wheel Arch Angels
    RemoveBuildingForPlayer(playerid, 10575, -2716.3516, 217.4766, 5.3828, 0.25);  // SF - Wheel Arch Angels
   
    CreateObject(971, -1935.48157, 239.04761, 33.76325, 0.00000, 0.00000, 0.00000); // SF - TransFender
    RemoveBuildingForPlayer(playerid, 11313, -1935.8594, 239.5313, 35.3516, 0.25); // SF - TransFender
   
    CreateObject(971, 2387.05225, 1043.28174, 10.06653, 0.00000, 0.00000, 0.00000); // LV - TransFender
    RemoveBuildingForPlayer(playerid, 9093, 2386.6563, 1043.6016, 11.5938, 0.25); // LV - TransFender
   
    CreateObject(971, 1042.46680, -1026.00427, 31.93635, 0.00000, 0.00000, 0.00000); // LS - TransFender
    RemoveBuildingForPlayer(playerid, 5779, 1041.3516, -1025.9297, 32.6719, 0.25); // LS - TransFender
   
    CreateObject(971, 2644.86719, -2039.28308, 11.50120, 0.00000, -90.00000, 0.00000); // LS - Loco Low Co.
    RemoveBuildingForPlayer(playerid, 5340, 2644.8594, -2039.2344, 14.0391, 0.25); // LS - Loco Low Co.
*/
PS: The last one on the Loco Low Co. was too small so I changed the rotation to vertically and the sign it has on it, it's in 90 degrees.
This is exactly what i did, but for me It crashed.
Reply


Messages In This Thread
Disable Tune Garages - by Stefand - 29.05.2013, 14:51
Re: Disable Tune Garages - by Konstantinos - 29.05.2013, 14:57
Re: Disable Tune Garages - by Stefand - 29.05.2013, 15:00
Re: Disable Tune Garages - by Stefand - 30.05.2013, 12:56
Re: Disable Tune Garages - by Konstantinos - 30.05.2013, 16:32
Re: Disable Tune Garages - by Stefand - 31.05.2013, 04:28
Re: Disable Tune Garages - by dubyabeast - 31.05.2013, 04:36
Re: Disable Tune Garages - by Konstantinos - 31.05.2013, 14:35
Re: Disable Tune Garages - by Stefand - 31.05.2013, 15:48
Re: Disable Tune Garages - by Stefand - 01.06.2013, 08:26

Forum Jump:


Users browsing this thread: 3 Guest(s)