#include <a_samp>new blaise1;new blaise2;forward Blaisehouse (playerid);public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Autómata kapu By:Blaise\");print(\"--------------------------------------\\n\");SetTimer(\"Blaisehouse\",100,1);blaise1 = CreateObject(980,317.3999900,-1191.4000000,78.0000000,0.0000000,0.0000000,218.0000000); //object(airportgate) (6)blaise2 = CreateObject(980,326.3999900,-1184.2000000,78.0000000,0.0000000,0.0000000,219.0000000); //object(airportgate) (3)return 1;}public OnFilterScriptExit(){return 1;}public Blaisehouse(playerid){new name[24];GetPlayerName(playerid, name, sizeof(name));if(strcmp(name, \"Blaise\", true) || strcmp(name, \"Jacob\", true)){ if(IsPlayerInRangeOfPoint(playerid,10.0,324.1663,-1191.6332,76.1858)) //object (kapu) koordinata {MoveObject(blaise1,310.0000000,-1197.1000000,78.0000000,3.00); MoveObject(blaise2,332.1000100,-1179.5000000,78.0000000,3.00); //nyitott kapu koordinata a 6.00 a sebessége}else{MoveObject(blaise1,317.3999900,-1191.4000000,78.0000000,3.00); MoveObject(blaise2,326.3999900,-1184.2000000,78.0000000,3.00); //zárt kapu koordinata}}}
if(strcmp(name, \"Blaise\", true) || strcmp(name, \"Jacob\", true) || strcmp(name, \"Pisti\", true) || strcmp(name, \"Józsi\", true) || strcmp(name, \"Aranka\", true))
if(!strcmp(name, \"Blaise\", true) || !strcmp(name, \"Jacob\", true) || !strcmp(name, \"Pisti\", true) || !strcmp(name, \"Józsi\", true) || !strcmp(name, \"Aranka\", true))
public Blaisehouse(playerid) {new name[24];GetPlayerName(playerid, name, sizeof(name));if(!strcmp(name, \"Blaise\") || !strcmp(name, \"Jacob\")) { if(IsPlayerInRangeOfPoint(playerid,10.0,324.1663,-1191.6332,76.1858)) { MoveObject(blaise1,310.0000000,-1197.1000000,78.0000000,3.00); MoveObject(blaise2,332.1000100,-1179.5000000,78.0000000,3.00); //nyitott kapu koordinata a 6.00 a sebessége }else{ MoveObject(blaise1,317.3999900,-1191.4000000,78.0000000,3.00); MoveObject(blaise2,326.3999900,-1184.2000000,78.0000000,3.00); //zárt kapu koordinata }}return 1;}
#include <a_samp>new blaise1;new blaise2;new kapu[MAX_PLAYERS];public OnPlayerConnect(playerid){ new name[24]; GetPlayerName(playerid, name, sizeof(name)); if(!strcmp(name, \"Blaise\", true) || !strcmp(name, \"Jacob\", true)) // ide kell írnod majd a többi nevet is kapu[playerid] = SetTimerEx(\"Blaisehouse\", 500, true, \"d\", playerid); return 1;}public OnPlayerDisconnect(playerid){ KillTimer(kapu[playerid]); return 1;}forward Blaisehouse (playerid);public OnFilterScriptInit(){ print(\"\\n--------------------------------------\"); print(\" Autómata kapu By:Blaise\"); print(\"--------------------------------------\\n\"); blaise1 = CreateObject(980,317.3999900,-1191.4000000,78.0000000,0.0000000,0.0000000,218.0000000); //object(airportgate) (6) blaise2 = CreateObject(980,326.3999900,-1184.2000000,78.0000000,0.0000000,0.0000000,219.0000000); //object(airportgate) (3) return 1;} public Blaisehouse(playerid){ if(IsPlayerInRangeOfPoint(playerid,10.0,324.1663,-1191.6332,76.1858)) //object (kapu) koordinata { MoveObject(blaise1,310.0000000,-1197.1000000,78.0000000,3.00); MoveObject(blaise2,332.1000100,-1179.5000000,78.0000000,3.00); //nyitott kapu koordinata a 6.00 a sebessége } else { MoveObject(blaise1,317.3999900,-1191.4000000,78.0000000,3.00); MoveObject(blaise2,326.3999900,-1184.2000000,78.0000000,3.00); //zárt kapu koordinata } return 1;}
[/quote] taget tagre![/mod]