if (strcmp(\"/aduty\", cmdtext, true) == 0){new sendername[MAX_PLAYER_NAME];new string[128]; { if(PInfo[playerid][Level] < 1) { if(Adminszolgalat[playerid] == false) { ASZ = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(ASZ, playerid, 0.0, 0.0, 0.4); ShowNameTags( 0 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s szolgálatba lépett!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); Adminszolgalat[playerid] = true; } else if(Adminszolgalat[playerid] == true) { Delete3DTextLabel(ASZ); ShowNameTags( 1 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s kilépett a szolgálatból!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); Adminszolgalat[playerid] = false; } } else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\"); }return 1;}
if (strcmp(\"/aduty\", cmdtext, true) == 0){ new sendername[MAX_PLAYER_NAME]; new string[128]; if(PInfo[playerid][Level] >= 1) { if(Adminszolgalat[playerid] == false) { ASZ = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(ASZ, playerid, 0.0, 0.0, 0.4); ShowNameTags( 0 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s szolgálatba lépett!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Adminszolgalat[playerid] = true; }else if(Adminszolgalat[playerid] == true){ Delete3DTextLabel(ASZ); ShowNameTags( 1 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s kilépett a szolgálatból!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Adminszolgalat[playerid] = false; } } else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\"); return 1;}
if (strcmp(\"/admin\", cmdtext, true) == 0){ new sendername[MAX_PLAYER_NAME]; new string[128]; if(PInfo[playerid][Level] >= 1) { if(Adminszolgalat[playerid] == false) { ASZ = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(ASZ, playerid, 0.0, 0.0, 0.4); ShowNameTags( 0 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s szolgálatba lépett!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Adminszolgalat[playerid] = true; } else if(Adminszolgalat[playerid] == true) { Delete3DTextLabel(ASZ); ShowNameTags( 1 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s kilépett a szolgálatból!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Adminszolgalat[playerid] = false; } } else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\"); return 1;}
format(string, sizeof(string), \"Admin %s szolgálatba lépett!\", sendername); else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\");
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2663) : warning 217: loose indentationD:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2668) : warning 217: loose indentationPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase2 Warnings.de mért if (strcmp(\"/admin\", cmdtext, true) == 0){ new sendername[MAX_PLAYER_NAME]; new string[128]; if(PInfo[playerid][Level] >= 1) { if(Adminszolgalat[playerid] == false) { ASZ = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(ASZ, playerid, 0.0, 0.0, 0.4); ShowNameTags( 0 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s szolgálatba lépett!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Adminszolgalat[playerid] = true; } else if(Adminszolgalat[playerid] == true) { Delete3DTextLabel(ASZ); ShowNameTags( 1 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"Admin %s kilépett a szolgálatból!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Adminszolgalat[playerid] = false; } } else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\"); return 1;} format(string, sizeof(string), \"Admin %s szolgálatba lépett!\", sendername); else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy admin\"); ezekel van baj