SA-MP Forums Archive
Problems With Moving Gates - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problems With Moving Gates (/showthread.php?tid=354577)



Problems With Moving Gates - Mustang[GTS] - 27.06.2012

Код:
#include <a_samp>

#define FILTERSCRIPT
new LSPDGate;

public OnFilterScriptInit()
{
    LSPDGate = CreateObject(980,1588.09997559,-1638.00000000,15.19999981,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/ogate", true)){
        if(IsPlayerInRangeOfPoint(playerid, 285,1561.4171,-1693.9485,5.8906,177.2525)){
            MoveObject(LSPDGate, 1588.09997559,-1638.00000000,15.19999981,3.0);
            return 1;
        }
    }
    else if(strcmp(cmdtext, "/cgate", true)){
        if(IsPlayerInRangeOfPoint(playerid, 285, 1561.4171, -1693.9485 ,5.8906, 177.2525)){
            MoveObject(LSPDGate, 1588.09997559,-1638.00000000,45.19999981,3.0);
            return 1;
        }
    }
    return 0;
}
public OnFilterScriptExit()
{
    return 1;
}
I Have Made An Moving LSPD Gate No Foulds When i go in game and i typ /ogate doesnt work i typ /opgat works and close gate doesnt work to can anywone help me pleas


Re: Problems With Moving Gates - God'Z War - 27.06.2012

your using streamer


Re: Problems With Moving Gates - Mustang[GTS] - 27.06.2012

What you mean?


Re: Problems With Moving Gates - God'Z War - 27.06.2012

Check in your gm
its there
Quote:

#include <streamer>




Re: Problems With Moving Gates - Mustang[GTS] - 27.06.2012

Quote:

#include <a_samp>
#pragma tabsize 0
forward AnnounceMSG(playerid);

^

Nop


Re: Problems With Moving Gates - God'Z War - 27.06.2012

Код:
#include <a_samp>
#include <streamer>
#define FILTERSCRIPT
new LSPDGate;

public OnFilterScriptInit()
{
    LSPDGate = CreateDynamicObject(980,1588.09997559,-1638.00000000,15.19999981,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/ogate", true)){
        if(IsPlayerInRangeOfPoint(playerid, 285,1561.4171,-1693.9485,5.8906,177.2525)){
            MoveDynamicObject(LSPDGate, 1588.09997559,-1638.00000000,15.19999981,3.0);
            return 1;
        }
    }
    else if(strcmp(cmdtext, "/cgate", true)){
        if(IsPlayerInRangeOfPoint(playerid, 285, 1561.4171, -1693.9485 ,5.8906, 177.2525)){
            MoveDynamicObject(LSPDGate, 1588.09997559,-1638.00000000,45.19999981,3.0);
            return 1;
        }
    }
    return 0;
}
public OnFilterScriptExit()
{
    return 1;
}
Add this
Then download streamer include from here
join this in pwno/includes
http://www.mediafire.com/?oepsj98dk6cbwudhttp://

then download streamer plugins here
Join this file to your plugins
http://www.mediafire.com/?9usd5new3rbirdghttp://
then compile this filter script


Re: Problems With Moving Gates - Mustang[GTS] - 27.06.2012

Site's not working mate


Re: Problems With Moving Gates - God'Z War - 27.06.2012

[not working]
Wait i will make gate for you


Re: Problems With Moving Gates - Mustang[GTS] - 27.06.2012

k tnx


Re: Problems With Moving Gates - God'Z War - 27.06.2012

try this i tested

Код:
#include <a_samp>
#define FILTERSCRIPT
new LSPDGate;

public OnFilterScriptInit()
{
    LSPDGate = CreateObject(980,1588.09997559,-1638.00000000,15.19999981,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/ogate"))
     {
	 MoveObject(LSPDGate, 1588.09997559,-1638.00000000,15.19999981,3.0);
     return 1;
     }

if(!strcmp(cmdtext, "/cgate"))
     {
     MoveObject(LSPDGate, 1588.09997559,-1638.00000000,45.19999981,3.0);
     return 1;
     }
return 0;
}
public OnFilterScriptExit()
{
    return 1;
}