SA-MP Forums Archive
Army teleport. Help Please - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Army teleport. Help Please (/showthread.php?tid=160942)



Army teleport. Help Please - heroyou1221 - 18.07.2010

Hello. Can someone help me. I need army teleport like this:
|when you are there. You write /aenter then you goto---down picture place| but you must stay here withcar.

here with the car and same /aexit like on this picture.


pleasee help
.:coordinates:.
Out: AddPlayerClass(287,135.3083,1947.4934,19.3667,177. 4316,0,0,0,0,0,0); Out the gate
In: AddPlayerClass(287,135.4254,1933.3558,19.2469,184. 0116,0,0,0,0,0,0); In the gate


Re: Army teleport. Help Please - OmarEco - 18.07.2010

can you send the object and command i think can i help yo


Re: Army teleport. Help Please - heroyou1221 - 18.07.2010

Quote:
Originally Posted by omarhassan
Посмотреть сообщение
can you send the object and command i think can i help yo
I want like this if you are there like in first picture you must stay there with a car and the command is to get in to army place write /aenter then teleport there down cordinate
cordinates: 135.4254,1933.3558,19.2469
And then you teleport there and if i want to get out i write /aexit the the player teleports to down cordinate
cordinates: 135.3083,1947.4934,19.3667

it's hard to tell but can you help me


Re: Army teleport. Help Please - OmarEco - 18.07.2010

upload the scrip i can't understand you


Re: Army teleport. Help Please - bartje01 - 18.07.2010

Well omarhassan. That gate can't be opened. He just want to be teleported from the one side to the other side of the gate. This is an GTA Sanandareas standard object.


Re: Army teleport. Help Please - heroyou1221 - 18.07.2010

Quote:
Originally Posted by bartje01
Посмотреть сообщение
Well omarhassan. That gate can't be opened. He just want to be teleported from the one side to the other side of the gate. This is an GTA Sanandareas standard object.
yes just place teleport


Re: Army teleport. Help Please - ikey07 - 18.07.2010

I would use smt like this
pawn Код:
if(strcmp(cmd, "/aenter", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (GetPlayerState(playerid) == 2)
            {
                new trailer = 0;
                new tmpcar = GetPlayerVehicleID(playerid);
                if(IsTrailerAttachedToVehicle(tmpcar)) { trailer = GetVehicleTrailer(tmpcar); }
                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; //Need "new" at script start
                SetVehiclePos(tmpcar, YourX,YourY,YourZ);
                if(trailer != 0) { AttachTrailerToVehicle(trailer,tmpcar); }
            }
            else
            {
                SetPlayerPos(playerid,YourX,YourY,YourZ);
            }
            SendClientMessage(playerid, COLOR_GRAD1, "   You entered army base");
        }
        return 1;
    }



Re: Army teleport. Help Please - OmarEco - 18.07.2010

oh right now it's easy i tell this way used gadmin
join rcon admin in your server
go to the pos you want player to teleport it
and type /pos
now copy the post with out X: Y: Z:
like 123.253,866.321,963.516 = example
and onplayer command text type this
pawn Код:
if(!strcmp(cmdtext, "/cmd"))
        {
            SetPlayerPos(playerid,example,example,example);     return 1;
        }
see this easy this idea i make the deathmathces gamemode by this


Re: Army teleport. Help Please - OmarEco - 18.07.2010

see ikey07 type it it's all i typed part


Re: Army teleport. Help Please - OmarEco - 18.07.2010

Quote:
Originally Posted by heroyou
Посмотреть сообщение
yes just place teleport
yes i just it