Admin power.

Results 1 to 13 of 13
  1. #1
    ❀◕ ‿ ◕❀ Zujirawa is offline
    MemberRank
    Aug 2004 Join Date
    凸(¬‿¬)凸Location
    473Posts

    Admin power.

    Request:
    Another Function of admin power like can Teleport to Player.

    /////////////example\\\\\\\\\

    /go name



    Thanks.


  2. #2
    Account Upgraded | Title Enabled! metalgunz is offline
    MemberRank
    May 2011 Join Date
    390Posts

    Re: Admin power.

    There was something like this in a hack for ijji gunz by a guy named Witch who made Witch hacks... he had a command in it to teleport/follow a player.. so If you search for his hack and get it I think you will be able to extract the code from his hack there x'D it might be worth a shot but I know nothing about coding what so ever.

  3. #3
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Admin power.

    its not hard

    u make command /goto [NAME]
    if u check position of the player and than set in your X, Y ,Z
    and finish

    EDIT: it is hard
    Last edited by Tankado; 27-10-12 at 05:12 PM. Reason: make a mistake

  4. #4
    Proficient Member wayutok is offline
    MemberRank
    Oct 2011 Join Date
    198Posts

    Re: Admin power.

    anyone can help us?

  5. #5
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Admin power.

    i know only to set my possition
    PHP Code:
    void ChatCmd_AdminSetPossition(const charline, const int argcchar **const argv)
    {
        if (
    argc 4
        {
            
    OutputCmdWrongArgument(argv[0]);
            return;
        }
        
    bool posx argv[1];
        
    bool posy argv[2]; 
        
    bool posz argv[3];

        
    rvector pos ZGetGame()->m_pMyCharacter->GetPosition();


        
    pos.x=posx;
        
    pos.y=posy;
        
    pos.z=posz;

        
    ZGetGame()->m_pMyCharacter->SetPosition(pos);
    }
    [/
    CODE
    Example:
    /admin_SetPosition 100 100 100


    (NOTE: this not tested)

  6. #6
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Admin power.

    Quote Originally Posted by metalgunz View Post
    There was something like this in a hack for ijji gunz by a guy named Witch who made Witch hacks... he had a command in it to teleport/follow a player.. so If you search for his hack and get it I think you will be able to extract the code from his hack there x'D it might be worth a shot but I know nothing about coding what so ever.
    Yeah, I believe another person made it and released it to the private hacking community and it was called XYZ hack

  7. #7
    Account Upgraded | Title Enabled! metalgunz is offline
    MemberRank
    May 2011 Join Date
    390Posts

    Re: Admin power.

    Witch's New hack. Updated June 26 <-- there you go.. that is the latest hack I suppose. It has what I talked about. Download the file and good luck :3.

  8. #8
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Admin power.

    Quote Originally Posted by metalgunz View Post
    Witch's New hack. Updated June 26 <-- there you go.. that is the latest hack I suppose. It has what I talked about. Download the file and good luck :3.
    where is the source lol

  9. #9
    Apprentice ZxPwn is offline
    MemberRank
    Aug 2009 Join Date
    13Posts

    Re: Admin power.

    Quote Originally Posted by Tankado View Post
    i know only to set my possition
    PHP Code:
    void ChatCmd_AdminSetPossition(const charline, const int argcchar **const argv)
    {
        if (
    argc 4
        {
            
    OutputCmdWrongArgument(argv[0]);
            return;
        }
        
    bool posx argv[1];
        
    bool posy argv[2]; 
        
    bool posz argv[3];

        
    rvector pos ZGetGame()->m_pMyCharacter->GetPosition();


        
    pos.x=posx;
        
    pos.y=posy;
        
    pos.z=posz;

        
    ZGetGame()->m_pMyCharacter->SetPosition(pos);
    }
    [/
    CODE
    Example:
    /admin_SetPosition 100 100 100


    (NOTE: this not tested)
    Code:
    void ChatCmd_AdminSetPosition(const char* line, const int argc, char **const argv)
    {
    	if(argc < 4) {
    		OutputCmdWrongArgument(argv[0]);
    		return;
    	}
    	if(ZGetGame()->m_pMyCharacter->GetUserGrade() == MMUG_ADMIN) {
    		ZGetGame()->m_pMyCharacter->SetPosition(rvector((short)argv[1], (short)argv[2], (short)argv[3]));
    	} else return;
    }
    Tested and works quite well as far as I can tell.

    Code:
    void ChatCmd_AdminGotoPlayer(const char* line, const int argc, char **const argv) {
    	if(argc >= 2) {
    		char Buf[256];
    		ZCharacterManager *pZCManager = ZGetCharacterManager();
    		ZMyCharacter* pChar = ZGetGame()->m_pMyCharacter;
    		if(pZCManager!=NULL) {
    			for(ZCharacterManager::iterator itor = pZCManager->begin(); itor != pZCManager->end(); ++itor) {
    				ZCharacter* pCharacter = (*itor).second;
    				if((strcmp(pCharacter->GetProperty()->GetName(), argv[1]) == 0) &&
    				   (pChar->GetProperty()->GetName()!=pCharacter->GetProperty()->GetName())) {
    					rvector NewPos = pCharacter->GetPosition();
    					pChar->SetPosition(NewPos);
    					sprintf(Buf, "You have teleported to %s. PosX: %3.3f PosY: %3.3f PosZ: %3.3f", argv[1], NewPos.x, NewPos.y, NewPos.z);
    					ZChatOutput(Buf);
    				} else if(pChar->GetProperty()->GetName() == pCharacter->GetProperty()->GetName()) {
    					sprintf(Buf, "You cannot goto yourself!");
    					ZChatOutput(Buf);
    				} else {
    					sprintf(Buf, "User %s does not exist.", argv[1]);
    					ZChatOutput(Buf);
    				}
    			}
    		}
    	}
    }
    This should work for what the OP desires.
    Last edited by ZxPwn; 29-10-12 at 02:04 AM.

  10. #10
    Account Upgraded | Title Enabled! metalgunz is offline
    MemberRank
    May 2011 Join Date
    390Posts

    Re: Admin power.

    Quote Originally Posted by qet123 View Post
    where is the source lol
    What is a source? <-- genuinely asking because no one will tell me because apparently it is an VERY stupid question and I have been wondering what it is ever since I joined Ragezone... please PM me the answer

  11. #11
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Admin power.

    Quote Originally Posted by metalgunz View Post
    What is a source? <-- genuinely asking because no one will tell me because apparently it is an VERY stupid question and I have been wondering what it is ever since I joined Ragezone... please PM me the answer
    Source code - Wikipedia, the free encyclopedia

  12. #12
    Proficient Member wayutok is offline
    MemberRank
    Oct 2011 Join Date
    198Posts

    Re: Admin power.

    Quote Originally Posted by ZxPwn View Post
    Code:
    void ChatCmd_AdminSetPosition(const char* line, const int argc, char **const argv)
    {
    	if(argc < 4) {
    		OutputCmdWrongArgument(argv[0]);
    		return;
    	}
    	if(ZGetGame()->m_pMyCharacter->GetUserGrade() == MMUG_ADMIN) {
    		ZGetGame()->m_pMyCharacter->SetPosition(rvector((short)argv[1], (short)argv[2], (short)argv[3]));
    	} else return;
    }
    Tested and works quite well as far as I can tell.

    Code:
    void ChatCmd_AdminGotoPlayer(const char* line, const int argc, char **const argv) {
    	if(argc >= 2) {
    		char Buf[256];
    		ZCharacterManager *pZCManager = ZGetCharacterManager();
    		ZMyCharacter* pChar = ZGetGame()->m_pMyCharacter;
    		if(pZCManager!=NULL) {
    			for(ZCharacterManager::iterator itor = pZCManager->begin(); itor != pZCManager->end(); ++itor) {
    				ZCharacter* pCharacter = (*itor).second;
    				if((strcmp(pCharacter->GetProperty()->GetName(), argv[1]) == 0) &&
    				   (pChar->GetProperty()->GetName()!=pCharacter->GetProperty()->GetName())) {
    					rvector NewPos = pCharacter->GetPosition();
    					pChar->SetPosition(NewPos);
    					sprintf(Buf, "You have teleported to %s. PosX: %3.3f PosY: %3.3f PosZ: %3.3f", argv[1], NewPos.x, NewPos.y, NewPos.z);
    					ZChatOutput(Buf);
    				} else if(pChar->GetProperty()->GetName() == pCharacter->GetProperty()->GetName()) {
    					sprintf(Buf, "You cannot goto yourself!");
    					ZChatOutput(Buf);
    				} else {
    					sprintf(Buf, "User %s does not exist.", argv[1]);
    					ZChatOutput(Buf);
    				}
    			}
    		}
    	}
    }
    This should work for what the OP desires.
    what is the .ccp or .h i edit?

  13. #13
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Admin power.

    wayutok first leurn how to use chat cmds :)



Advertisement