new Text3D: R;new bool: Rendorszolgalat[MAX_PLAYERS];CMD:rszolgalat(playerid, params[]){ new sendername[MAX_PLAYER_NAME]; new string[128]; if(gTeam[playerid] = TEAM_POLICE) { if(Rendorszolgalat[playerid] == false) { R = Create3DTextLabel(\"Rendör Szolgálatban\", 0x3125dbAA, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(R, playerid, 0.0, 0.0, 0.4); ShowNameTags( 0 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"{3125db} Rendör %s szolgálatba lépett!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Rendorszolgalat[playerid] = true; } else if(Rendorszolgalat[playerid] == true) { Delete3DTextLabel(R); ShowNameTags( 1 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"{3125db} Rendör %s kilépett a szolgálatból!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Rendorszolgalat[playerid] = false; } } else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy rendör\");return 1;}
new Text3D: R;new bool: Rendorszolgalat[MAX_PLAYERS];CMD:rszolgalat(playerid, params[]){ new sendername[MAX_PLAYER_NAME]; new string[128]; if(gTeam[playerid] == TEAM_POLICE) { if(Rendorszolgalat[playerid] == false) { R = Create3DTextLabel(\"Rendör Szolgálatban\", 0x3125dbAA, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(R, playerid, 0.0, 0.0, 0.4); ShowNameTags( 0 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"{3125db} Rendör %s szolgálatba lépett!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Rendorszolgalat[playerid] = true; } else if(Rendorszolgalat[playerid] == true) { Delete3DTextLabel(R); ShowNameTags( 1 ); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); format(string, sizeof(string), \"{3125db} Rendör %s kilépett a szolgálatból!\", sendername); SendClientMessageToAll(COLOR_YELLOW,string); SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\"); return Rendorszolgalat[playerid] = false; } } else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy rendör\");return 1;}