SA-MP Forums Archive
[FilterScript] Ocean Docks Jail - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Ocean Docks Jail (/showthread.php?tid=274530)



Ocean Docks Jail - Mr.1337 - 06.08.2011

Ocean Docks Jail - AEC Jail - Made by Mr1337

Short vedio explains it.
[ame=http://www.youtube.com/watch?v=5FilTzgEjWA&feature=channel_video_title]Here is the vedio[/ame]


Objects:
Код:
CreateObject(3919,889.09295654,-1286.05578613,215.05224609,0.00000000,0.00000000,0.00000000); //object(lib_main_bistrotop) (1)
CreateObject(991,883.50872803,-1285.53393555,216.40814209,0.00000000,0.00000000,88.00000000); //object(bar_barriergate1) (1)
CreateObject(980,664.91674805,-1311.10253906,15.23432922,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
CreateObject(985,678.64843750,-1309.55078125,12.66992664,0.00000000,0.00000000,0.00000000); //object(gate_autor) (1)
CreateObject(985,678.64843750,-1309.55078125,12.66992664,0.00000000,0.00000000,0.00000000); //object(gate_autor) (2)
CreateObject(985,686.40270996,-1309.53125000,12.69774818,0.00000000,0.00000000,0.00000000); //object(gate_autor) (3)
CreateObject(985,687.54162598,-1341.86047363,20.46129608,0.00000000,0.00000000,0.00000000); //object(gate_autor) (4)
CreateObject(985,687.54162598,-1341.86047363,20.46129608,0.00000000,0.00000000,0.00000000); //object(gate_autor) (5)
CreateObject(985,694.20483398,-1309.53125000,12.74943829,0.00000000,0.00000000,0.00000000); //object(gate_autor) (6)
CreateObject(985,702.02807617,-1309.53125000,12.71400070,0.00000000,0.00000000,0.00000000); //object(gate_autor) (7)
CreateObject(985,709.86236572,-1309.53125000,12.64338779,0.00000000,0.00000000,0.00000000); //object(gate_autor) (8)
CreateObject(985,717.67242432,-1309.53125000,12.64222622,0.00000000,0.00000000,0.00000000); //object(gate_autor) (9)
CreateObject(985,725.51165771,-1309.53125000,12.60558891,0.00000000,0.00000000,0.00000000); //object(gate_autor) (10)
CreateObject(985,733.28411865,-1309.52575684,12.62159538,0.00000000,0.00000000,0.00000000); //object(gate_autor) (11)
CreateObject(985,740.93896484,-1309.53125000,12.60789490,0.00000000,0.00000000,0.00000000); //object(gate_autor) (12)
CreateObject(985,666.07171631,-1215.59326172,16.82354927,0.00000000,0.00000000,62.00000000); //object(gate_autor) (13)
CreateObject(985,748.70117188,-1309.53125000,12.68987179,0.00000000,0.00000000,0.00000000); //object(gate_autor) (14)
CreateObject(985,756.43194580,-1309.55859375,12.67457008,0.00000000,0.00000000,0.00000000); //object(gate_autor) (15)
CreateObject(985,764.28472900,-1309.71569824,12.65761375,0.00000000,0.00000000,0.00000000); //object(gate_autor) (16)
CreateObject(985,772.09259033,-1309.87963867,12.61616039,0.00000000,0.00000000,0.00000000); //object(gate_autor) (17)
CreateObject(985,651.73632812,-1309.53784180,12.74197769,0.00000000,0.00000000,0.00000000); //object(gate_autor) (18)
CreateObject(14501,2573.87451172,-1615.66186523,662.52868652,0.00000000,0.00000000,0.00000000); //object(motel_grill) (1)
CreateObject(14501,2623.51782227,-1655.62634277,648.43707275,0.00000000,0.00000000,0.00000000); //object(motel_grill) (2)
CreateObject(969,2810.76098633,-2346.52880859,15.87805367,0.00000000,0.00000000,92.00000000); //object(electricgate) (1)
CreateObject(969,2810.66455078,-2346.69873047,12.62807846,0.00000000,0.00000000,270.00000000); //object(electricgate) (3)
CreateObject(969,2810.69018555,-2338.80517578,15.62806511,0.00000000,0.00000000,92.00000000); //object(electricgate) (4)
CreateObject(969,2801.88745117,-2330.01074219,15.88281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (5)
CreateObject(969,2793.37695312,-2329.96533203,15.79969025,0.00000000,0.00000000,0.00000000); //object(electricgate) (6)
CreateObject(969,2785.36596680,-2330.16796875,12.79969025,0.00000000,0.00000000,2.00000000); //object(electricgate) (7)
CreateObject(969,2801.97607422,-2330.03759766,12.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (8)
CreateObject(969,2793.98632812,-2329.98413086,12.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (9)
CreateObject(969,2785.38769531,-2330.12915039,15.88281250,0.00000000,0.00000000,4.00000000); //object(electricgate) (10)
CreateObject(969,2810.68945312,-2338.80468750,12.62806511,0.00000000,0.00000000,90.00000000); //object(electricgate) (11)
CreateObject(969,2810.76000977,-2338.31494141,12.62805367,0.00000000,0.00000000,92.00000000); //object(electricgate) (12)
CreateObject(969,2810.73999023,-2346.52392578,12.62805939,0.00000000,0.00000000,90.00000000); //object(electricgate) (13)
CreateObject(969,2810.74072266,-2346.68481445,15.87805748,0.00000000,0.00000000,269.99996948); //object(electricgate) (14)
CreateObject(969,2801.96484375,-2355.07714844,12.63025284,0.00000000,0.00000000,0.00000000); //object(electricgate) (15)
CreateObject(969,2802.02075195,-2355.11328125,15.88018799,0.00000000,0.00000000,0.00000000); //object(electricgate) (16)
CreateObject(969,2793.55615234,-2355.05810547,12.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (17)
CreateObject(969,2793.56298828,-2355.08081055,15.88281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (18)
CreateObject(969,2785.33129883,-2330.25244141,12.63281250,0.00000000,0.00000000,270.00000000); //object(electricgate) (19)
CreateObject(969,2785.30688477,-2339.01660156,15.88281250,0.00000000,0.00000000,272.00000000); //object(electricgate) (20)
CreateObject(969,2785.28588867,-2355.21240234,12.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (21)
CreateObject(969,2785.31054688,-2347.68530273,15.88281250,0.00000000,0.00000000,272.00000000); //object(electricgate) (22)
CreateObject(969,2785.24218750,-2355.20678711,15.88281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (23)
CreateObject(969,2785.32080078,-2330.18994141,15.63281250,0.00000000,0.00000000,270.00000000); //object(electricgate) (24)
CreateObject(969,2785.28051758,-2339.05249023,12.63281250,0.00000000,0.00000000,272.00000000); //object(electricgate) (25)
CreateObject(969,2785.28710938,-2347.79101562,12.63281250,0.00000000,0.00000000,274.00000000); //object(electricgate) (26)
CreateObject(969,2802.14160156,-2342.30566406,15.88281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (27)
CreateObject(969,2793.63818359,-2342.28295898,15.88281345,0.00000000,0.00000000,0.00000000); //object(electricgate) (28)
CreateObject(969,2785.03295898,-2342.31835938,12.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (29)
CreateObject(969,2802.59716797,-2342.31958008,12.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (30)
CreateObject(969,2793.78125000,-2342.23950195,12.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (31)
CreateObject(969,2785.07983398,-2342.06396484,15.63281250,0.00000000,0.00000000,0.00000000); //object(electricgate) (32)
CreateObject(969,2798.34570312,-2342.43334961,12.63281250,0.00000000,0.00000000,90.00000000); //object(electricgate) (33)
CreateObject(969,2798.30688477,-2338.55102539,15.63281250,0.00000000,0.00000000,92.00000000); //object(electricgate) (34)
CreateObject(969,2798.32397461,-2333.82592773,15.63281250,0.00000000,0.00000000,270.00000000); //object(electricgate) (35)
CreateObject(969,2798.47949219,-2338.42431641,12.63281250,0.00000000,0.00000000,92.00000000); //object(electricgate) (36)
CreateObject(969,2798.30981445,-2342.47265625,15.88281250,0.00000000,0.00000000,268.00000000); //object(electricgate) (37)
CreateObject(969,2798.05126953,-2348.51049805,15.88281250,0.00000000,0.00000000,268.00000000); //object(electricgate) (38)
CreateObject(969,2798.33691406,-2342.57275391,12.63281250,0.00000000,0.00000000,268.00000000); //object(electricgate) (39)
CreateObject(969,2798.07006836,-2347.36669922,12.63281250,0.00000000,0.00000000,268.00000000); //object(electricgate) (40)
CreateObject(643,2794.91333008,-2352.89575195,13.10328388,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (1)
CreateObject(643,2790.44042969,-2352.01489258,13.10328388,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (2)
CreateObject(1670,2790.33911133,-2352.07104492,13.50336361,0.00000000,0.00000000,0.00000000); //object(propcollecttable) (1)
CreateObject(1825,2795.67749023,-2332.31152344,12.63281155,0.00000000,0.00000000,0.00000000); //object(kb_table_chairs1) (1)
CreateObject(1825,2791.28247070,-2332.36132812,12.63281250,0.00000000,0.00000000,0.00000000); //object(kb_table_chairs1) (2)
CreateObject(1337,2799.69067383,-2331.14550781,12.88281250,0.00000000,0.00000000,0.00000000); //object(1)
CreateObject(1337,2791.01293945,-2332.28613281,13.88281250,0.00000000,0.00000000,0.00000000); //object(2)
CreateObject(1432,2807.67089844,-2347.95825195,12.62881088,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (1)
CreateObject(980,2804.92919922,-2340.24609375,15.40620422,90.00000000,0.00000000,0.00000000); //object(airportgate) (3)
CreateObject(980,2804.74072266,-2336.08715820,15.40620422,90.00000000,0.00000000,180.00000000); //object(airportgate) (5)
CreateObject(980,2803.07373047,-2330.92993164,15.40620422,91.00000000,0.00000000,0.00000000); //object(airportgate) (6)
CreateObject(980,2793.90576172,-2332.45703125,15.40620422,91.00000000,0.00000000,0.00000000); //object(airportgate) (7)
CreateObject(980,2793.76147461,-2337.90747070,15.40620422,91.00000000,0.00000000,0.00000000); //object(airportgate) (8)
CreateObject(980,2791.61157227,-2340.97216797,15.40620422,91.00000000,0.00000000,0.00000000); //object(airportgate) (9)
CreateObject(980,2787.78198242,-2336.27978516,15.40620422,91.00000000,0.00000000,270.00000000); //object(airportgate) (10)
CreateObject(980,2794.31713867,-2345.33520508,15.40620422,91.00000000,0.00000000,0.00000000); //object(airportgate) (11)
CreateObject(980,2792.85058594,-2349.90966797,15.40620422,91.00000000,0.00000000,2.00000000); //object(airportgate) (12)
CreateObject(980,2792.85253906,-2352.85229492,15.40620422,91.00000000,0.00000000,0.00000000); //object(airportgate) (13)
CreateObject(980,2787.70898438,-2349.86206055,15.40620422,91.00000000,0.00000000,90.00000000); //object(airportgate) (14)
CreateObject(980,2802.95288086,-2344.99804688,15.40094757,91.00000000,0.00000000,358.00000000); //object(airportgate) (15)
CreateObject(980,2803.67309570,-2350.58666992,15.40317535,91.00000000,0.00000000,358.00000000); //object(airportgate) (16)
CreateObject(980,2809.84716797,-2347.53466797,15.40166855,91.00000000,0.00000000,270.00000000); //object(airportgate) (17)
CreateObject(980,2804.82299805,-2353.79394531,15.86275864,90.00000000,0.00000000,0.00000000); //object(airportgate) (18)
AEC Jail command:
Код:
	if(strcmp(cmd, "/aecjail", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /aecjail [playerid/PartOfName] [minutes] [reason]");
				return 1;
			}
			new playa;
			new time;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			time = strvalEx(tmp);
            if(PlayerInfo[playerid][pAdmin] >= 1)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
				        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						new length = strlen(cmdtext);
						while ((idx < length) && (cmdtext[idx] <= ' '))
						{
							idx++;
						}
						new offset = idx;
						new result[64];
						while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
						{
							result[idx - offset] = cmdtext[idx];
							idx++;
						}
						result[idx - offset] = EOS;
						if(!strlen(result))
						{
							SendClientMessage(playerid, COLOR_WHITE, "USAGE: /aecjail [playerid/PartOfName] [minutes] [reason]");
							return 1;
						}
						Jails += 1;
						format(string, sizeof(string), "AdmCmd: %s has been jailed in ocean docks by an Admin, reason: %s (Total jails: %d)", giveplayer, (result), Jails);
                		SendClientMessageToAll(COLOR_LIGHTRED, string);
                		ClearGuns(playa);
                		strmid(PlayerInfo[playa][pJailedReason], (result), 0, strlen((result)), 255); //jailed for why
						ResetPlayerWeapons(playa);
						PlayerInfo[playa][pWantedLevel] = 0;
						SetPlayerWantedLevel(playa, 0);
						SetPlayerToTeamColor(playa);
						PlayerInfo[playa][pJailed] = 1;
						PlayerInfo[playa][pJailTime] = time*60;
						SetPlayerInterior(playa, 0);
						SetPlayerVirtualWorld(playerid, 0);
						PlayerInfo[giveplayerid][pVirtualWorld] = 0;
						SetPlayerPos(playa, 2793.88,-2346.03,13.63 );
						SetPlayerFacingAngle(playa, -90);
						format(string, sizeof(string), "You are jailed for %d minutes.   Bail: Unable", time);
						SendClientMessage(playa, COLOR_LIGHTBLUE, string);
						SaveStuff();
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
			}
		}
		return 1;
	}



Re: Ocean Docks Jail - Ironboy - 06.08.2011

Good job keep it up.


Re: Ocean Docks Jail - Mr.1337 - 06.08.2011

Thanks mate.


Re : Ocean Docks Jail - Naruto_Emilio - 08.08.2011

Nice release


Re: Ocean Docks Jail - TheArcher - 08.08.2011

The command won't work, its just a copy& paste from your GM


Re: Ocean Docks Jail - malcomjones - 08.08.2011

Actually the commands will work you just have to know where to put them and stuff


Re: Re : Ocean Docks Jail - Mr.1337 - 08.08.2011

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
Nice release
Thanks


Re: Ocean Docks Jail - zombieking - 08.08.2011

That is not really a jail... That is a CAGE
Still nice work man


Re: Ocean Docks Jail - Mr.1337 - 28.08.2011

Quote:
Originally Posted by Anthony_prince
Посмотреть сообщение
The command won't work, its just a copy& paste from your GM
Dude, What MalcolmJones said.


Re: Re : Ocean Docks Jail - Mr.1337 - 27.10.2011

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
Nice release
Btw, you're arab?