16.09.2008, 15:34
Quote:
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; } } } |
And you should have at the MoveObject lines only = x,y,z and the gate speed.
Btw you dont need to call it hqgate. It was just an example.