#include <a_samp> //kapu script:By:Tom_Hudson#pragma tabsize 0new kapu;new kapu2;//ebbol persze lehet több is.public OnGameModeInit() { kapu = CreateObject(980,1279.0000000,-612.2999900,104.1000000,0.0000000,0.0000000,36.0000000);//Ide az átkonvertált alakot. kapu2 = CreateObject(980,1565.7000000,358.3999900,21.3000000,0.0000000,0.0000000,306.0000000); return 1; }public OnPlayerCommandText(playerid,cmdtext[]) { if(strcmp(cmdtext,\"/nyit\",true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 25.0, 1279.0000000,-612.2999900,104.1000000)) { MoveObject(kapu2,1565.7,358.39999,15.5,1.7); MoveObject(kapu,1279,-612.29999,98,1.7);//1.7 a sebessége a x,y,z helyére } return 1; } if(strcmp(cmdtext,\"/zár\",true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 25.0, 1279.0000000,-612.2999900,104.1000000)) { MoveObject(kapu2,1565.7,358.39999,21.3,1.7); MoveObject(kapu,1279,-612.29999,104.1,1.7);//1.7 a sebessége } return 1; } return 0;}
#include <a_samp>#include <zcmd> //kapu script:By:Tom_Hudson#pragma tabsize 0new kapu;new kapu2;//ebbol persze lehet több is.public OnGameModeInit() {kapu = CreateObject(980,1279.0000000,-612.2999900,104.1000000,0.0000000,0.0000000,36.0000000);//Ide az átkonvertált alakot.kapu2 = CreateObject(980,1565.7000000,358.3999900,21.3000000,0.0000000,0.0000000,306.0000000);return 1; }CMD:nyit(playerid, params[]) {if(IsPlayerInRangeOfPoint(playerid, 25.0, 1279.0000000,-612.2999900,104.1000000)) {MoveObject(kapu,1279,-612.29999,98,1.7);//1.7 a sebessége a x,y,z helyére} return 1; }CMD:nyit2(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 25.0, 1279.0000000,-612.2999900,104.1000000)) {MoveObject(kapu2,1565.7,358.39999,15.5,1.7);} return 1; }CMD:zar(playerid, params[]) {if(IsPlayerInRangeOfPoint(playerid, 25.0, 1279.0000000,-612.2999900,104.1000000)) { MoveObject(kapu,1279,-612.29999,104.1,1.7);//1.7 a sebessége} return 1; }CMD:zar2(playerid, params[]) {if(IsPlayerInRangeOfPoint(playerid, 25.0, 1279.0000000,-612.2999900,104.1000000)) {MoveObject(kapu2,1565.7,358.39999,21.3,1.7);} return 1; }