Gate Problem :(
#1

The Gate is there... After I use the command /opengate 1111 I get the message Saying that its Opened but its not I tried using /opengate 1111 and /closegate 1111 but neither of them opens it

pawn Код:
#include <a_samp>
#include <streamer>

#define FILTERSCRIPT
#pragma tabsize 0

#define COLOR_BLUE 0x0000BBAA

#define COLOR_RED 0xAA3333AA

#define COLOR_LIGHTBLUE 0x33CCFFAA

new Gate1;

public OnFilterScriptInit()
{

    Gate1 = CreateObject(980,1337.3000488,687.9000244,12.6000004,0.0000000,0.0000000,270.0000000);
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/opengate 1111", true)){
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1337.3000488,687.9000244,12.6000004,0.0000000,0.0000000,270.0000000)){
            MoveObject(Gate1, 1337.3000488,687.9000244,17.6509991,0.0000000,0.0000000,270.0000000);
            SendClientMessage(playerid, COLOR_BLUE, "Gate(1) Opened Successfuly , Weclome !");
            return 1;
        }
    }
    if(!strcmp(cmdtext, "/closegate 1111", true)){
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1337.3000488,687.9000244,12.6000004,0.0000000,0.0000000,270.0000000)){
            MoveObject(Gate1, 1337.3000488,687.9000244,17.6509991,0.0000000,0.0000000,270.0000000);
            SendClientMessage(playerid, COLOR_RED, "Gate(1) Closed successfuly !");
            return 1;
        }
    }
    return 0;
}
public OnFilterScriptExit()
{
    return 1;
}
Reply


Messages In This Thread
Gate Problem :( - by MatriXScoT - 10.02.2013, 21:09
Re: Gate Problem :( - by |Xenon|Mapper| - 10.02.2013, 21:22
Re: Gate Problem :( - by MatriXScoT - 10.02.2013, 21:23
Re: Gate Problem :( - by zde5 - 10.02.2013, 21:28
Re: Gate Problem :( - by |Xenon|Mapper| - 10.02.2013, 21:32
Re: Gate Problem :( - by MatriXScoT - 10.02.2013, 21:36
Re: Gate Problem :( - by MatriXScoT - 10.02.2013, 21:38
Re: Gate Problem :( - by |Xenon|Mapper| - 10.02.2013, 21:39

Forum Jump:


Users browsing this thread: 2 Guest(s)