Problem with gate open
#1

This is the FS
Код:
/*
[FS] By reflex
*/


#include <a_samp>

#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x2641FEAA
#define FILTERSCRIPT
forward GateClose();
new vama1;
new vama2;
public OnFilterScriptInit()
{
    vama1 = CreateObject(971, 1628.4000244141, -10, 39.299999237061, 0, 0, 24);
    vama2 = CreateObject(971, 1643.4000244141, -8.1999998092651, 39.200000762939, 0, 0, 24);
   CreateObject(7033, 1635.3000488281, -7.8000001907349, 40.299999237061, 0, 0, 24);
CreateObject(3877, 1639.4000244141, -17.10000038147, 37.299999237061, 0, 0, 0);
CreateObject(3877, 1642, -23.10000038147, 37.299999237061, 0, 0, 0);
CreateObject(3877, 1623.6999511719, -12, 37.400001525879, 0, 0, 20);
CreateObject(3877, 1630.4000244141, 3.4000000953674, 37.400001525879, 0, 0, 0);
CreateObject(3877, 1628, 8.8999996185303, 37.400001525879, 0, 0, 0);
CreateObject(3877, 1638.8000488281, -10.39999961853, 37.400001525879, 0, 0, 22);
CreateObject(3864, 1636.8000488281, -11.800000190735, 39.200000762939, 0, 0, 112);
CreateObject(3877, 1647.9000244141, -6.3000001907349, 37.200000762939, 0, 0, 22);
CreateObject(3877, 1635.3000488281, -8, 44.200000762939, 0, 0, 22);
CreateObject(3877, 1632.9000244141, -7.9000000953674, 37.299999237061, 0, 0, 22);

	print("\n--------------------------------------");
	print("             Vama [FS]                  ");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/vamals", true)==0)
    {
        MoveObject(vama2,1643.3000488281, -8.3999996185303, 31.799999237061, 0, 0, 24);
        SetTimer("GateClose", 3000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"Ai platit Vama 100$! In 5 secunde Vama se va inchide");
        GivePlayerMoney(playerid,-100);
        return 1;
    }
    if (strcmp(cmdtext, "/vamalv", true)==0)
    {
        MoveObject(vama1, 1628.4000244141, -10.10000038147, 31.799999237061, 0, 0, 24);
        SetTimer("GateClose", 3000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"Ai platit Vama 100$! In 5 secunde Vama se va inchide");
        GivePlayerMoney(playerid,-100);
        return 1;
    }
	return 0;
}

public GateClose()
{
    MoveObject (vama1,1643.3000488281, -8.3999996185303, 31.799999237061, 0, 0, 24);
    MoveObject (vama2,1628.4000244141, -10.10000038147, 31.799999237061, 0, 0, 24);
    return 1;
}
All comands work but the gates don's open
Reply
#2

help me pls! sorry for 2x post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)