Re: [Tutorial] Moving Gates, Elevators Etc. -
Guziiinho - 06.02.2009
Bruzer look , i put ,
new gates; (in the variebles part)
CreateObject(980, 1316.275757, -2725.842773, 15.349422, 0.0000, 0.0000, 326.2500); ( in the objects par )
and put
if(strcmp(cmdtext, "/opengate", true) == 0) {
MoveObject(980, 1316.275757, -275.842773, 15.324396, 2.00);
return 1;
}
if(strcmp(cmdtext, "/closegate", true) == 0) {
MoveObject(1316.275757, -2725.842773, 15.349422, 2.00);
return 1;
}
in OnPlayerCommandText ,
THE /opengate DON'T SAY UNKNOWN COMMAND , JUST THE GATE DON'T OPEN, AND THE /closegate SAY UNKNOWN COMMAND , WHAT'S WRONG WITH THE SCRIPT ?
Re: [Tutorial] Moving Gates, Elevators Etc. -
Snyper18 - 06.02.2009
gates = CreateObject(980, 1316.275757, -2725.842773, 15.349422, 0.0000, 0.0000, 326.2500);
if(strcmp(cmdtext, "/opengate", true) == 0) {
MoveObject(gates,1316.275757, -2725.842773, 15.349422);
return 1;
}
if(strcmp(cmdtext, "/closegate", true) == 0) {
MoveObject(gates,1316.275757, -2725.842773, 15.349422, 2.00);
return 1;
}
Put the gates = CreateObject(980, 1316.275757, -2725.842773, 15.349422, 0.0000, 0.0000, 326.2500); in the object Spot.
Re: [Tutorial] Moving Gates, Elevators Etc. -
Guziiinho - 06.02.2009
It is in the Object Spot.
Re: [Tutorial] Moving Gates, Elevators Etc. -
Snyper18 - 06.02.2009
Is gates = CreateObject(980, 1316.275757, -2725.842773, 15.349422, 0.0000, 0.0000, 326.2500); In the object part?
Use this also
Quote:
if(strcmp(cmdtext, "/opengate", true) == 0) {
MoveObject(gates,1316.275757, -2725.842773, 15.349422);
return 1;
}
if(strcmp(cmdtext, "/closegate", true) == 0) {
MoveObject(gates,1316.275757, -2725.842773, 15.349422, 2.00);
return 1;
}
|
Re: [Tutorial] Moving Gates, Elevators Etc. -
Guziiinho - 06.02.2009
I copy your command that you said now, and it still the same , the /closegate Still Unkown command and /opengate don't do nothing .
One little question , in your command that you post now , the /opengate MoveObject is (objectid, Float:X, Float:Y, Float:Z) But where's the speed ? must be (objectid, Float:X, Float:Y, Float:Z, Float:Speed) is i correct ? you put the speed in /closegate MoveObject , why not put in the /opengate MoveObject speed ?
Re: [Tutorial] Moving Gates, Elevators Etc. -
Snyper18 - 06.02.2009
2.00 Is the speed, At the end.
EDIT : And the /opengate (objectid) Is wrong, It has to be what the gate is called
Yours is called gates So put the /opengate
With MoveObject,gates,(etc etc etc etc)
Re: [Tutorial] Moving Gates, Elevators Etc. -
Guziiinho - 06.02.2009
I'm so confused
sorry for getting your time,
can you show me how it would be ?
write commands, and i test okay ? :/
SORRY , SORRY , SORRY
Re: [Tutorial] Moving Gates, Elevators Etc. -
Prieto_Galletini - 13.02.2009
ok you seem to know about gates i have a question i already have them gates in Ladminv4.2 and i was just wondering how to make it that only admins can use the gates and by the way they're automatic gates so i have no commands.
im new to scripting and don't know just short terms f you can explain it to me the easy way,other thing i used the so called friendly button(search) and i couldn't find anything in the search and it took me 2 and i half hour looking and didn't even find the sticky bout gates that ppl talk about
Re: [Tutorial] Moving Gates, Elevators Etc. -
Omega90210 - 15.02.2009
Heres my problem:
I want to make a gate in front of a house for increased security, the thing is i can get the coordinates ok, but when i put the create object in the pawno, it spawns the gate over the correct coords, but like 5 feet in the air, and pointing the wrong way. How do i fix those, how do i find the percise rotation coordinates? Do you see what i mean?
Re: [Tutorial] Moving Gates, Elevators Etc. -
Joe Staff - 15.02.2009
Most objects are offset, so you'll either have to use an editor of some type or adjust them manually
Re: [Tutorial] Moving Gates, Elevators Etc. -
TheNotorius - 27.05.2010
Quote:
Originally Posted by FabianoC
Quote:
Originally Posted by John Sanders
pawn Code:
#include <samp>
new elevador;
|
It's Elevator, not elevador.
|
Oh, When i Saw Him Type Elevador Thats What i Thought He Wanted =/ xD
I'm not Dumb
Lol <3
Re: [Tutorial] Moving Gates, Elevators Etc. -
willsuckformoney - 14.06.2010
Code:
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(200) : error 017: undefined symbol "gate"
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(206) : error 017: undefined symbol "gate"
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(212) : error 017: undefined symbol "gate"
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(218) : error 017: undefined symbol "gate"
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(222) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(206) : warning 204: symbol is assigned a value that is never used: "lgate"
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(218) : warning 204: symbol is assigned a value that is never used: "rgate"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Help xD
Re: [Tutorial] Moving Gates, Elevators Etc. -
foefjoekel - 23.10.2011
i got this
C:\Users\BB\Desktop\larp.pwn(26405) : warning 202: number of arguments does not match definition
C:\Users\BB\Desktop\larp.pwn(26410) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
what to do whit it
Re: [Tutorial] Moving Gates, Elevators Etc. -
AdvancedMapper - 29.04.2012
Will this make it so that only a certain group can do it?
Re: [Tutorial] Moving Gates, Elevators Etc. -
ReneG - 29.04.2012
Quote:
Originally Posted by AdvancedMapper
Will this make it so that only a certain group can do it?
|
It will not make it like that. You need to use variables along with an if statement.