[Map] [MAP]Admin house
#1

Hey :P
here is another map,an admin house(including gates with command)
Pictures:









.Map File download (Click)

Codes:
On the top of your script:
pawn Code:
new A_C_G;
new garageg1;
new garageg2;
new bgate;
Map code:
pawn Code:
CreateObject(3406, 840.567871, -2072.458252, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3406, 838.566406, -2072.483154, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3406, 836.591431, -2072.483154, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3406, 834.590698, -2072.483154, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3406, 832.664551, -2072.483154, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3749, 836.610657, -2065.429932, 17.725601, 0.0000, 0.0000, 0.0000);
CreateObject(3406, 842.443726, -2072.458252, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3406, 844.419434, -2072.458252, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3406, 830.668945, -2072.458252, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(3406, 828.667480, -2072.458252, 9.799292, 0.0000, 0.0000, 270.0000);
CreateObject(974, 849.628601, -2064.420410, 14.644928, 0.0000, 0.0000, 0.0000);
CreateObject(974, 823.528992, -2064.420410, 14.644928, 0.0000, 0.0000, 0.0000);
CreateObject(4012, 834.689209, -2115.815430, 11.928495, 0.0000, 0.0000, 0.0000);
CreateObject(11490, 854.360474, -2099.643799, 11.846972, 0.0000, 0.0000, 281.2500);
CreateObject(11491, 843.601257, -2101.809814, 13.325690, 0.0000, 0.0000, 281.2500);
CreateObject(1491, 858.534424, -2097.622559, 13.210876, 0.0000, 0.0000, 281.2500);
CreateObject(1491, 859.009888, -2099.938477, 13.210876, 0.0000, 0.0000, 101.2500);
CreateObject(16151, 854.237427, -2103.218018, 13.671539, 0.0000, 0.0000, 281.2500);
CreateObject(1742, 848.064636, -2096.086914, 13.339641, 0.0000, 0.0000, 11.2499);
CreateObject(3461, 846.859314, -2101.694092, 11.820093, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 846.757751, -2100.595459, 11.820093, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 846.832825, -2101.193115, 11.820093, 0.0000, 0.0000, 0.0000);
CreateObject(1481, 845.560425, -2101.625977, 14.033134, 0.0000, 0.0000, 281.2500);
CreateObject(1828, 849.504578, -2100.627686, 13.327504, 0.0000, 0.0000, 11.2500);
CreateObject(1727, 850.109131, -2099.111328, 13.322213, 0.0000, 0.0000, 326.2500);
CreateObject(1727, 850.258789, -2101.331543, 13.322213, 0.0000, 0.0000, 236.2500);
CreateObject(1723, 853.245972, -2095.864746, 13.352832, 0.0000, 0.0000, 11.2500);
CreateObject(1743, 855.002747, -2097.197266, 13.372743, 0.0000, 0.0000, 191.2500);
CreateObject(2648, 854.719238, -2098.246094, 14.629235, 0.0000, 0.0000, 191.2500);
CreateObject(2225, 857.829956, -2095.375977, 13.356630, 0.0000, 0.0000, 281.2500);
CreateObject(2226, 857.528198, -2095.265625, 13.415318, 0.0000, 0.0000, 281.2500);
CreateObject(8613, 819.891235, -2151.679199, 8.476755, 0.0000, 0.0000, 348.7500);
CreateObject(12950, 814.179443, -2159.051270, 1.131289, 0.0000, 0.0000, 348.7500);
CreateObject(12990, 811.098877, -2174.011230, 0.688375, 0.0000, 0.0000, 348.7500);
CreateObject(17950, 859.741882, -2127.909912, 14.045933, 0.0000, 0.0000, 90.0000);
CreateObject(17950, 859.767395, -2134.681885, 14.045933, 0.0000, 0.0000, 90.0000);
CreateObject(9241, 819.624695, -2124.807861, 13.327193, 0.0000, 0.0000, 90.0000);
CreateObject(717, 855.449158, -2122.137451, 12.083814, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 846.550171, -2101.211426, 19.402878, 0.0000, 0.0000, 0.0000);
CreateObject(1550, 853.436584, -2104.200195, 13.748127, 0.0000, 0.0000, 112.5000);
CreateObject(9833, 830.440430, -2097.494629, 15.048515, 0.0000, 0.0000, 0.0000);
CreateObject(9321, 806.774536, -2083.935791, 13.302659, 0.0000, 0.0000, 0.0000);
A_C_G = CreateObject(980, 836.598999, -2065.735352, 14.640579, 0.0000, 0.0000, 0.0000);
garageg1 = CreateObject(16501, 855.465271, -2127.876709, 14.042607, 0.0000, 0.0000, 0.0000);
garageg2 = CreateObject(16501, 855.465271, -2134.674561, 14.042607, 0.0000, 0.0000, 0.0000);
bgate = CreateObject(969, 822.114258, -2147.841553, 8.098146, 1.7189, 269.7592, 78.7500);
CreateObject(969, 819.413574, -2146.796631, 11.748132, 0.0000, 268.0403, 157.5000);
CreateObject(969, 816.262695, -2146.273682, 11.748132, 0.0000, 268.0403, 168.7499);
Gates(open by command):
pawn Code:
if (strcmp("/a_c_g_o", cmdtext, true, 10) == 0)
    {
        MoveObject(A_C_G,836.598999, -2065.735352, 9.090595,2);
        }
    if (strcmp("/a_c_g_c", cmdtext, true, 10) == 0)
    {
        MoveObject(A_C_G,836.598999, -2065.735352, 14.640579,2);
        }
    if (strcmp("/garageg1o", cmdtext, true, 10) == 0)
    {
        MoveObject(garageg1,855.465271, -2127.876709, 9.542675,2);
        }
    if (strcmp("/garageg1c", cmdtext, true, 10) == 0)
    {
        MoveObject(garageg1,855.465271, -2127.876709, 14.042607,2);
        }
    if (strcmp("/garageg2o", cmdtext, true, 10) == 0)
    {
        MoveObject(garageg2,855.465271, -2134.674561, 9.667632,2);
        }
    if (strcmp("/garageg2c", cmdtext, true, 10) == 0)
    {
        MoveObject(garageg2,855.465271, -2134.674561, 14.042607,2);
        }
    if (strcmp("/bgateo", cmdtext, true, 10) == 0)
    {
        MoveObject(bgate,822.114258, -2147.841553, 3.148141,2);
        }
    if (strcmp("/bgatec", cmdtext, true, 10) == 0)
    {
        MoveObject(bgate,822.114258, -2147.841553, 8.098146,2);
        }
    if (strcmp("/adminhelp", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,0x21DD00FF,"Admin house commands:");
        SendClientMessage(playerid,0xE60000FF,"/bgateo=open boat gate");
        SendClientMessage(playerid,0xE60000FF,"/bgatec=close boat gate");
        SendClientMessage(playerid,0xE60000FF,"/garage1o=open car garage 1");
        SendClientMessage(playerid,0xE60000FF,"/garage1c=close car garage 1");
        SendClientMessage(playerid,0xE60000FF,"/garage2o=open car garage 2");
        SendClientMessage(playerid,0xE60000FF,"/garage2c=close car garage 2");
        SendClientMessage(playerid,0xE60000FF,"/A_C_G_O=open admin house main gate");
        SendClientMessage(playerid,0xE60000FF,"/A_C_G_C=close admin house main gate");
        SendClientMessage(playerid,0xFFFF00FF,"Mapped And Scripted by 3xPloSioNxXx");
        }

Vehicles:
pawn Code:
AddStaticVehicle(487,819.6721,-2123.7627,15.3317,1.8823,3,29); // maverick
    AddStaticVehicle(493,805.6803,-2174.8962,-0.1137,170.8138,36,13); // jetmax
    AddStaticVehicle(454,817.2832,-2174.1230,0.1638,347.7562,26,26); // tropic
    AddStaticVehicle(580,858.9120,-2128.2063,12.6408,91.8939,0,0); //
    AddStaticVehicle(533,859.2554,-2134.8401,12.5539,90.2771,1,1); //
Teleport:
pawn Code:
if (strcmp("/ahs", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid,835.6592,-2051.4104,12.8672);
        return 1;
    }
Commands:

/Adminhelp=shows you a list of the commands
/bgateo=open boat dock gate
/bgatec=close boat dock gate
/garageg1o=open car garage door 1
/garageg1c=close car garage door 1
/garageg2o=open car garage door 2
/garageg2c=close car garage door 2
/ahs=teleports you to the admin house
/a_c_g_o=opens the main gate of the admin house
/a_c_g_c=closes the main gate of the admin house


Thats it,Enjoy
Reply
#2

Nice map Good job
Reply
#3

Thares loads of admin houses / homes, nice anyway....

and use the "Insert code" botton for the cods, otherwise it will look messy.

Reply
#4

Quote:
Originally Posted by <SpeedX^
Theres loads of admin houses / homes, nice anyway....

and use the "Insert code" botton for the cods, otherwise it will look messy.

i did i used [pawn]
i just did [pawno] accidently so it was messy,but i fixed it now ,

Quote:
Originally Posted by Mive
Nice map Good job
Ty very much
Reply
#5

At the fireplace what object ID did you use ?
Reply
#6

Quote:
Originally Posted by The_Tough
At the fireplace what object ID did you use ?
its a fire torch
its under "miscellaneous" "Special"
EDIT:id:3461
Reply
#7

nice... veerrryyy nice
good job
Reply
#8

Quote:
Originally Posted by im2fast4u
nice... veerrryyy nice
good job
Thanks
Reply
#9

Where in pwno to input this codes. Under what?
Reply
#10

Quote:
Originally Posted by streetk1ng
Where in pwno to input this codes. Under what?
OnGameModeInit
Reply
#11

i open my gamemode with pwno ,but when i put this codes ,nothing happen.
Correctly where i must to put this codes:

public
OnGameModeInit("here?")
"here?"
{"here?'
Reply
#12

Quote:
Originally Posted by streetk1ng
i open my gamemode with pwno ,but when i put this codes ,nothing happen.
Correctly where i must to put this codes:

public
OnGameModeInit("here?")
"here?"
{"here?'
Yes,than click compile
Reply
#13

Middle one
Reply
#14

Quote:
Originally Posted by 3xPloSioNxXx
Quote:
Originally Posted by streetk1ng
i open my gamemode with pwno ,but when i put this codes ,nothing happen.
Correctly where i must to put this codes:

public
OnGameModeInit("here?")
"here?"
{"here?'
Yes,than click compile
I didnt understand u.
Reply
#15

Quote:
Originally Posted by streetk1ng
Quote:
Originally Posted by 3xPloSioNxXx
Quote:
Originally Posted by streetk1ng
i open my gamemode with pwno ,but when i put this codes ,nothing happen.
Correctly where i must to put this codes:

public
OnGameModeInit("here?")
"here?"
{"here?'
Yes,than click compile
I didnt understand u.
learn a little about pawno,then we talk
Reply
#16

Just make it look something like this

Код:
public OnGameModeInit()

{

	new id;

	SetGameModeText("Manhunt LV");



	ShowPlayerMarkers(1);

	ShowNameTags(1);



	// Player Classes

	for (id=209; id<=253; id++) {

		AddPlayerClass(id,0.0,0.0,0.0,0.0,24,300,29,1000,31,1000);

	}

	 // Objects
	 CreateObject(3374, 381.7001953125, 4049.1516113281, 1595.8247070313, 0, 0, 0);
Reply
#17

Know what,here:

Click on that button after pasting the code under OnGamemodeInit
Reply
#18

nice house i use it to my server
Reply
#19

Quote:
Originally Posted by Reinix
nice house i use it to my server
Thx
Reply
#20

i can't compile pawno why , i see more errors , i insert the code under OnGameModeInit and i click compile, after more errors has appeared (sorry for my enghish but i'm romanian ) . What can i DO to compile commands , so, where i exactly insert CODE cand you help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)