if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
#include<a_samp>#include<sscanf>#include<streamer>#define FILTERSCRIPT#if defined FILTERSCRIPTnew kapu;public OnFilterScriptInit(){kapu = CreateDynamicObject(16501, 7.96390, 2452.23828, 17.70760, 359.90601, 0.00000, 90.00560);return 1;} #endif public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, \"/kapu-nyit\", true) == 0) { MoveDynamicObject(kapu,7.96390, 2452.23828, 13.20760,2.0); return 1; } if(strcmp(cmdtext, \"/kapu-zar\", true) == 0) { MoveDynamicObject(kapu,7.9639, 2452.2343, 17.7060,2.0); return 1;} return 0;}
#include<a_samp>#include<sscanf>#include<streamer>#define FILTERSCRIPT#if defined FILTERSCRIPTnew kapu;public OnFilterScriptInit(){kapu = CreateDynamicObject(16501, 7.96390, 2452.23828, 17.70760, 359.90601, 0.00000, 90.00560);return 1;} #endifpublic OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/kapu-nyit\", true) == 0){if(PlayerInfo[playerid][pLeader] != 17 || PlayerInfo[playerid][pMember] != 17) return SendClientMessage(playerid, -1, \"Nem haszálhatod a parancsot!\");if(!IsPlayerInRangeOfPoint(playerid, 4.0, 7.96390, 2452.23828, 17.70760)) return SendClientMessage(playerid, -1, \"Nem vagy a kapu közelében!\"); MoveDynamicObject(kapu,7.96390, 2452.23828, 13.20760,2.0);return 1;}if(strcmp(cmdtext, \"/kapu-zar\", true) == 0){if(PlayerInfo[playerid][pLeader] != 17 || PlayerInfo[playerid][pMember] != 17) return SendClientMessage(playerid, -1, \"Nem haszálhatod a parancsot!\");if(!IsPlayerInRangeOfPoint(playerid, 4.0, 7.96390, 2452.23828, 17.70760)) return SendClientMessage(playerid, -1, \"Nem vagy a kapu közelében!\");MoveDynamicObject(kapu,7.9639, 2452.2343, 17.7060,2.0);return 1;}return 0;}