22.03.2013, 09:26
GATE TUTORIAL
define it
Now,Create The GatesWhere You Gate..
AUTO OPEND
Gate Opend
OK TNX XD
Quote:
new mygate; |
Quote:
SetTimer("mygate",3500,true); //speed of the gate opend |
Quote:
mygate = CreateObject(980, 898.536437, 2088.507324, 10.820312, 0.000000, 0.000000, 90.000000);//gate closed |
Quote:
public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid, 5.0 ,x,y,z))//example 898.536437,2088.507324,10.820312)) 5.0 is size of range { MoveObject(mygate,898.536437, 2076.507324, 10.820311,2.5);//then,,gate was closed return 1; } } |
Quote:
forward mygate(playerid); public mygate(playerid) { MoveObject(mygate, 898.536437, 2088.507324, 10.820312,2.5);//2.5 is speed return 1; } |