if(strcmp(cmdtext, \"/kapu-nyit\", true) == 0) { new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(!strcmp(PlayerName, \"Magyar_Roland\")) { MoveObject(kapu,2464.023438, -1670.716309, 15.070534, 2.5); return 1; } else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Magyar_Roland használhatja!\"); } } if(strcmp(cmdtext, \"/kapu-zar\", true) == 0) { new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(!strcmp(PlayerName, \"Magyar_Roland\")) { MoveObject(kapu,2464.072266, -1659.174805, 15.078640, 2.5); return 1; } else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Magyar_Roland használhatja!\"); } return 0; }
AddPlayerClass(269,2456.6482,-1658.8544,13.3047,278.6704,0,0,0,0,0,0); // roland kapuja AddPlayerClass(269,2472.1550,-1658.7913,13.3382,270.2337,0,0,0,0,0,0); // roland kapuja
if(strcmp(cmdtext, \"/kapu-nyit\", true) == 0){if(IsPlayerInRangeOfPoint ( playerid, 3.0, 2456.6482,-1658.8544,13.3047 ) || IsPlayerInRangeOfPoint ( playerid, 3.0, 2472.1550,-1658.7913,13.3382 ) ){new PlayerName[MAX_PLAYER_NAME];GetPlayerName(playerid, PlayerName, sizeof(PlayerName));if(!strcmp(PlayerName, \"Magyar_Roland\")){ MoveObject(kapu,2464.023438, -1670.716309, 15.070534, 2.5);} else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Magyar_Roland használhatja!\");}}return 1;}if(strcmp(cmdtext, \"/kapu-zar\", true) == 0){ if(IsPlayerInRangeOfPoint ( playerid, 3.0, 2456.6482,-1658.8544,13.3047 ) || IsPlayerInRangeOfPoint ( playerid, 3.0, 2472.1550,-1658.7913,13.3382 ) ){new PlayerName[MAX_PLAYER_NAME];GetPlayerName(playerid, PlayerName, sizeof(PlayerName));if(!strcmp(PlayerName, \"Magyar_Roland\")){ MoveObject(kapu,2464.072266, -1659.174805, 15.078640, 2.5);} else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Magyar_Roland használhatja!\");}}return 1;}
if(strcmp(cmdtext, \"/kapu2-nyit\", true) == 0){ new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(!strcmp(PlayerName, \"Mihucza_Tibor\")) { MoveObject(rolikapuja,1811.5709228516, -1889.7080078125, 9.1805801391602, 2.5); return 1; } else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Mihucza_Tibor használhatja!\"); } } if(strcmp(cmdtext, \"/kapu2-zar\", true) == 0){ new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(!strcmp(PlayerName, \"Mihucza_Tibor\")) { MoveObject(rolikapuja,1811.5703125, -1889.7080078125, 15.18058013916, 2.5); return 1; } else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Mihucza_Tibor használhatja!\"); } return 0; }
AddPlayerClass(269,1818.0493,-1890.1666,13.4044,82.8820,0,0,0,0,0,0); // roli kapuja AddPlayerClass(269,1806.0405,-1890.3759,13.4084,275.2704,0,0,0,0,0,0); // roli kapuja
if(strcmp(cmdtext, \"/kapu-nyit\", true) == 0){ if(IsPlayerInRangeOfPoint ( playerid, 3.0, 1818.0493,-1890.1666,13.4044 ) || IsPlayerInRangeOfPoint ( playerid, 3.0, 1806.0405,-1890.3759,13.4084 ) ) { new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(!strcmp(PlayerName, \"Mihucza_Tibor\")) { MoveObject(rolikapuja,1811.5709228516, -1889.7080078125, 9.1805801391602, 2.5); } else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Magyar_Roland használhatja!\"); } } return 1;}if(strcmp(cmdtext, \"/kapu-zar\", true) == 0){ if(IsPlayerInRangeOfPoint ( playerid, 3.0, 1818.0493,-1890.1666,13.4044 ) || IsPlayerInRangeOfPoint ( playerid, 3.0, 1806.0405,-1890.3759,13.4084 ) ) { new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(!strcmp(PlayerName, \"Mihucza_Tibor\")) { MoveObject(rolikapuja,1811.5703125, -1889.7080078125, 15.18058013916, 2.5); } else { SendClientMessage(playerid,0xAA3333AA, \"Ezt a parancsot csak Mihucza_Tibor használhatja!\"); } } return 1;}
lehet én látom rosszul, de én úgy veszem ki h ez csak akkor fog menni ha nem Mihcza_Tibor használjja a \"!\" miatt.
lehet én látom rosszul, de én úgy veszem ki h ez csak akkor fog menni ha nem Mihcza_Tibor használjja a \"!\" miatt. A \'!\' és a \'0\' ugyanaz, tehát jól fog mûködni( az strcmp függvény visszatérési értéke miatt ). [/quote]Akkor nem szóltam