infinity1 Posted April 3, 2012 Report Share Posted April 3, 2012 Am vrut sa fac sa pot sa deschid si sa inchid un gate cu o comanda, cand dai /opengate nu se intampla nimic dar imi apare Poarta deschisa, cand dau /closegate iarasi nu se intampla nimic dar imi apare Poarta inchisa, acestea sunt liniile: gate1 = CreateDynamicObject(971,1577,933.28997802734,13.300000190735,0,0,90); // object (subwaygate) (1) return 1; } public OnFilterScriptExit()return 1; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/opengate", cmdtext, true, 10) == 0) { MoveDynamicObject(gate1, 1577,933.29,13.30, 6, 0, 0, 90); SendClientMessage(playerid,COLOR_GREEN,"Poarta deschisa"); return 1; } if (strcmp("/closegate", cmdtext, true, 10) == 0) { MoveDynamicObject(gate1, 1577,933.29,13.30, 13.3, 0, 0, 90); SendClientMessage(playerid,COLOR_GREEN,"Poarta inchisa"); return 1; } return 0; } EDIT: Am pus ca poarta sa se bage in pamant cand dai /opengate , oare aceasta sa fie problema ? La compile nu da nicio eroare Link to comment Share on other sites More sharing options...
Don.Capone Posted April 3, 2012 Report Share Posted April 3, 2012 dami coordonatele ca ti-o fac eu I'm back haha ! Link to comment Share on other sites More sharing options...
infinity1 Posted April 3, 2012 Author Report Share Posted April 3, 2012 Coordonatele sunt asa:Gate-ul initial: X:971.1577 Y:933.28997802734 Z:13.300000190735 Rotatie X:0 Rotatie Y:0 Rotatie Z:90Gate-ul cand e deschis: X:971.1577 Y:933.28997802734 Z:6 Rotatie X:0 Rotatie Y:0 Rotatie Z:90 Link to comment Share on other sites More sharing options...
Don.Capone Posted April 3, 2012 Report Share Posted April 3, 2012 ce id are poarta ?edit : am facut-o vezi ca pun attachments I'm back haha ! Link to comment Share on other sites More sharing options...
infinity1 Posted April 3, 2012 Author Report Share Posted April 3, 2012 gate1 Link to comment Share on other sites More sharing options...
Don.Capone Posted April 3, 2012 Report Share Posted April 3, 2012 ti-am pus mai sus poarta i dai tu compile... nu cred ca o sa ai erori ca mie nu mio dat nicio eroare I'm back haha ! Link to comment Share on other sites More sharing options...
infinity1 Posted April 3, 2012 Author Report Share Posted April 3, 2012 akm nu mai apare deloc gateul, dar lasa, ma voi descurca eu Link to comment Share on other sites More sharing options...
Xhizors Posted April 4, 2012 Report Share Posted April 4, 2012 fa update la streamer , daca nu merge incearca asa MoveObject Link to comment Share on other sites More sharing options...
Question
infinity1
Am vrut sa fac sa pot sa deschid si sa inchid un gate cu o comanda, cand dai /opengate nu se intampla nimic dar imi apare Poarta deschisa, cand dau /closegate iarasi nu se intampla nimic dar imi apare Poarta inchisa, acestea sunt liniile:
EDIT: Am pus ca poarta sa se bage in pamant cand dai /opengate , oare aceasta sa fie problema ? La compile nu da nicio eroare
Link to comment
Share on other sites
7 answers to this question
Recommended Posts