Gates and Elevators
#2

At the top of your gamemode:
Код:
new mygates;//Gates variable
At the OnGameModeInit:
Код:
mygates = CreateObject(...)//paste here id of your object, coordinates and rotations for closed gates
And at OnPlayerCommandText:
Код:
if(!strcmp(cmdtext,"/opengate",true))//Will open your gates
{
  MoveObject(mygates, 1528.2564697266,-1075.6926269531,176.11711120605, 2.5);
  return 1;
}
if(!strcmp(cmdtext,"/close",true))//Will close your gates
{
  MoveObject(mygates, 1528.2564697266,-1075.6926269531,184.11711120605, 2.5);
  return 1;
}
Do the same stuff for lift by yourself, i think it will be easy now
Reply


Messages In This Thread
Gates and Elevators - by thecutkiller - 07.01.2010, 17:09
Re: Gates and Elevators - by Norck - 07.01.2010, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)