cords help
#1

i wanna make /command to control with gate in my map

but when i convert the gate open cord and gate closed cord

the converter is giving me the same result ! same cord ,

the converter should give me deffrent cords so i can make the /command right !

any help !
Reply
#2

did you tried MoveObject?
Reply
#3

heehehe bro i cant script commands :P im not good with scriptin

can i give u the cords and u can script commands 4 me ! im searching for this help
Reply
#4

ok i think u mean this

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/pgate", true) == 0)
    {
        new string[50];
        new movetime = MoveObject(obj, 2482.7414550781, -1688.0881347656, 10, 2.00);
        format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        return 1;
    }
    return 0;
}
well when i compile it . it say undefined sympol "obj" !!!!
Reply
#5

Please read this carefully.
Reply
#6

i already did

and im using it now
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/pgate", true) == 0)
    {
        new string[50];
        new movetime = MoveObject(obj, 2482.7414550781, -1688.0881347656, 10, 2.00);
        format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        return 1;
    }
    return 0;
}
so same problem undefined sympol "obj"
Reply
#7

new obj; // Somewhere at the top of your script

public OnGameModeInit()
{
obj = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
return 1;
}
Reply
#8

al ready have all this ! and still same error !!!

guys im not talkin about this !!

i just wanna know why mta map converter give me the same cord when u convert 2 deffrent files !!

1st file the gate open cord
2nd file the gate closed cord

so the converter give me the same cord for both so i cant make the gate movin !
Reply
#9

be sure you just take X,Y and Z
Reply
#10

to understnd what i mean try to convert this

the gate closed
Код:
<map mod="deathmatch">
    <object id="object (Columbiangate) (1)" doublesided="false" model="975" interior="0" dimension="0" posX="2482.7414550781" posY="-1688.0881347656" posZ="14.182502746582" rotX="0" rotY="0" rotZ="0" />
</map>
the gate open
Код:
<map mod="deathmatch">
    <object id="object (Columbiangate) (1)" doublesided="false" model="975" interior="0" dimension="0" posX="2482.7414550781" posY="-1688.0881347656" posZ="14.182502746582" rotX="0" rotY="0" rotZ="0" />
</map>
u will get the same cord in the end !!! 0.o
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)