Quote:
Originally Posted by BulletRaja
shoudl i put this code in stock
PHP код:
if(GateInfo[idx][gOwner]!= 0)
{
if(!GateInfo[idx][gStatus]) // open the gate
{
GateInfo[idx][gStatus] = 1;
MoveDynamicObject(GateInfo[idx][gGate], GateInfo[idx][gOX], GateInfo[idx][gOY], GateInfo[idx][gOZ], GateInfo[idx][gSpeed], GateInfo[idx][gORX], GateInfo[idx][gORY], GateInfo[idx][gORZ]);
// add a timer to close the gate here
break;
}
}
else return 0; // If player does not
or on player update
|
nowhere, this code isnt finished. its an example. this wont work.
BTW when this code was finished it supposed to be in a timer. Onplayerupdate might lagg the shit out of your server.