18.01.2012, 19:58
(
Последний раз редактировалось Aloushi; 18.01.2012 в 20:14.
Причина: [B]GATEOPEN[/B]
)
how to make the gate open by use move object only i need example
#include <a_samp> new Gate, bool:GateClosed = true; public OnGameModeInit() { Gate = CreateObject(512, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0); // 512 = Object ID... 0.0 areCOORDINATES SetTimer("GateCheck", 7000, true); return 1; } forward GateCheck(); public GateCheck() { if(!IsObjectMoving(Gate)){ for(new i; i<GetMaxPlayers(); i++){ if(IsPlayerConnected(i && IsPlayerInRangeOfPoint(i, 15.0, 0.0, 0.0, 0.0)){ //COORDINATES if(GateClosed){ GateClosed = false; MoveObject(Gate, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0); //COORDINATES } else{ GateClosed = true; MoveObject(Gate, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0); //CORDINATES } } } } }