create cage with object id 969 -
StrickenKid - 06.02.2009
i made a cage with object id 969 and ingame object editor but i dont want to have to manualy create it in the place i want it.
im thinking i could do the following:
Код:
if (strcmp("/makecage", cmdtext, true, 10) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
object = CreateObject( 969, X +somehting, Y +somehting, Z +somehting, 0, 0,0);
object2 = CreateObject( 969, X +somehting, Y +somehting, Z +somehting, 0, 0,0);
return 1;
}
i tryd that with the actual cordanits of each object and also a cordanate of the center for refrance to add and subtract the cordanats.
i epicly failed so i would be grateful if someone with more knowledge would try it for me
here are the cordanates::
here are the exact ones from the editor.txt from ingame object editor:
Код:
969,2062.601074,1453.665527,11.106884,-90.000000,0.000000,0.000000,gateone
969,2071.209716,1453.749267,11.034687,0.000000,0.000000,179.461853,cpy_gateone
969,2062.599121,1456.776977,11.094347,-90.000000,0.000000,0.357113,cpy_cpy_gateone
969,2071.205810,1460.938354,11.022290,0.000000,0.000000,271.244628,cpy_cpy_cpy_gateone
969,2062.632812,1452.435424,11.039992,0.000000,0.000000,90.630424,cpy_cpy_cpy_cpy_gat
969,2062.667236,1459.976684,11.082448,0.000000,0.000000,0.863658,cpy_cpy_cpy_cpy_cpy
and here is the coord from /save when i was inside the cage::
exactly from savedpositions.txt
Код:
AddPlayerClass(252,2067.1794,1456.9647,13.0887,176.4083,0,0,0,0,0,0); // inside_cage
THX THX a whole lot for anyone who can help, and the purpose of this is to be able to do
/makecage, and have the cage spawn around me with me inside, to i can tele nubs in and keep em in and laugh at them
!
Re: create cage with object id 969 -
StrickenKid - 06.02.2009
plz anyone?? plz help!