Army teleport. Help Please
#1

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
Reply
#2

can you send the object and command i think can i help yo
Reply
#3

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
Reply
#4

upload the scrip i can't understand you
Reply
#5

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.
Reply
#6

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
Reply
#7

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;
    }
Reply
#8

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
Reply
#9

see ikey07 type it it's all i typed part
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)