17.06.2011, 06:04
pawn Код:
new open = 0;
if (strcmp("/", cmdtext, true,1) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,15.0,-1701.44042969,687.58593750,24.65380096))
{
if(open == 1)
{
SetDynamicObjectRot(sfent,0.00000000,270.0,90.0);
print("TEST ONE ONE");
open = 0;
}
else
{
SetDynamicObjectRot(sfent,0.00000000,0.00000000,90.00000000);
open = 1;
print("TEST ONE");
}
}
}
I want it so when i use the slash command that it will open the gate if open = 0, otherwis close it. It wont close, so can you please help me solve this issue?