if (strcmp(\"/cellanyit\", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0 { MoveObject(cell0,1491.21484375-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1 { MoveObject(cell1,1494.41210938-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2 { MoveObject(cell2,1497.61132812-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3 { MoveObject(cell3,1500.81445312-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4 { MoveObject(cell4,1500.81994629-1.25,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5 { MoveObject(cell5,1491.22094727-1.25,-1761.50000000,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6 { MoveObject(cell6,1494.41894531-1.25,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7 { MoveObject(cell7,1497.61999512-1.25,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } return 1; } if (strcmp(\"/cellazár\", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0 { MoveObject(cell0,1491.21484375,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1 { MoveObject(cell1,1494.41210938,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2 { MoveObject(cell2,1497.61132812,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3 { MoveObject(cell3,1500.81445312,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4 { MoveObject(cell4,1500.81994629,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5 { MoveObject(cell5,1491.22094727,-1761.50000000,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6 { MoveObject(cell6,1494.41894531,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7 { MoveObject(cell7,1497.61999512,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } return 1; } if (strcmp(\"/kapunyit\", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door { MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1 { MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2 { MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3 { MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } return 1; } if (strcmp(\"/kapuzár\", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0 { MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1 { MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2 { MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3 { MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } return 1; }Köszönöm elõlre is!
if (strcmp(\"/cellanyit\", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy rendor!\"); if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0 { MoveObject(cell0,1491.21484375-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1 { MoveObject(cell1,1494.41210938-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2 { MoveObject(cell2,1497.61132812-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3 { MoveObject(cell3,1500.81445312-1.25,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4 { MoveObject(cell4,1500.81994629-1.25,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5 { MoveObject(cell5,1491.22094727-1.25,-1761.50000000,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6 { MoveObject(cell6,1494.41894531-1.25,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7 { MoveObject(cell7,1497.61999512-1.25,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella kinyitva\"); } else SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy nyitható cella közelében!\"); return 1; } if (strcmp(\"/cellazár\", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy rendor!\"); if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0 { MoveObject(cell0,1491.21484375,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1 { MoveObject(cell1,1494.41210938,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2 { MoveObject(cell2,1497.61132812,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3 { MoveObject(cell3,1500.81445312,-1764.90002441,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4 { MoveObject(cell4,1500.81994629,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5 { MoveObject(cell5,1491.22094727,-1761.50000000,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6 { MoveObject(cell6,1494.41894531,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7 { MoveObject(cell7,1497.61999512,-1761.51000977,3284.25048828,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Cella bezárva.\"); } else SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy zárható cella közelében!\"); return 1; } if (strcmp(\"/kapunyit\", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy rendor!\"); if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door { MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1 { MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2 { MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3 { MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó kinyitva\"); } else SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy nyitható kapu közelében!\"); return 1; } if (strcmp(\"/kapuzár\", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy rendor!\"); if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0 { MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1 { MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2 { MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3 { MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50); SendClientMessage(playerid, 0xFFFFFFFF, \"INFO: Ajtó bezárva\"); } else SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy zárható kapu közelében!\"); return 1; }
Egy kérésem lehetne még? Így megtudod csinálni?if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1
if(PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid, 0xFFFFFFFF, \"HIBA: Nem vagy rendor!\");