[MAP/SCIPT] Dragrace map + lift + script [Now Working!]
#1



Dragrace MAP By Addy Snow

WARING This is not a FS!, you need to add it in your gamemode or FS!


Introduction

Hello, I created a dragrace map, It got a lift, for two cars, If somebody use the command /start. The lifts go up in 30 sec, after 40 sec the lifts get reseted! The commands are included!


Commands(/cmds):

/dragrace /start


Pictures,Video's view:

[img width=497 height=768]http://i607.photobucket.com/albums/tt156/Addy_Snow/111111111.jpg[/img]


Код:
//above your script

forward racetimer(playerid);

forward Returnrace(playerid);

new bool: checkrace;

// under OnGameModeInit 
CreateObject(18450, 2768.567871, -2302.893555, 17.415369, 0.0000, 0.0000, 0.0000);
CreateObject(18450, 2845.317871, -2302.893555, 17.390369, 0.0000, 0.0000, 0.0000);
CreateObject(18450, 2923.067871, -2302.893555, 17.365370, 0.0000, 0.0000, 0.0000);
CreateObject(16775, 2728.618896, -2302.847656, 13.958336, 0.0000, 0.0000, 270.0000);
CreateObject(16775, 2728.616943, -2302.847656, 6.008331, 0.0000, 179.6223, 270.0000);
CreateObject(987, 2728.733398, -2286.996826, 2.346365, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2716.962891, -2287.492188, 2.395388, 0.0000, 0.0000, 0.0000);
CreateObject(17864, 2709.231445, -2302.814209, 2.196018, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2705.163086, -2287.492188, 2.395388, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2693.236816, -2287.492188, 2.395388, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2690.005127, -2305.709229, 2.045114, 0.0000, 0.0000, 90.0000);
CreateObject(987, 2689.929443, -2317.658447, 2.095114, 0.0000, 0.0000, 90.0000);
CreateObject(8168, 2686.532471, -2320.246582, 3.947973, 0.0000, 0.0000, 16.4066);
CreateObject(971, 2693.169678, -2290.553711, 4.678297, 0.0000, 359.1406, 47.7329);
CreateObject(974, 2725.221924, -2308.809082, 4.854503, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2308.809082, 10.354503, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2308.809082, 15.854481, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2304.311035, 4.854503, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2304.311035, 10.329500, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2304.311035, 15.829504, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2297.111816, 4.854503, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2301.611816, 15.929502, 0.0000, 0.0000, 357.4217);
CreateObject(974, 2725.221924, -2297.111816, 10.379492, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2297.111816, 15.854500, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2301.611816, 10.429506, 0.0000, 0.0000, 357.4217);
CreateObject(974, 2725.221924, -2301.611816, 4.954510, 0.0000, 0.0000, 357.4217);
CreateObject(3749, 2730.574219, -2303.029053, 21.342535, 0.0000, 0.0000, 270.0000);
CreateObject(1262, 2730.496582, -2302.726074, 23.023897, 0.0000, 89.3814, 90.2409);
CreateObject(9345, 2728.713623, -2294.074463, 9.124113, 0.0000, 269.7591, 0.0000);
CreateObject(972, 2731.887207, -2319.280762, 9.418207, 0.0000, 0.0000, 180.0000);
CreateObject(972, 2731.887207, -2319.280762, 2.168209, 0.0000, 0.0000, 180.0000);
CreateObject(9190, 2728.201660, -2320.177002, 12.363761, 0.0000, 0.0000, 270.0000);
CreateObject(5005, 2812.319580, -2294.698975, 21.137640, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 2812.319580, -2311.073486, 21.062641, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 2975.178223, -2294.747559, 21.137640, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 2975.178223, -2311.125000, 21.087641, 0.0000, 0.0000, 0.0000);
CreateObject(18450, 3002.010254, -2302.893555, 17.365370, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 2810.862305, -2302.953369, 19.335642, 0.0000, 0.0000, 0.0000);
CreateObject(5005, 2973.720215, -2302.953369, 19.335642, 0.0000, 0.0000, 0.0000);
CreateObject(974, 2725.221924, -2301.611816, 21.429506, 0.0000, 0.0000, 357.4217);
CreateObject(974, 2725.221924, -2297.111816, 21.354500, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2304.311035, 21.329508, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2725.221924, -2308.809082, 21.279490, 0.0000, 0.0000, 358.2811);
CreateObject(974, 2721.874756, -2305.354492, 20.690212, 0.0000, 0.0000, 268.2811);
CreateObject(974, 2721.874756, -2300.254883, 20.740211, 0.0000, 0.0000, 268.2811);
CreateObject(979, 2732.165039, -2302.424561, 19.474340, 0.0000, 0.0000, 353.9067);
CreateObject(978, 2732.299072, -2303.489502, 19.524363, 0.0000, 0.0000, 188.6717);
CreateObject(978, 2732.299072, -2303.489502, 20.374365, 0.0000, 0.0000, 188.6717);
CreateObject(978, 2732.299072, -2303.489502, 18.624361, 0.0000, 0.0000, 188.6717);
CreateObject(979, 2732.165039, -2302.424561, 18.599342, 0.0000, 0.0000, 353.9067);
CreateObject(979, 2732.165039, -2302.424561, 20.374346, 0.0000, 0.0000, 353.9067);
CreateObject(1231, 2753.209473, -2303.016846, 19.225962, 0.0000, 0.0000, 92.8192);
CreateObject(1231, 2819.558105, -2302.990967, 19.225962, 0.0000, 0.0000, 92.8192);
CreateObject(1231, 2886.282227, -2302.990967, 19.225962, 0.0000, 0.0000, 92.8192);
CreateObject(1231, 2937.905762, -2302.989014, 19.225962, 0.0000, 0.0000, 92.8192);
CreateObject(8040, 3081.493164, -2303.981934, 18.467144, 0.0000, 0.0000, 180.0000);
CreateObject(8407, 3043.229492, -2312.631592, 19.051889, 0.0000, 0.0000, 0.0000);
CreateObject(619, 3058.762939, -2311.244385, 17.850912, 0.0000, 0.0000, 270.0000);
CreateObject(619, 3058.237305, -2294.504150, 17.850912, 0.0000, 0.0000, 67.5001);
CreateObject(1597, 3068.015381, -2303.937012, 20.505777, 0.0000, 0.0000, 270.0000);
CreateObject(1597, 3093.969727, -2303.873535, 20.430779, 0.0000, 0.0000, 270.0000);
CreateObject(14402, 3058.438477, -2311.613525, 18.812981, 0.0000, 0.0000, 281.2500);
CreateObject(14402, 3058.912598, -2295.218750, 18.279558, 0.0000, 0.0000, 303.7500);
CreateObject(3330, 2916.963135, -2302.894775, 6.915711, 0.0000, 0.8594, 273.3604);
CreateObject(3330, 3043.569824, -2302.477539, 6.989686, 0.0000, 0.8594, 269.8454);
CreateObject(3330, 2761.064453, -2303.099365, 7.287604, 0.0000, 0.8594, 269.8454);
CreateObject(16501, 2721.918701, -2306.500244, 10.080755, 90.2409, 358.2811, 180.8595);
CreateObject(16501, 2721.918701, -2306.500244, 14.405762, 90.2409, 358.2811, 180.8595);
CreateObject(16501, 2721.965332, -2299.239258, 10.134762, 90.2409, 358.2811, 180.8595);
CreateObject(16501, 2721.965332, -2299.239258, 14.559767, 90.2409, 358.2811, 180.8595);
// cars
	AddStaticVehicle(451,2700.2939,-2318.1550,2.8195,5.1191,125,125); //
	AddStaticVehicle(451,2703.9263,-2317.2058,2.8160,359.3812,125,125); //
	AddStaticVehicle(451,2709.7375,-2318.1494,2.8195,1.7818,125,125); //
	AddStaticVehicle(451,2712.9380,-2317.4624,2.8183,0.6199,125,125); //
	AddStaticVehicle(522,2715.7546,-2318.7729,2.5604,9.7335,75,3); //
	AddStaticVehicle(522,2717.2900,-2320.2939,2.5694,1.3140,75,3); //
// under OnPlayerCommand
	
if(strcmp(cmdtext, "/start", true) == 0)
	{
		if(checkrace == false)
 	{
    SetTimer("racetimer", 30000, false);
 		MoveObject(Doorone, 2721.918701, -2306.500244, -2.044251, 1.5);
  	MoveObject(Doortwo, 2721.965332, -2299.239258, -1.965239, 1.5);
  	MoveObject(down1,2725.297852, -2306.566895, 2.177284 , 5);
		MoveObject(down2, 2725.297852, -2299.391602, 2.277285, 5);
 		SendClientMessageToAll(COLOR_YELLOW,"Get in the elevator! the race start in 30 sec! Find another player to race!"); 
 		SendClientMessageToAll(COLOR_YELLOW,"The dragrace get resseted in 40 sec!");
		checkrace = true;
	}
		else if(checkrace == true)
	{
		SendClientMessage(playerid,COLOR_RED,"Race already started, Please wait 40 sec and use /start again, or enter the lift!");
	}
	return 1;
	}
// somewere in your script


public racetimer(playerid)
{
SendClientMessageToAll(COLOR_FELRED,"If you are in the Dragrace, start racing if you are up! Race getting resseted in 40 sec!");
MoveObject(Doorone, 2721.918701, -2306.500244, 2.980749, 1);
MoveObject(Doortwo, 2721.965332, -2299.239258, 3.134760, 1);
MoveObject(down1, 2725.297852, -2306.566895, 17.927279, 1);
MoveObject(down2, 2725.297852, -2299.391602, 17.977287, 1);
SetTimer("Returnrace",40000,false);
return 1;
}



public Returnrace(playerid)
{
SendClientMessageToAll(COLOR_FELRED,"Dragrace reseted! You can enter it again![/race]");
checkrace = false;
MoveObject(down1,2725.297852, -2306.566895, 2.177284 , 5);
MoveObject(down2, 2725.297852, -2299.391602, 2.277285, 5);
MoveObject(Doorone, 2721.918701, -2306.500244, -2.044251, 1.5);
MoveObject(Doortwo, 2721.965332, -2299.239258, -1.965239, 1.5);
return 1;
}

Teleport Coцrds 2725.6067,-2325.2971,3.0000

You can test it on my server belowe! Use credits!



Reply
#2

please post the commands and stuff in a [ pawn ] or a new [ code ] because the identation is messed up
Reply
#3

Yeah i saw, I will put the download link soon!
Reply
#4

Quote:
Originally Posted by ♣▒▓»SW«Addy!▓▒♣
Yeah i saw, I will put the download link soon!
Thanks
Reply
#5

I think that the [ center ] stuff is messing up the code. But anyways nice map
Reply
#6

Download for pawn added!
Reply
#7

Quote:
Originally Posted by ♣▒▓»SW«Addy!▓▒♣
Download for pawn added!
Downloaded. Nice job.
Reply
#8

thanks..
Reply
#9

Nice work man. I like the lift idea.
Reply
#10

Thanks. was boring so made something :P
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)