All pastes #998537 Raw Edit

Admin House

public text v1 · immutable
#998537 ·published 2008-04-26 17:02 UTC
rendered paste body
#include <a_samp>
new admingate;

// This filterscript is made by Matias_Matute
// The only change u can make is add a interior
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Admin House by Matias_Matute");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main ()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
CreateObject(987, 2277.969482, 614.511536, 9.823521, 0.0000, 0.0000, 270.6186);
CreateObject(7379, 2311.770752, 603.176331, 9.822331, 0.0000, 0.0000, 89.3814);
CreateObject(7379, 2265.963623, 602.565308, 9.820134, 0.0000, 0.0000, 270.6186);
CreateObject(7423, 2287.540771, 616.400757, 9.818406, 0.0000, 0.0000, 91.1003);
CreateObject(987, 2299.815430, 615.202393, 9.820313, 0.0000, 0.0000, 270.6186);
CreateObject(3749, 2287.880859, 615.221680, 15.678727, 0.0000, 0.0000, 0.0000);
CreateObject(7379, 2146.187256, 589.528748, 9.820134, 0.0000, 0.0000, 0.0000);
CreateObject(9582, 2373.390381, 587.820618, 15.551043, 0.0000, 0.0000, 256.8681);
CreateObject(972, 2428.133057, 587.721497, 8.813257, 0.0000, 0.0000, 0.0000);
CreateObject(972, 2427.926270, 565.974854, 7.202957, 0.0000, 0.0000, 0.0000);
CreateObject(3578, 2345.537842, 579.793274, 7.559283, 0.0000, 0.0000, 91.1003);
CreateObject(3578, 2345.630859, 569.525146, 7.559283, 0.0000, 0.0000, 90.2409);
CreateObject(2406, 2288.795898, 536.293701, 2.044609, 0.0000, 0.0000, 0.0000);
CreateObject(2406, 2288.785156, 535.777039, 2.044609, 0.0000, 0.0000, 0.0000);
CreateObject(2405, 2288.666748, 535.147644, 2.044609, 0.0000, 0.0000, 0.0000);
CreateObject(6295, 2187.574707, 577.211426, 33.752701, 0.0000, 0.0000, 0.0000);
CreateObject(639, 2369.053711, 554.852112, 22.396475, 0.0000, 0.0000, 0.0000);
CreateObject(639, 2358.772705, 566.984924, 22.212833, 0.0000, 0.0000, 0.0000);
CreateObject(639, 2358.633301, 571.269531, 22.247749, 0.0000, 0.0000, 0.0000);
CreateObject(639, 2358.154053, 586.113525, 16.809771, 0.0000, 0.0000, 0.0000);
CreateObject(819, 2349.220947, 592.913879, 8.666014, 0.0000, 0.0000, 0.0000);
CreateObject(1597, 2287.600830, 622.230957, 12.477695, 0.0000, 0.0000, 0.0000);
CreateObject(1597, 2287.634277, 607.473450, 12.477695, 0.0000, 0.0000, 0.0000);
CreateObject(3802, 2280.860840, 618.047546, 13.789068, 0.0000, 357.4217, 93.6785);
CreateObject(3802, 2295.508057, 617.972412, 14.060945, 0.0000, 359.1406, 83.3654);
CreateObject(8888, 2189.734375, 577.763550, 10.586438, 0.0000, 0.0000, 0.0000);
CreateObject(621, 2391.239502, 548.138550, 6.684666, 0.0000, 0.0000, 0.0000);
CreateObject(8841, 2316.174805, 574.223572, 10.107491, 0.0000, 0.0000, 0.0000);
CreateObject(2780, 2189.164795, 575.683411, 56.975693, 0.0000, 0.0000, 0.0000);
CreateObject(6965, 2274.957031, 576.933533, 11.392675, 0.0000, 0.0000, 0.0000);
CreateObject(9833, 2279.719971, 578.383789, 9.983793, 0.0000, 0.0000, 0.0000);
CreateObject(9833, 2275.739502, 582.285339, 9.983793, 0.0000, 0.0000, 0.0000);
CreateObject(9833, 2276.171875, 572.139771, 9.983793, 0.0000, 0.0000, 0.0000);
CreateObject(9833, 2269.303467, 576.668091, 9.982754, 0.0000, 0.0000, 0.0000);
CreateObject(1245, 2267.261475, 549.956177, 8.267785, 0.0000, 0.0000, 90.2409);
AddStaticVehicle(535,2330.5046,579.8935,7.5419,179.8557,0,0); // car
AddStaticVehicle(535,2331.5422,568.4704,7.5429,359.2163,0,0); // car
AddStaticVehicle(535,2324.6082,568.3769,7.5433,359.3162,0,0); // car
AddStaticVehicle(535,2324.7515,580.0417,7.5455,359.3599,0,0); // car
AddStaticVehicle(451,2305.0471,568.2802,7.4926,359.7939,0,0); // turismo
AddStaticVehicle(451,2304.6257,580.3265,7.4870,3.7976,0,0); // turismo
AddStaticVehicle(451,2242.9880,551.6534,7.4883,98.6070,0,0); // turismo
AddStaticVehicle(460,2354.3391,518.4624,1.7093,270.9110,0,0); // plane
AddPlayerClass(217,2290.0483,583.7378,7.7813,295.9205,17,999,48,999); // adminspawn
admingate = CreateObject(16773, 2287.92, 617.19, 12.00, 0.00, 0.00, 0.00);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

if (strcmp(cmdtext, "/openadmin", true)==0)
       {
      MoveObject (admingate, 2287.92, 617.19, 6.00, 2);
      return 1;
       }
if (strcmp(cmdtext, "/closeadmin", true)==0)
   {
   MoveObject (admingate, 2287.92, 617.19, 12.00, 2);
   return 1;
   }

return 0;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}