[FilterScript] Bike and Driving School Gates Removed (SA-MP 0.3d)
#2

Quote:
Originally Posted by Geso
Посмотреть сообщение
Another even simpler script, that removes the gates at the bike and the driving school so you can enter the grounds without having to climb over it.

I'd wanted to post this in useful snippets in the first place, but since the topic doesn't work for me, I'll post it here. Mods/admins may move it to there if they want.

Код:
#include <a_samp>
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Driving and Bike School Gates Removed by Geso (SA-MP 0.3d)");
	print("--------------------------------------\n");
	for(new i=0;i<MAX_PLAYERS;i++)
	{
		RemoveBuildingForPlayer(i, 8229, 0.0, 0.0, 0.0, 6000.0);
    	RemoveBuildingForPlayer(i, 11014, 0.0, 0.0, 0.0, 6000.0);
    }
	return 1;
}

public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 8229, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 11014, 0.0, 0.0, 0.0, 6000.0);
	return 1;
}
Cool release, but there is no need to remove it twice, either do it on gamemode init or onplayerconnect. Both is not needed.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)