I need help with a moving gate FS
#4

pawn Код:
//===============-a-samp-============================//
#include <a_samp>
#include <streamer>
#define COLOR_RED 0xAA3333AA
#define COLOR_BLUE 0x2641FEAA
//================-FS-===============================//
#define FILTERSCRIPT// Defined as FilterScript
//===============-Defined Gates-====================//
new Gate1;//Defined gate 1
new Gate2;//Defined gate 2

public OnFilterScriptInit()
{

    Gate1 = CreateObject(987, 2561.4971, 1483.4440, 9.6313, 0.0000, 0.0000, 0.0000, 100.0);//gate 1
    Gate2 = CreateObject(987, 2513.0234, 1603.0077, 9.6423, 0.0000, 0.0000, 180.0000, 100.0);//gate 2
}  
//============================================-Gate1 CMD-=========================================================//

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/og1", true)){
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1245.5999755859, -767.09997558594, 93.900001525879)){
            MoveObject(Gate1, 2561.4971, 1483.4440, 3.4713,0.0000, 0.0000, 0.0000, 0.0);
            SendClientMessage(playerid, COLOR_BLUE, "Welcome in Paceroni's Compound!");
            return 1;
        }
    }
    if(!strcmp(cmdtext, "/cg1", true)){
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1245.5999755859, -767.09997558594, 93.900001525879)){
            MoveObject(Gate1, 2561.4971, 1483.4440, 9.6313, 0.0000, 0.0000, 180.0000, 0.0);
            SendClientMessage(playerid, COLOR_RED, "Paceroni's Compound gate closed!");
            return 1;
        }
    }
//============================================-Gate 2 CMD-========================================================//
  if(!strcmp(cmdtext, "/og2", true)){
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1313.8000488281, -818.90002441406, 76.099998474121)){
            MoveObject(Gate2,2513.0234, 1603.0077, 3.4623, 0.0000, 0.0000, 180.0000, 0.0);
            SendClientMessage(playerid, COLOR_BLUE, "Welcome in Paceroni's Compound!");
            return 1;
        }
    }
    if(!strcmp(cmdtext, "/cg2", true)){
        if(IsPlayerInRangeOfPoint(playerid, 20.0, 1313.8000488281, -818.90002441406, 76.099998474121)){
            MoveObject(Gate2,2513.0234, 1603.0077, 9.6423, 3.0, 0.0000, 0.0000, 180.0000, 0.0);
            SendClientMessage(playerid, COLOR_RED, "Paceroni's Compound gate closed!");
            return 1;
        }
    }
}
Reply


Messages In This Thread
I need help with a moving gate FS - by kokoshkata - 31.05.2013, 19:34
Re: I need help with a moving gate FS - by nor15 - 31.05.2013, 19:40
Re: I need help with a moving gate FS - by kokoshkata - 31.05.2013, 19:44
Re: I need help with a moving gate FS - by mahdi499 - 31.05.2013, 19:51
Re: I need help with a moving gate FS - by zJordioz - 31.05.2013, 22:17
Re: I need help with a moving gate FS - by kokoshkata - 01.06.2013, 07:23
Re: I need help with a moving gate FS - by NicholasA - 01.06.2013, 07:28
Re: I need help with a moving gate FS - by kokoshkata - 01.06.2013, 07:31
Re: I need help with a moving gate FS - by DobbysGamertag - 01.06.2013, 07:51
Re: I need help with a moving gate FS - by kokoshkata - 01.06.2013, 09:01

Forum Jump:


Users browsing this thread: 2 Guest(s)