27.08.2009, 14:27
hi, i decided to make a small FS with gates and stuff
the problem is, the command works fine but the gates are not moving :S
first i did (of course)
new gate1o; (opened gate)
and new gate1c; (closed gate)
after, i did
gate1o = createobject bla bla bla
and the other one of course,
then i`ll show my commands:
i did nothing wrong i guess, i have used a tutorial for this +samp wiki
my second problem was, how can i remove the gate? because i only want 1 to show and now it are 2 gates, the opened and the closed :\
thx.
the problem is, the command works fine but the gates are not moving :S
first i did (of course)
new gate1o; (opened gate)
and new gate1c; (closed gate)
after, i did
gate1o = createobject bla bla bla
and the other one of course,
then i`ll show my commands:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/gate1o", cmdtext, true, 10) == 0) { MoveObject(gate1o, 96.627892, 1925.867065, 18.861610, 2.0); SendClientMessage(playerid, COLOR_GREEN, "Gate opening..."); return 1; } if(strcmp("/gate1c", cmdtext, true, 10) == 0) MoveObject(gate1c, 96.712158, 1920.029419, 18.852978, 2.0); SendClientMessage(playerid, COLOR_GREEN, "Gate closing...");
my second problem was, how can i remove the gate? because i only want 1 to show and now it are 2 gates, the opened and the closed :\
thx.