if(IsPlayerInRangeOfPoint(playerid, 1, -1150.2023,-947.8828,129.2188)) { if(strcmp(cmdtext, \"/tnyit\", true) == 0) { MoveObject(tkapu, -1149.76807, -941.92993, 124.12698,5); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a konzolnál!\"); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 1, -1150.2023,-947.8828,129.2188)) { if(strcmp(cmdtext, \"/tzar\", true) == 0) { MoveObject(tkapu, -1149.76807, -941.92993, 128.12698,5); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy a konzolnál!\"); } return 1; }
if(IsPlayerInRangeOfPoint(playerid, 1,
if(IsPlayerInRangeOfPoint(playerid, 5.0,
public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, \"/tnyit\", true) == 6) {if(!IsPlayerInRangeOfPoint(playerid, 5.0, -1150.2023,-947.8828,129.2188)) return SendClientMessage(playerid,COLOR_RED,\"Nem vagy a konzolnál!\"); MoveObject(tkapu, -1149.76807, -941.92993, 124.12698,5); return 1; } if(strcmp(cmdtext, \"/tzar\", true) == 5) { if(!IsPlayerInRangeOfPoint(playerid, 5.0, -1150.2023,-947.8828,129.2188)) return SendClientMessage(playerid,COLOR_RED,\"Nem vagy a konzolnál!\"); MoveObject(tkapu, -1149.76807, -941.92993, 128.12698,5); return 1; }return 0;}
if(!strcmp(cmdtext, \"/tnyit\"))if(!strcmp(cmdtext, \"/tzar\"))