Army-base V3 (My first ever creation and release) -
harryb125 - 23.12.2009
Army base made by me total objects dont have a clue
I think there is 199 objects
This is my first release ever plesae post any bugs below or pm me or email me at
bull_dog125@msn.com
pics
Angle 1
Angle 2
Angle 3 and airstrip
You can either get the code from
http:www.bullhosters.0lx.net/Army-base-V3-Code.txt
or
http://pastebin.com/f791c1e52
Re: Army-base V3 (Teleport Cmds) -
harryb125 - 23.12.2009
- These are the teleports
They are as follows:Teleport to the airstripTeleport to the Base itself
commands need RCON login first they are rcon only
Код:
if(strcmp(cmdtext,"/abaseair",true)==0 && IsPlayerAdmin(playerid)){
{
ResetPlayerWeapons(playerid);
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(vehicleid, 346.0735168457, 3078.7822265625, 4.4871664047241);
SendClientMessage(playerid,0xF600F6F6,"Welcome to Army Base Airport");
} else {
SetPlayerPos(playerid, 346.0735168457, 3078.7822265625, 4.4871664047241);
SendClientMessage(playerid,0xF600F6F6,"Welcome to Army Base Airport");
{
return 1;
}
}
return 1;
}
}
if(strcmp(cmdtext,"/abase",true)==0 && IsPlayerAdmin(playerid)){
{
ResetPlayerWeapons(playerid);
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(vehicleid, 252.6200500488, 2960.98754882881, 4.186222076415);
SendClientMessage(playerid,0xF600F6F6,"Welcome to Army Base");
} else {
SetPlayerPos(playerid, 252.6200500488, 2960.98754882881, 4.186222076415);
SendClientMessage(playerid,0xF600F6F6,"Welcome to Army Base");
{
return 1;
}{
return 1;
}}
Sorry for so many posts it just the code goes pase the 2000 limit
Re: Army-base V3 (My first ever creation and release) -
Lotusmp - 23.12.2009
Nice Work!
Re: Army-base V3 (My first ever creation and release) -
cmg4life - 23.12.2009
zomg you fail at posting, but the map is nice.
Next time use
www.pastebin.com
Re: Army-base V3 (My first ever creation and release) -
harryb125 - 23.12.2009
I do apologise dude im new to all this map making shiz
Re: Army-base V3 (My first ever creation and release) -
Deat_Itself - 23.12.2009
the idea is really nice!
Re: Army-base V3 (My first ever creation and release) -
harryb125 - 23.12.2009
I have read
http://forum.sa-mp.com/index.php?topic=83805.0 for a moving gate but i cant understand that tut can someone like simplierfi it please
Re: Army-base V3 (My first ever creation and release) -
SlashPT - 23.12.2009
simple
first add in top of your scipt
pawn Код:
new elevator; // you can rename elevator for the name you want
next you need to do the object
pawn Код:
////////// IMPORTANT ///////////// THIS IS UNDER GAMEMOD INIT ////////////
elevator = CreateObject( ID-OBJECT, X-COORDS, Y-COORDS, Z-COORDS, X-ROTATION, Y-ROTATION, Z-ROTATION); // this is an example and you need to rename the "elevator" for what you have in the new!
next do the commands like
pawn Код:
if(strcmp(cmd, "/eup", true) == 0) { // Edit the /eup to your elevator command.
MoveObject(elevator, X-COORDS, Y-COORDS, Z-COORDS, SPEED); // Put your cords in here normally the speed is >1 and 10< but put what you want oh and where says elevator put what is in your new
SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait."); // You dont alwas have to put this in, delete if wanted.
return 1;
}
if(strcmp(cmd, "/edown", true) == 0) { // Same deal as before
MoveObject(elevator, X-COORDS, Y-COORDS, Z-COORDS, SPEED); // Same deal as before
SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait."); // Same deal as before
return 1;
}
hope you understand this one now
Re: Army-base V3 (My first ever creation and release) -
harryb125 - 23.12.2009
thanks ill give that a go now
Re: Army-base V3 (My first ever creation and release) -
[NYRP]Mike. - 23.12.2009
much easier way with just one command:
pawn Код:
new elevator; // the is to create the elevator object.
new elevstatus; // checks if the elevator is up or down
//time to create the object, under OnGameModeInit() or OnFilterScriptInit()
elevator = CreateObject(ID, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ); // X, Y & Z is the location of the gate, height etc rX, rY, rZ is the rotation
//now lets create the command.
if (strcmp("/elevator", cmdtext, true) == 0)
{
if(elevstatus == 0)
{
MoveObject(elevator, X-COORDS, Y-COORDS, Z-COORDS, SPEED); // Put your cords in here normally the speed is >1 and 10< but put what you want oh and where says elevator put what is in your new
SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait."); // You dont alwas have to put this in, delete if wanted.
elevstatus = 1; // changes the variable to 1 to allow the elevator back down
}
else if(elevstatus != 0)
{
MoveObject(elevator, X-COORDS, Y-COORDS, Z-COORDS, SPEED); // Same deal as before
SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait."); // Same deal as before
elevstatus = 0; // this lowers the elevator and then changes it back to 0 so it can go up.
}
return 1;
}