15.08.2012, 01:16
pawn Код:
command(fbgate, playerid, params[])
{
new gate[128];
if(sscanf(params, "d", gate))
{
SendClientMessage(playerid, WHITE, "SYNTAX: /fbgate [1-3]");
}
else
{
case 1:
{
if(fbgatestatus1 == 0)
{
MoveDynamicObject(fbgate1, -2287.6787, -2759.3147, 45.5280, 3.0);
fbgatestatus1 = 1;
}
}
case 2:
{
if(fbgatestatus== 1)
{
MoveDynamicObject(fbgate1, -2287.13989258,-2758.28002930,43.79999924, 3.0);
fbgatestatus1 = 0;
}
}
}
return 1;
}