#define FILTERSCRIPT#include a_samp#include a_objects#if defined FILTERSCRIPTforward Sorompo(playerid);new sor1;public OnFilterScriptInit(){sor1=CreateObject(968,-1641.8000500,572.9000200,39.4000000,0.0000000,268.5000000,316.2500000);SetTimer(\"Sorompo\",1000,1);return 1;}public Sorompo(playerid){if(IsPlayerInRangeOfPoint(playerid, 10.0, -1641.8000500,572.9000200,39.4000000)){ MoveObject(sor1, -1641.8000500,572.9000200,39.4000000,0.2, 0.0000000,352.5000000,316.2500000); // nyitot} else { MoveObject(sor1, -1641.8000500,572.9000200,39.4000000,0.2, 0.0000000,268.5000000,316.2500000); //zárt }}#endif
#include a_samp#include a_objects#include foreachforward Sorompo();new sor1;public OnFilterScriptInit() { sor1=CreateObject(968,-1641.8000500,572.9000200,39.4000000,0.0000000,268.5000000,316.2500000); SetTimer(\"Sorompo\",1000,1); return 1;}public Sorompo() {new sorompo = 0;foreach(Player, i) {if(IsPlayerInRangeOfPoint(i, 10.0, -1641.8000500,572.9000200,39.4000000)) { sorompo ++;}}if(sorompo != 0) MoveObject(sor1, -1641.8000500,572.9000200,39.4000000,0.2, 0.0000000,352.5000000,316.2500000); // nyitotif(!sorompo) MoveObject(sor1, -1641.8000500,572.9000200,39.4000000,0.2, 0.0000000,268.5000000,316.2500000); //zárt}
#define FILTERSCRIPT#include a_samp#include a_objects#if defined FILTERSCRIPTforward Sorompo(playerid);new sor1;public OnFilterScriptInit(){ sor1=CreateObject(968,-1641.8000500,572.9000200,39.4000000,0.0000000,268.5000000,316.2500000); SetTimer(\"Sorompo\",1000,1); return 1;}public Sorompo(playerid){ if(IsPlayerInRangeOfPoint(playerid, 10.0, -1641.8000500,572.9000200,39.4000000)) { MoveObject(sor1, -1641.8000500,572.9000200,39.4000000,2.0, 0.0000000,352.5000000,316.2500000); // nyitot } else { MoveObject(sor1, -1641.8000500,572.9000200,39.4000000,2.0, 0.0000000,268.5000000,316.2500000); //zárt }}#endif