new alexkapu;
alexkapu = CreateObject(980, 321.60000610352, -1188.1999511719, 78.099998474121, 0, 0, 218);
if(strcmp(cmdtext, \"/zár\", true)==0){if(IsPlayerInRangeOfPoint(playerid,20,321.60000610352, -1188.1999511719, 78.099998474121)) { MoveObject(alexkapu,321.60000610352, -1188.1999511719, 78.099998474121,2);}else{ SendClientMessage(playerid,0xff0000AA,\"HIBA:{0015ff}Nem vagy a kapu közelébe!\");}return 1;}if(strcmp(cmdtext, \"/nyit\", true)==0){if(IsPlayerInRangeOfPoint(playerid,20,321.60000610352, -1188.1999511719, 78.099998474121)){ new nev[MAX_PLAYER_NAME]; GetPlayerName(playerid, nev, sizeof(nev)); if(strcmp(nev, \"Alex_Seeger\", true) == 0) { MoveObject(alexkapu, 321.599609375, -1188.19921875, 72.099998474121,2); }}else{ SendClientMessage(playerid,0xff0000AA,\"HIBA:{0015ff}Nem vagy a kapu közelébe!\");}return 1;}
#define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xAA3333AA#include <a_samp>new GateID;public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Személyi kapu ObiWan részére by RedNET (founded by Red-Eye)\");print(\"--------------------------------------\\n\");GateID = CreateObject(980, 321.60000610352, -1188.1999511719, 78.099998474121, 0, 0, 218);return 1;}public OnFilterScriptExit(){return 1;} public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/nyit\", cmdtext, true, 10) == 0){new name[32];GetPlayerName(playerid,name,32);if(strcmp(name, \"Alex_Seeger\", true) == 0) { new Float:PosX, Float:PosY, Float:PosZ; if(IsPlayerInRangeOfPoint(playerid,5,PosX,PosY,PosZ)) { MoveObject(GateID,321.599609375, -1188.19921875, 72.099998474121,1, 0, 0, 217.99621582031); SendClientMessage(playerid,COLOR_GREEN,\"Kinyitottad a kaput!\"); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a kapu közelében!\"); } } else { SendClientMessage(playerid,COLOR_RED,\"Sry, privát kapu!\"); }return 1;}if (strcmp(\"/zar\", cmdtext, true, 10) == 0){new name[32];GetPlayerName(playerid,name,32);if(strcmp(name, \"Alex_Seeger\", true) == 0) { new Float:PosX, Float:PosY, Float:PosZ; if(IsPlayerInRangeOfPoint(playerid,5,PosX,PosY,PosZ)) { MoveObject(GateID,321.60000610352, -1188.1999511719, 78.099998474121,1, 0, 0, 218); SendClientMessage(playerid,COLOR_GREEN,\"Bezártad a kaput!\"); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a kapu közelében!\"); } } else { SendClientMessage(playerid,COLOR_RED,\"Sry, privát kapu!\"); }return 1;}return 0;}
Hmm már írtak elõttem xD Bár azt a verziót bárki betudja csukni az kicsit meglepett xDde itt van az enyim is ha már megírtam ide rakom xDNa de itt is van..full code csak bemásolod egy üres filterscriptbe és mûködik, remélem nem írtam el semmit hajnal van már xD #define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xAA3333AA#include <a_samp>new GateID;public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Személyi kapu ObiWan részére by RedNET (founded by Red-Eye)\");print(\"--------------------------------------\\n\");GateID = CreateObject(980, 321.60000610352, -1188.1999511719, 78.099998474121, 0, 0, 218);return 1;}public OnFilterScriptExit(){return 1;} public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/nyit\", cmdtext, true, 10) == 0){new name[32];GetPlayerName(playerid,name,32);if(strcmp(name, \"Alex_Seeger\", true) == 0) { new Float:PosX, Float:PosY, Float:PosZ; if(IsPlayerInRangeOfPoint(playerid,5,PosX,PosY,PosZ)) { MoveObject(GateID,321.599609375, -1188.19921875, 72.099998474121,1, 0, 0, 217.99621582031); SendClientMessage(playerid,COLOR_GREEN,\"Kinyitottad a kaput!\"); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a kapu közelében!\"); } } else { SendClientMessage(playerid,COLOR_RED,\"Sry, privát kapu!\"); }return 1;}if (strcmp(\"/zar\", cmdtext, true, 10) == 0){new name[32];GetPlayerName(playerid,name,32);if(strcmp(name, \"Alex_Seeger\", true) == 0) { new Float:PosX, Float:PosY, Float:PosZ; if(IsPlayerInRangeOfPoint(playerid,5,PosX,PosY,PosZ)) { MoveObject(GateID,321.60000610352, -1188.1999511719, 78.099998474121,1, 0, 0, 218); SendClientMessage(playerid,COLOR_GREEN,\"Bezártad a kaput!\"); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a kapu közelében!\"); } } else { SendClientMessage(playerid,COLOR_RED,\"Sry, privát kapu!\"); }return 1;}return 0;}
#define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xAA3333AA#include <a_samp>new GateID;public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Személyi kapu ObiWan részére by RedNET (founded by Red-Eye)\");print(\"--------------------------------------\\n\");GateID = CreateObject(980, 321.60000610352, -1188.1999511719, 78.099998474121, 0, 0, 218);return 1;}public OnFilterScriptExit(){return 1;} public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/nyit\", cmdtext, true, 10) == 0){new name[32];GetPlayerName(playerid,name,32);if(strcmp(name, \"Alex_Seeger\", true) == 0) { if(IsPlayerInRangeOfPoint(playerid,5,321.60000610352,-1188.1999511719,78.099998474121)) { MoveObject(GateID,321.599609375, -1188.19921875, 72.099998474121,1, 0, 0, 217.99621582031); SendClientMessage(playerid,COLOR_GREEN,\"Kinyitottad a kaput!\"); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a kapu közelében!\"); } } else { SendClientMessage(playerid,COLOR_RED,\"Sry, privát kapu!\"); }return 1;}if (strcmp(\"/zar\", cmdtext, true, 10) == 0){new name[32];GetPlayerName(playerid,name,32);if(strcmp(name, \"Alex_Seeger\", true) == 0) { if(IsPlayerInRangeOfPoint(playerid,5,321.60000610352,-1188.1999511719,78.099998474121)) { MoveObject(GateID,321.60000610352, -1188.1999511719, 78.099998474121,1, 0, 0, 218); SendClientMessage(playerid,COLOR_GREEN,\"Bezártad a kaput!\"); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a kapu közelében!\"); } } else { SendClientMessage(playerid,COLOR_RED,\"Sry, privát kapu!\"); }return 1;}return 0;}