02.12.2009, 16:28
How can I make this scripting "automatic gate" to be able to add that only some skins gates to open, for example (skin 288, 281, 282, 283) ?
Код:
public CheckAPGates()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
new Float:x, Float:y, Float:z;
GetPlayerPos(i, Float:x, Float:y, Float:z);
if (PlayerToPoint(30.0, i, 15980.288696, -16387.887085, 14.706839))
{
MoveObject(lsgate, 15987.288696, -16387.887085, 14.706839, 4);
SetTimerEx("CloseAPGate", 1000, 0, "ii", 4, i);
}

