How do i make gate open and close? Please help me with this small thing
#8

Quote:
Originally Posted by xTURBOx
Посмотреть сообщение
PHP код:
SetTimer("Gate"500true);
forward Gate(playerid);
public 
Gate(playerid
where did playerid come from :/ ?
I edited, thx.

But your code is also wrong!

Код:
if(IsPlayerInRangeOfPoint(i,3.0,-488.89850, -562.67981, 25.35821) && strcmp(GetName(i), "[BD]", true, 4)) 
        { 
         if(GateOpen = 0)  
          { 
            MoveDynamicObject(BDgate, -488.89850, -562.67981, 26, 3.0, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0); 
            GateOpen = 1; 
          } 
        } 
        else if(GateOpen = 1) 
        { 
           MoveDynamicObject(BDgate, -488.89850, -562.67981, 25.35821, 3.0, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0); 
           GateOpen = 0: 
        }
Whenever the gate is opening/closing, the variable will change and will give some ingame conflict.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)