Stuff
public text v1 · immutableI put these under OnGameModeInIt:
new pdgate;
pdgate = CreateObject(971, 1588.5617, -1638.1036, 12.7200, 0, 0, 0);
Then I put this with the rest of the commands:
if(strcmp(cmd, "/openlspd", true) == 0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
new pdgate;
MoveObject(pdgate, 1588.5617, -1638.0871, 5.7200, 1);
}
}
if(strcmp(cmd, "/closelspd", true) == 0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
new pdgate;
MoveObject(pdgate, 1588.5617, -1638.0871, 12.7200, 1);
}
}