#include <a_samp>#include <a_players> CMD:adminduty(playerid, params[]) { if(PlayerInfo[playerid][AdminLevel] >= 1) { if(PlayerInfo[playerid][AdminDuty] == false) { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); string, sizeof(string), \" %s Adminszolgálatba lépett, ha segítség kell õt zaklasd\", name); //erre a sorra írja az errorokat SendClientMessageToAll(BANNEDMESSAGE, string); PlayerInfo[playerid][Adminduty] = Create3DTextLabel(\">> Adminszolgálatban! <<\", 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0); PlayerInfo[playerid][Adminduty2] = Create3DTextLabel(\">> Most ne üsd meg! <<\", 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(PlayerInfo[playerid][Adminduty], playerid, 0.0, 0.0, 0.7); Attach3DTextLabelToPlayer(PlayerInfo[playerid][Adminduty2], playerid, 0.0, 0.0, 0.9); PlayerInfo[playerid][AdminDuty] = true; SetPlayerHealth(playerid, 9999999); SendCommandToAdmins(playerid,\"/adminduty\"); } else if(PlayerInfo[playerid][AdminDuty] == true) { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"Admin %s kilépett az adminszolgálatból ne zavard kérdésekkel!\", name); SendClientMessageToAll(BANNEDMESSAGE, string); Delete3DTextLabel(PlayerInfo[playerid][Adminduty]); Delete3DTextLabel(PlayerInfo[playerid][Adminduty2]); PlayerInfo[playerid][AdminDuty] = false; SetPlayerHealth(playerid, 100); SendCommandToAdmins(playerid,\"/adminduty\"); } } else return SendClientMessage(playerid, COLOR_RED, \"Hiba: Minimum 1-es adminnak kell lenned ahhoz, hogy tudd használni ezt a parancsot!\"); return 1; }
#include <a_samp> #include <a_players> CMD:adminduty(playerid, params[]) { if(PlayerInfo[playerid][AdminLevel] >= 1) { if(PlayerInfo[playerid][AdminDuty] == false) { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); string, sizeof(string), \" %s Adminszolgálatba lépett, ha segítség kell õt zaklasd\", name); //erre a sorra írja az errorokat SendClientMessageToAll(BANNEDMESSAGE, string); PlayerInfo[playerid][Adminduty] = Create3DTextLabel(\">> Adminszolgálatban! <<\", 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0); PlayerInfo[playerid][Adminduty2] = Create3DTextLabel(\">> Most ne üsd meg! <<\", 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(PlayerInfo[playerid][Adminduty], playerid, 0.0, 0.0, 0.7); Attach3DTextLabelToPlayer(PlayerInfo[playerid][Adminduty2], playerid, 0.0, 0.0, 0.9); PlayerInfo[playerid][AdminDuty] = true; SetPlayerHealth(playerid, 9999999); SendCommandToAdmins(playerid,\"/adminduty\"); } else if(PlayerInfo[playerid][AdminDuty] == true) { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"Admin %s kilépett az adminszolgálatból ne zavard kérdésekkel!\", name); SendClientMessageToAll(BANNEDMESSAGE, string); Delete3DTextLabel(PlayerInfo[playerid][Adminduty]); Delete3DTextLabel(PlayerInfo[playerid][Adminduty2]); PlayerInfo[playerid][AdminDuty] = false; SetPlayerHealth(playerid, 100); SendCommandToAdmins(playerid,\"/adminduty\"); } } else return SendClientMessage(playerid, COLOR_RED, \"Hiba: Minimum 1-es adminnak kell lenned ahhoz, hogy tudd használni ezt a parancsot!\"); return 1; }CMD:wantedall(playerid, params[]){ if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Ezt a parancsot csak RCON Adminisztrátorok használhatják!\");new szint;if(sscanf(params, \"i\", szint)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /wantedall <szint 0-30>\");if(szint < 0 || szint > 30) return SendClientMessage(playerid, 0xFF0000AA, \"Körözési szint minimum 0 maximum 30\");for(new i = 0; i < MAX_PLAYERS; i++){SetPlayerWantedLevel(i,szint);}return 1;}