#include <a_samp> //kapu script:By:Tom_Hudson#pragma tabsize 0new kapu;//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. return 1; }public OnPlayerCommandText(playerid,cmdtext[]){ if(strcmp(cmdtext,\"/nyit\",true) == 0) { 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) { MoveObject(kapu,1279,-612.29999,104.1,1.7);//1.7 a sebessége return 1; } return 0; }
public OnPlayerCommandText(playerid,cmdtext[]) {if(strcmp(cmdtext,\"/nyit\",true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 15.0, 1279.0000000,-612.2999900,104.1000000,0.0,0.0,36.0000000)) { 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, 15.0, 1279.0000000,-612.2999900,104.1000000,0.0,0.0,36.0000000)) MoveObject(kapu,1279,-612.29999,104.1,1.7);//1.7 a sebessége }return 1;}return 0;}
#include <a_samp> //kapu script:By:Tom_Hudson #pragma tabsize 0 new kapu;//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. return 1; } public OnPlayerCommandText(playerid,cmdtext[]) { if(strcmp(cmdtext,\"/nyit\",true) == 0) { 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; } if(strcmp(cmdtext,\"/zár\",true) == 0) { 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; }return 0;}