Teleport Pos from...
#1

Hey guys, I have actually downloaded great map which I want to test out HOWEVER its impossible to find where it is, there is no TP command anyways so I was thinking is it possible to make a TP from a createobject positions?

Or just keep on searching it and u will never find it?
Reply
#2

you can get the pos from createobject
Reply
#3

SetPlayerPos, try this.
Copy the object coordinates and create a teleport with command.
Reply
#4

Tied that and nothing it says Unknown Command but the filescript is loaded.

Here it how it looks

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(!strcmp(cmdtext,"/middle",true))
    {
        SetPlayerPos(playerid,-1838.3984375, -3831.4243164063, 17.374668121338, 0, 0, 7);
        return 1;
    }
    return 0;
It is added with a filescript that the map is added

pawn Код:
CreateObject(703, -1838.3984375, -3831.4243164063, 17.374668121338, 0, 0, 7.2044677734375);
and thats the createobject [just one for a sample]
Reply
#5

You sure you compiled that, it should give you and argument mistake error

SetPlayerPos only has three parameter

pawn Код:
SetPlayerPos(playerid,-1838.3984375, -3831.4243164063, 17.374668121338);
Reply
#6

Got it working, the SetPlayerPos was totally fucked up. Thanks guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)