07.01.2010, 17:24
At the top of your gamemode:
At the OnGameModeInit:
And at OnPlayerCommandText:
Do the same stuff for lift by yourself, i think it will be easy now
Код:
new mygates;//Gates variable
Код:
mygates = CreateObject(...)//paste here id of your object, coordinates and rotations for closed gates
Код:
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;
}

