cords help -
[bs]_lancer - 01.02.2011
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 !
Re: cords help -
Steven Paul - 01.02.2011
did you tried MoveObject?
Re: cords help -
[bs]_lancer - 01.02.2011
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
Re: cords help -
[bs]_lancer - 01.02.2011
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" !!!!
Re: cords help -
xRyder - 01.02.2011
Please read
this carefully.
Re: cords help -
[bs]_lancer - 01.02.2011
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"
Re: cords help -
Marricio - 01.02.2011
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;
}
Re: cords help -
[bs]_lancer - 01.02.2011
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 !
Re: cords help -
Marricio - 01.02.2011
be sure you just take X,Y and Z
Re: cords help -
[bs]_lancer - 01.02.2011
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