mostmeg a /bunker-nyit-ra kicsit odébb ment /bunker-zar-ra meg elsülyedt a föüld alá xD de köszi hogy foglalkohouol vele és segitesz.
#include <a_samp>#define FILTERSCRIPT#if defined FILTERSCRIPTnew bunker;public OnFilterScriptInit(){ CreateObject(bunker, 980, 840.82104492188, -2068.4020996094, 14.531204223633, 0, 0, 0);return 1;} #elsebunker = CreateObject(bunker, 840.82104492188, -2068.4020996094, 14.531204223633, 0, 0, 0);public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/bunker-nyit\", true) == 0) { MoveObject(lift, 840.82104492188, -2068.4020996094, 14.531204223633,2.0); return 1; }return 0;} if(strcmp(cmdtext, \"/bunker-zar\", true) == 0) { MoveObject(bunker, 840.82104492188, -2068.4020996094, 14.531204223633,2.0); return 1; }return 0;}#endif
Alap (mikor a szerver elindul ) helyzet:CreateObject(980, 840.82104492188, -2068.4020996094, 14.531204223633, 0, 0, 0);Mikor már nyitva van (mikor beirtam a /bunker-nyit parancsot ): CreateObject(980, 840.82104492188, -2068.4020996094, 14.531204223633, 0, 0, 0);FilterScriptbe készitem: #include <a_samp>#define FILTERSCRIPT#if defined FILTERSCRIPTnew bunker;public OnFilterScriptInit(){ CreateObject(bunker, 980, 840.82104492188, -2068.4020996094, 14.531204223633, 0, 0, 0);return 1;} #elsebunker = CreateObject(bunker, 840.82104492188, -2068.4020996094, 14.531204223633, 0, 0, 0);public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/bunker-nyit\", true) == 0) { MoveObject(lift, 840.82104492188, -2068.4020996094, 14.531204223633,2.0); return 1; }return 0;} if(strcmp(cmdtext, \"/bunker-zar\", true) == 0) { MoveObject(bunker, 840.82104492188, -2068.4020996094, 14.531204223633,2.0); return 1; }return 0;}#endif Lécci erre vmit mert én bele halok
#include <a_samp>new bunker;public OnFilterScriptInit(){ bunker = CreateObject(980, 840.82104492188, -2068.4020996094, 14.531204223633, 0, 0, 0);return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/bunker-nyit\", true) == 0) { MoveObject(bunker, 840.82104492188, -2068.4020996094, 14.531204223633,2.0); return 1; } if(strcmp(cmdtext, \"/bunker-zar\", true) == 0) { MoveObject(bunker, 840.82104492188, -2068.4020996094, 14.531204223633,2.0); return 1; }return 0;}