Re: [Tutorial] How to script a moving Gate -
[18SG]Juicy_J - 16.09.2008
Quote:
Originally Posted by Xander5270
Thanks, Now I only getting this errors
Code:
C:\Users\FOZZ\Downloads\samp022server.win32\gamemodes\gf.pwn(6818) : error 017: undefined symbol "hqgate"
C:\Users\FOZZ\Downloads\samp022server.win32\gamemodes\gf.pwn(8146) : error 017: undefined symbol "hqgate"
C:\Users\FOZZ\Downloads\samp022server.win32\gamemodes\gf.pwn(8158) : error 017: undefined symbol "hqgate"
|
What did you wrote as "new" ?
new ??gate
Re: [Tutorial] How to script a moving Gate -
Xander5270 - 16.09.2008
Quote:
Originally Posted by [18SG
Juicy_J ]
Quote:
Originally Posted by Xander5270
Thanks, Now I only getting this errors
Code:
C:\Users\FOZZ\Downloads\samp022server.win32\gamemodes\gf.pwn(6818) : error 017: undefined symbol "hqgate"
C:\Users\FOZZ\Downloads\samp022server.win32\gamemodes\gf.pwn(8146) : error 017: undefined symbol "hqgate"
C:\Users\FOZZ\Downloads\samp022server.win32\gamemodes\gf.pwn(8158) : error 017: undefined symbol "hqgate"
|
What did you wrote as "new" ? new ??gate
|
Code:
if(strcmp(cmdtext,"/opengate", true) == 0)
{
if (gTeam[playerid] == TEAM_BLUE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 2294.237060,2499.121337,10.422034,1.500000);
return 1;
}
}
}
if(strcmp(cmdtext,"/closegate", true) == 0)
{
if (gTeam[playerid] == TEAM_BLUE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 2294.206787,2499.329101,5.770081,270.057617,1.500000);
return 1;
}
}
}
Re: [Tutorial] How to script a moving Gate -
Magor - 16.09.2008
A little shitty way to create gates. Why don't you make it open/close automatically? Withoud any need to use commands.
Re: [Tutorial] How to script a moving Gate -
[18SG]Juicy_J - 16.09.2008
Its a few months ago, that I've done this topic. And why shitty? It helps many people, so better watch what you say!
Re: [Tutorial] How to script a moving Gate -
Magor - 16.09.2008
It isn't shitty because it is helpfull. It is shitty because it requires using commands. What if player who opened the gate won't close it?

The game will be ruined! And also there has to be somebody who checks if that happend... .
Re: [Tutorial] How to script a moving Gate -
Xander5270 - 16.09.2008
Quote:
Originally Posted by [18SG
Juicy_J ]
Its a few months ago, that I've done this topic. And why shitty? It helps many people, so better watch what you say!
|
Could I just get an answer please?
Re: [Tutorial] How to script a moving Gate -
hadzx - 07.11.2010
good but you should put in the "Scripting Tutorial" section
Re: [Tutorial] How to script a moving Gate -
DeathOnaStick - 07.11.2010
Quote:
Originally Posted by hadzx
good but you should put in the "Scripting Tutorial" section
|
This section did not exist when this topic was created.
Re: [Tutorial] How to script a moving Gate -
Pillhead2007 - 15.08.2012
what if I wanted 2 gates to open how would I do that pm me


and nice tutorial , rep +5
Re: [Tutorial] How to script a moving Gate -
Dan. - 15.08.2012
Bad indendation.
Re: [Tutorial] How to script a moving Gate -
Astrais - 19.12.2012
how would I do it by only using one command /gate?
Re: [Tutorial] How to script a moving Gate -
CrazyChoco - 19.12.2012
You didn't post in right section although! But i still like it, useful if you ask me.
Re : [Tutorial] How to script a moving Gate -
Kethrios - 19.12.2012
This post was posted in 2008, I think that a moderator failed somewhere.
Re: [Tutorial] How to script a moving Gate -
doreto - 19.12.2012
....
Re: [Tutorial] How to script a moving Gate -
Gamer_007 - 19.12.2012
Nice tut
Re: [Tutorial] How to script a moving Gate -
Mike_Peterson - 19.12.2012
O.O even before I joined sa-mp forums :P
Re: [Tutorial] How to script a moving Gate -
AhmedWael - 03.02.2014
guys this is my script , is it right too?
Code:
CreateDynamicObject(2957,1116.0996100,-713.6992200,103.0000000,0.0000000,0.0000000,359.2470000); //object(chinatgaragedoor) (1)
CMD:gatecmdopen (playerid,params[]) {
MoveObject(ghostgate2,1116,-713.6,99.6,2);
return 1;}
CMD:gatecmdclose (playerid,params[]) {
MoveObject(ghostgate2,1116,-713.6,103,2);
return 1;}
So is this correct?
Re: [Tutorial] How to script a moving Gate -
UnknownGamer - 03.02.2014
Quote:
Originally Posted by AhmedWael
guys this is my script , is it right too?
Code:
CreateDynamicObject(2957,1116.0996100,-713.6992200,103.0000000,0.0000000,0.0000000,359.2470000); //object(chinatgaragedoor) (1)
CMD:gatecmdopen (playerid,params[]) {
MoveObject(ghostgate2,1116,-713.6,99.6,2);
return 1;}
CMD:gatecmdclose (playerid,params[]) {
MoveObject(ghostgate2,1116,-713.6,103,2);
return 1;}
So is this correct?
|
We use Y_TIMERS in my script to make gates move.
But I know, MoveObject, won't work with CreateDynamicObject. Try MoveDynamicObject