Incearca asa ! [pawn]if(strcmp(cmd, "/opengate", true) == 0) { if(PlayerToPoint(30.0, playerid,1269.5535,-912.2322,43.0680)) { if(PlayerData[playerid][pAgent] >= 1 || PlayerData[playerid][pAdmin] >= 1) { MoveObject(poartastaff, 1269.44, -913.89, 45.41, 3.0); SendClientMessage(playerid, COLOR_WHITE , "Poarta a fost inchisa."); return 1; } else { SendClientMessage(playerid, COLOR_WHITE , "Nu faci parte din STAFF."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE , "Nu esti langa poarta."); return 1; } } if(strcmp(cmd, "/closegate", true) == 0) { if(PlayerToPoint(30.0, playerid,1270.0198,-916.0640,42.3346)) { if(PlayerData[playerid][pAgent] >= 1 || PlayerData[playerid][pAdmin] >= 1) { MoveObject(poartastaff, 1269.44, -913.89, 36.94, 3.0); SendClientMessage(playerid, COLOR_WHITE, "Poarta a fost deschisa."); return 1; } else { SendClientMessage(playerid, COLOR_WHITE , "Nu faci parte din STAFF."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE , "Nu esti langa poarta."); return 1; } }[/pawn]