SA-MP Forums Archive
Help with automatic door :) ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with automatic door :) ? (/showthread.php?tid=259070)



Help with automatic door :) ? - lawonama - 02.06.2011

Fixed.


Re: Help with automatic door :) ? - Amel_PAtomAXx - 02.06.2011

easy :
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == enterh)
    {
      SetPlayerWeather(playerid, 45);
      SetPlayerPos(playerid, 2295.00, -1121.17, 817.82);
      return 1;
    }
     
       
    if(pickupid == opene)
    {
       new string[50];
       new movetime = MoveObject(obj, 0, 10, 0, 2.00);
       new movetime2 = MoveObject(obj2, 0, -10, 0, 2.00);
       format(string, sizeof(string), "", movetime);
       format(string, sizeof(string), "", movetime2);
       SendClientMessage(playerid, 0xFF000000, string);
       SetTimer("close", 5000, 0);
       return 1;
    }
    return 1;
}



Re: Help with automatic door :) ? - lawonama - 02.06.2011

Thanks <3.