YAKUZA HQ GATE
new gate ( before main () )
You got to remove previous yakuza gate "createobject lines" , because then the gate would "smash" into a wall when moving, and thats not nice. Should be 3 lines, familiar coordinates though.
public OnGameModeInit()
{
CreateObject(985, 1524.0010, 2766.2500, 8.8000, 0.0, 0.0, 270.0);
CreateObject(986, 1524.0010, 2780.1020, 8.8000, 0.0, 0.0, 90.0);
gate = CreateObject(976, 1523.5500, 2777.4020, 9.9000, 0.0, 0.0, 270.0);
return 1;
}
Also add these commands to open the gates right now.
public OnPlayerCommandText(playerid, cmdtext[] ) {
if (strcmp(cmdtext, "/gateopen", true)==0) {
MoveObject(gate, 1523.5500, 2769.4020, 9.9000, 3);
return 1;
}
if (strcmp(cmdtext, "/gateclose", true)==0) {
MoveObject(gate, 1523.5500, 2777.4020, 9.9000, 3);
return 1;
}
return 0;
}