SA-MP Forums Archive
LS Admin Base - 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: LS Admin Base (/showthread.php?tid=66410)



LS Admin Base - Cookie_CreeMy - 21.02.2009

This is my first base that I make, so I hope you'll like it.
I made it Admin Base because I had nothing to do. . It's located in LS near the "Trans Fender".
The main gate command is: /basegts (You can also change it, if you want)
In the base are:
1) Infernus, 2) Monster,
3) Sultan, 4) Hunter,
5) Maverick, 6) BF Injection,
7) Banshee, Stretch,
9) Landstalker,10) Jester,
11) ZR-350, 12)Slamvan,

Screenshots:
Where you can find:

Main gates:

Cars:

From gates:

House:

Dragon:

In garage:

Backyard:

From air:

Special items:


Only, you can't go in the house because I don't now how to make a house icon
You can download it HERE !
Sorry for my bad English, I am Latvian.


Re: LS Admin Base - Synkro93 - 21.02.2009

Seems crazy
So, the main gate is automatic?


Re: LS Admin Base - Cookie_CreeMy - 21.02.2009

How is it automatic? No, the gate is /basegts


Re: LS Admin Base - Synkro93 - 21.02.2009

Quote:
Originally Posted by Cookie_CreeMy
How is it automatic? No, the gate is /basegts
oops, I meant does it close automatically?


Re: LS Admin Base - Xpl0ad3r - 21.02.2009

Nice.
I have a warning: "warning 209: function "OnPlayerCommandText" should return a value"

Can you fix this?
And can you make the exit bigger? because of the Monster Truck?


Thx.


Re: LS Admin Base - Snickers - 21.02.2009

Quote:
Originally Posted by Xpl0ad3r
Nice.
I have a warning: "warning 209: function "OnPlayerCommandText" should return a value"

Can you fix this?
And can you make the exit bigger? because of the Monster Truck?


Thx.
Just add return 1; to that line, like this

Код:
public OnPlayerConnect(playerid)

{
	GameTextForPlayer(playerid,"~w~SA:MP Area51 Break-in!",4000,3);
	SetPlayerColor(playerid,COLOR_GREY);
	return 1;

}
Notice the return1;




Re: LS Admin Base - Xpl0ad3r - 21.02.2009

It works with:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/system7", cmdtext, true, 6) == 0)
	{
		if(mainigais == 0)
		{
			SendClientMessage(playerid, 0x33AA33AA,"The gate was opened");
			MoveObject(baze, 1017.226563, -913.239319, 38.000492, 3);
			mainigais = 1;
		}
		else
		{
			SendClientMessage(playerid, 0xAA3333AA,"The gate was closed");
			MoveObject(baze, 1017.226563, -913.239319, 43.000492, 3);
			mainigais = 0;
		}
		return 1;
	}

	return 0;
}



Re: LS Admin Base - Cookie_CreeMy - 21.02.2009

Quote:
Originally Posted by ☮ DjSkca ☼
Quote:
Originally Posted by Cookie_CreeMy
How is it automatic? No, the gate is /basegts
oops, I meant does it close automatically?
No, if you type the /basegts again it will close.


Re: LS Admin Base - Weirdosport - 22.02.2009

About the pickup, I made a very brief demonstration here:

Along with your variables:
pawn Код:
new bob;
OnGameModeInit/OnFilterscriptInit:
pawn Код:
bob = CreatePickup(1277, 23, X, Y, Z);
This callback is already on the template, search for it:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == bob)
    {
    //Do stuff here, like SetPlayerPos() etc!
    }
    return 1;
}
If you need anymore help private message me and i'll make you a more formal demonstration!


Re: LS Admin Base - ExtremeCommunity - 06.07.2009

Bug fixed.