19.10.2012, 20:36
This is the ONLY "movegate" in my script, I believe the script needs something added to it, I just cant put my finger on it.
CMD:movegate(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2294.39990234,2499.00000000,10.39999962))
{
if(gStatus == 0)
{
MoveObject(gate,2294.39990234,2499.00000000,10.399 99962,3);
SendClientMessage(playerid, COLOR_GREY, "You successfuly opened the gate");
gStatus = 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2294.39990234,2499.00000000,10.39999962))
{
if(gStatus == 1)
{
MoveObject(gate,2294.39990234,2499.00000000,5.0999 9990,3);
SendClientMessage(playerid, COLOR_GREY, "You successfuly closed the gate");
gStatus = 0;
}
}
return 1;
}
CMD:movegate(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2294.39990234,2499.00000000,10.39999962))
{
if(gStatus == 0)
{
MoveObject(gate,2294.39990234,2499.00000000,10.399 99962,3);
SendClientMessage(playerid, COLOR_GREY, "You successfuly opened the gate");
gStatus = 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2294.39990234,2499.00000000,10.39999962))
{
if(gStatus == 1)
{
MoveObject(gate,2294.39990234,2499.00000000,5.0999 9990,3);
SendClientMessage(playerid, COLOR_GREY, "You successfuly closed the gate");
gStatus = 0;
}
}
return 1;
}