19.09.2012, 16:45
Basically I made a command so only a certain faction can open a door. Now, the thing is; the doors do not move whatsoever...
I cannot seem to find the issue, I looked at the syntax for this many times...
pawn Код:
command(door, playerid, params[])
{
new gate1status;
new gate2status;
if(Player[playerid][Group] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 238.8503,117.7204,1003.2188))
{
if(gate1status == 0)
{
MoveObject(sddoor1, 239.61, 116.06, 1002.21, 0.75, 0.00, 0.00, 91.00);
MoveObject(sddoor2, 239.56, 119.77, 1002.21, 0.75, 0.00, 0.00, 271.00);
gate1status = 1;
}
if(gate1status == 1)
{
MoveObject(sddoor1, 239.61, 116.06, 1002.21, 0.75, 0.00, 0.00, 91.00);
MoveObject(sddoor2, 239.56, 119.05, 1002.21, 0.75, 0.00, 0.00, 271.00);
gate1status = 0;
}
}
}
return 1;
}
