#include <a_samp>new kapu;public OnFilterScriptInit(){ kapu = CreateObject(968,1964.8000500,-2189.8000500,13.5000000,0.0000000,268.0000000,0.0000000); //Ez a sorompó ZÁRT átkonvertált koordinátája return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, \"/kapunyit\", true) == 0) { //ROTX ROTY ROTZ sebesség MoveObject(kapu, 0.0000000,352.0000000,0.0000000, 2.0); SetTimer(\"Vissza\",6000,0);//1 perc múlva bezárás return 1; } return 0;} forward vissza();public vissza(){ //ROTX ROTY ROTZ Sebesség MoveObject(kapu, 0.0000000,268.0000000,0.0000000, 2.0); return 1;}
#include <a_samp>new kapu;new kaputimer;public OnFilterScriptInit(){ kapu = CreateObject(968,1964.8000500,-2189.8000500,13.5000000,0.0000000,268.0000000,0.0000000); //Ez a sorompó ZÁRT átkonvertált koordinátája return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, \"/kapunyit\", true) == 0) { //ROTX ROTY ROTZ sebesség // MoveObject(kapu, 0.0000000,352.0000000,0.0000000, 2.0); MoveObject(kapu,1965.19995, -2189.80005, 13.5,2,0.0000000,352.0000000,0.0000000); kaputimer = SetTimer(\"vissza\",6000,0);//1 perc múlva bezárás return 1; } if(strcmp(cmdtext, \"/kapuhoz1\", true) == 0) { //ROTX ROTY ROTZ sebesség // MoveObject(kapu, 0.0000000,352.0000000,0.0000000, 2.0); SetPlayerPos(playerid,1964.8000500,-2189.8000500,15.5000000); return 1; } return 0;} forward vissza();public vissza(){ //ROTX ROTY ROTZ Sebesség // MoveObject(kapu, 0.0000000,268.0000000,0.0000000, 2.0); MoveObject(kapu,1964.8000500,-2189.8000500,13.5000000,2,0.0000000,268.0000000,0.0000000); KillTimer(kaputimer); return 1;}
if(strcmp(cmdtext, \"/kapunyit\", true) == 0) { if(IsPlayerInRangeOfPoint(playerid,5,1965.19995, -2189.80005, 13.5)) { //ROTX ROTY ROTZ sebesség // MoveObject(kapu, 0.0000000,352.0000000,0.0000000, 2.0); MoveObject(kapu,1965.19995, -2189.80005, 13.5,2,0.0000000,352.0000000,0.0000000); kaputimer = SetTimer(\"vissza\",6000,0);//1 perc múlva bezárás } return 1; }