Movable Gate help
#2

Код:
#include <a_samp>
new Gate;

public OnGameModeInit()
{
Gate = CreateObject(968,2467.5000000,-1663.1999512,13.1000004,0.0000000,270.0000000,271.9999695); 
}
public OnPlayerCommandText(playerid, cmdtext[])
}
if(strcmp(cmd, "/opengate", true) == 0)
{
MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004,0.0000000, 1);
}
SendClientMessage(playerid, COLOR_YELLOW, "The gate is open.");
return 1;
}
if(strcmp(cmd, "/closegate", true) == 0)
{
MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004, 1);
}
SendClientMessage(playerid, COLOR_YELLOW, "The gate is closed.");
Try this.
Reply


Messages In This Thread
Movable Gate help - by Jhony_Blaze - 24.02.2013, 17:29
Re: Movable Gate help - by Aarab - 24.02.2013, 17:32
Re : Movable Gate help - by yusei - 24.02.2013, 17:32
Re: Movable Gate help - by IIKINGII - 24.02.2013, 17:36
Re: Movable Gate help - by Jhony_Blaze - 24.02.2013, 17:46
Re: Movable Gate help - by Jhony_Blaze - 24.02.2013, 17:49
Re: Movable Gate help - by Lemonaidz - 25.02.2013, 10:17
Re: Movable Gate help - by Lemonaidz - 25.02.2013, 10:20
Re: Movable Gate help - by Jhony_Blaze - 25.02.2013, 11:55
Re: Movable Gate help - by Lemonaidz - 25.02.2013, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)