The Gate
#10

You have 2 objects under same variable.
PHP код:
#include <a_samp>
#define FILTERSCRIPT
new MaltGate[2];
public 
OnFilterScriptInit()
{
    
MaltGate[0] = CreateObject(9691268.33813172.6552718.40459,   0.000000.0000065.53729);
    
MaltGate[1] = CreateObject(9691271.91394180.7189018.40559,   0.000000.0000065.53729);
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/OpenGate"true)){
        {
            
MoveObject(MaltGate[0], 1265.96130165.5860418.40459,   0.000000.0000065.53729);
            
MoveObject(MaltGate[1], 1273.89319186.6057118.40559,   0.000000.0000065.55613);
            return 
1;
        }
    }
    else if(
strcmp(cmdtext"/CloseGate"true)){
      {
            
MoveObject(MaltGate[0], 1268.33813172.6552718.40459,   0.000000.0000065.53729);
            
MoveObject(MaltGate[1], 1271.91394180.7189018.40559,   0.000000.0000065.53729);
            return 
1;
        }
    }
    return 
0;

Reply


Messages In This Thread
The Gate - by iiMo - 22.12.2015, 16:39
Re: The Gate - by Sebz - 22.12.2015, 17:08
Re: The Gate - by iiMo - 22.12.2015, 20:33
Re: The Gate - by TwinkiDaBoss - 22.12.2015, 21:00
Re: The Gate - by saffierr - 22.12.2015, 21:12
Re: The Gate - by iiMo - 22.12.2015, 21:13
Re: The Gate - by saffierr - 22.12.2015, 21:39
Re: The Gate - by iiMo - 22.12.2015, 21:39
Re: The Gate - by saffierr - 22.12.2015, 21:41
Re: The Gate - by TwinkiDaBoss - 22.12.2015, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)