Gate problem
#4

Код:
[#include <a_samp>

new Brandongate1;

public OnFilterScriptInit()
{
Brandongate1 = CreateObject(969, 1530.947265625, 96.14453125, 28.636119842529, 0, 0, 25.801391601563);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/opengate", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1530.947265625, 96.14453125, 28.636119842529))
{
MoveObject(Brandongate1, 1538.9044189453, 100.001953125, 28.584012985229, 2);
SendClientMessage(playerid, 0xFFFFFF, "You've opened Brandon's House gate");
}
return 1;
}
if (strcmp("/closegate", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1530.947265625, 96.14453125, 28.636119842529))
{
MoveObject(Brandongate1, 1530.947265625, 96.14453125, 28.636119842529, 2);
SendClientMessage(playerid, 0xFFFFFF, "You've closed Brandon's House gate");
}
return 1;
}
return 0;
}

/code]

that is the whole filterscript made by agate generator
Reply


Messages In This Thread
Gate problem - by RoneyRemington - 25.02.2010, 10:25
Re: Gate problem - by aircombat - 25.02.2010, 10:30
Re: Gate problem - by RoneyRemington - 25.02.2010, 10:41
Re: Gate problem - by RoneyRemington - 25.02.2010, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)