Scripting a gate command help!!
#1

Hey guys so I really want to make this gate work but no idea how to make it work, I want it to move up I have mapped the gates Closed, Open

closed -
pawn Код:
CreateObject(980,1337.30004883,687.90002441,12.60000038,0.00000000,0.00000000,270.00000000);
open -
pawn Код:
CreateObject(980,1337.30004883,687.90002441,17.65099907,0.00000000,0.00000000,270.00000000);
Reply
#2

https://sampwiki.blast.hk/wiki/MoveObject

look here
Reply
#3

PHP код:
new gate;
gate CreateObject(980,1337.30004883,687.90002441,12.60000038,0.00000000,0.00000000,270.00000000);
Command You Make Now i can't make them because i am in mobile 
For Opening = MoveObject(980,1337.30004883,687.90002441,17.65099907,3,0.00000000,0.00000000,270.00000000);
For Closing = MoveObject(980,1337.30004883,687.90002441,12.60000038,3,0.00000000,0.00000000,270.00000000); 
This Will work if You know how to make command if you don't know just take it from my military restaurant map
Reply
#4

Quote:
Originally Posted by Azazelo
Посмотреть сообщение
I'm not good in reading i'm more visual :L if some one made a video on this i spent like 2 hours now looking for a video and still nothing that's why i posted here
Reply
#5

Make The Command and in my FS i didn't add sendclientmessage i forgot that in next version i will add it
Reply
#6

Quote:
Originally Posted by Ghost_Boii
Посмотреть сообщение
PHP код:
new gate;
gate CreateObject(980,1337.30004883,687.90002441,12.60000038,0.00000000,0.00000000,270.00000000);
Command You Make Now i can't make them because i am in mobile 
For Opening = MoveObject([COLOR="Red"]980[/COLOR],1337.30004883,687.90002441,17.65099907,3,0.00000000,0.00000000,270.00000000);
For Closing = MoveObject([COLOR="Red"]980[/COLOR],1337.30004883,687.90002441,12.60000038,3,0.00000000,0.00000000,270.00000000); 
This Will work if You know how to make command if you don't know just take it from my military restaurant map
These codes are completly wrong, these are good:

Код:
gate = CreateObject(980,1337.30004883,687.90002441,12.60000038,0.00000000,0.00000000,270.00000000);

MoveObject(gate,1337.30004883,687.90002441,17.65099907,3,0.00000000,0.00000000,270.00000000);

MoveObject(gate,1337.30004883,687.90002441,12.60000038,3,0.00000000,0.00000000,270.00000000);
Reply
#7

Does anyone have a Video Tutorial on making this? I am confused with this :L I'm scripting for 3-2 days now and i totally have no idea where to put this code in my GM
Reply
#8

Do you use strcmp or ZCMD(YCMD or any other command processor except strcmp)?
Reply
#9

Quote:
Originally Posted by JhnzRep
Посмотреть сообщение
Do you use strcmp or ZCMD(YCMD or any other command processor except strcmp)?
ZCMD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)