//-----------------------------------[Moving Gate Commands By [Jay Jones]-------------------------------------------------
if(strcmp(cmdtext,"/opengate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{ x y z <- | - FOR THE RADIUS
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{ |
MoveObject(hqgate, 289.919067, -1547.427734, 27.193420, 1.500000); <--opened
return 1; | | | | | |
} REMEMBER THE NAME x y z Gate Speed
} |
}
|
if(strcmp(cmdtext,"/closegate", true) == 0)
{ \
if (gTeam[playerid] == TEAM_GROVE)
{ \
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436)) ALL HERE THE SAME
{
MoveObject(hqgate, 283.870544, -1543.398804, 27.193420, 1.500000); <--closed
return 1;
}
}
}
if(strcmp(cmdtext,"/opengate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 289.919067, -1547.427734, 27.193420, 1.500000);
return 1;
}
}
}
if(strcmp(cmdtext,"/closegate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 283.870544, -1543.398804, 27.193420, 1.500000);
return 1;
}
}
}
hqgate = CreateObject(980, 1786.589233, -1128.866577, 24.734344, 0.0000, 0.0000, 0.0000);//closed
| | | |
Object Id x y z
.
|
Originally Posted by Giacomand
I think mine is better.
|
|
Originally Posted by VaD
really good tutorial but 1 question, i use bread_oedd and when i go to bread_oed.txt it gives me the cords.... of the gate closed for eg but do i need to make other gate to get the cords for the gate opened?
|
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, 0.000000, 0.000000, 270.312011, 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(2294.206787,2499.329101,5.770081,270.057617,1.500000);
return 1;
}
}
}
|
Originally Posted by Xander5270
Why the hell does it says that don't understand hqgate? I am a new / noob scripter, please help.
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, 0.000000, 0.000000, 270.312011, 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(2294.206787,2499.329101,5.770081,270.057617,1.500000);
return 1;
}
}
}
|
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"