Raised This Month: $ Target: $400
 0% 

HideNSeek XP Mod v0.0.1 (v0.0.3 in beta with v0.0.4 in progress)


Post New Thread Reply   
 
Thread Tools Display Modes
Hibiki_XD
Member
Join Date: Jan 2008
Old 11-30-2009 , 17:28   Re: HideNSeek XP Mod by Exolent
Reply With Quote #71

Add Color Text:

Before This:
Quote:
#if defined USING_SQL
add this:
PHP Code:
ColorChat(idColor:type, const msg[], {Float,Sql,Result,_}:...) {
    new 
message[256];

    switch(
type) {
        case 
NORMAL:    message[0] = 0x01;
        case 
GREEN:    message[0] = 0x04;
        default:    
message[0] = 0x03;
    }

    
vformat(message[1], 251msg4);

    
// Make sure message is not longer than 192 character. Will crash the server.
    
message[192] = '^0';

    new 
teamColorChangeindexMSG_Type;
    
    if(
id) {
        
MSG_Type MSG_ONE;
        
index id;
    } else {
        
index FindPlayer();
        
MSG_Type MSG_ALL;
    }
    
    
team get_user_team(index);
    
ColorChange ColorSelection(indexMSG_Typetype);

    
ShowColorMessage(indexMSG_Typemessage);
        
    if(
ColorChange)
        
Team_Info(indexMSG_TypeTeamName[team]);
}

FindPlayer(){
    new 
= -1;

    while(
<= get_maxplayers())
        if(
is_user_connected(++i))
            return 
i;
    
    return -
1;
}

ShowColorMessage(idtypemessage[]) {
    static 
bool:saytext_used;
    static 
get_user_msgid_saytext;
    if(!
saytext_used) {
        
get_user_msgid_saytext get_user_msgid("SayText");
        
saytext_used true;
    }
    
message_begin(typeget_user_msgid_saytext_id);
    
write_byte(id);
    
write_string(message);
    
message_end();    
}

Team_Info(idtypeteam[]) {
    static 
bool:teaminfo_used;
    static 
get_user_msgid_teaminfo;
    if(!
teaminfo_used) {
        
get_user_msgid_teaminfo get_user_msgid("TeamInfo");
        
teaminfo_used true;
    }
    
message_begin(typeget_user_msgid_teaminfo_id);
    
write_byte(id);
    
write_string(team);
    
message_end();

    return 
1;
}

ColorSelection(indextypeColor:Type) {
    switch(
Type) {
        case 
RED:    return Team_Info(indextypeTeamName[1]);
        case 
BLUE:    return Team_Info(indextypeTeamName[2]);
        case 
GREY:    return Team_Info(indextypeTeamName[0]);
    }

    return 
0;

and change this:
Quote:
Print(victim, "You lost %i XP!!", xp);
to this:
PHP Code:
ColorChat(victimRED"^x04You lost %i XP!"xp); 
PHP Code:
Colors Code:
^
x04 Green
^x03 Team Color 
PHP Code:
ColorChat(?, RED"Text ^x03Text, ^x04 Text"); 
i hope this help u .

Version 0.0.5:
Added Weapons Menu
AWP : MAX LEVEL 12 : MAX CHANCE 36 : START 1600
DEAGLE : MAX LEVEL 10 : MAX CHANCE 40 : START 1200
__________________
This is me Server Hide-n-Seek
[OFFLINE]

Last edited by Hibiki_XD; 11-30-2009 at 17:31.
Hibiki_XD is offline
kikifrh
Senior Member
Join Date: May 2009
Old 11-30-2009 , 17:53   Re: HideNSeek XP Mod by Exolent
Reply With Quote #72

If I make this, what will happen?
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp);
This? For CT:
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp)
For T:
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp)
And what is the "RED" after "victim," if I'm going to change the color? It have to be there to work?
and there is difference from this
to this?
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp)
Code:
ColorChat (victim, RED, "^x04 You lost^x 03%i^x 04XP!", xp)
Thx

EDIT: I can put the codes you send me anywhere? or must be below something?
EDIT2:You said, put color text under #if defined USING_SQL, u mean colorchat (The code before this one "#if defined USING_SQL")
EDIT3:Too much edits, sorry, but if I want to do this
Code:
ColorChat (victim, RED, "You lost ^x03%i XP!", xp);

letting "You lost" and "XP" with the default say colors?, this code way will color "the value" and "XP", won't it?
Thx again :d

Last edited by kikifrh; 11-30-2009 at 18:04.
kikifrh is offline
Hibiki_XD
Member
Join Date: Jan 2008
Old 11-30-2009 , 18:25   Re: HideNSeek XP Mod by Exolent
Reply With Quote #73

Quote:
Originally Posted by kikifrh View Post
If I make this, what will happen?
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp);
This? For CT:
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp)
For T:
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp)
And what is the "RED" after "victim," if I'm going to change the color? It have to be there to work?
and there is difference from this
to this?
Code:
ColorChat (victim, RED, "^x04You lost ^x03%i ^x04XP!", xp)
Code:
ColorChat (victim, RED, "^x04 You lost^x 03%i^x 04XP!", xp)
Thx

EDIT: I can put the codes you send me anywhere? or must be below something?
EDIT2:You said, put color text under #if defined USING_SQL, u mean colorchat (The code before this one "#if defined USING_SQL")
EDIT3:Too much edits, sorry, but if I want to do this
Code:
ColorChat (victim, RED, "You lost ^x03%i XP!", xp);

letting "You lost" and "XP" with the default say colors?, this code way will color "the value" and "XP", won't it?
Thx again :d
Let See if u Add this:

Quote:
^x04You Lost ^x03i% XP!
it will show this:
Quote:
You lost 5 XP!
like it .
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
COre^
Member
Join Date: Dec 2008
Old 11-30-2009 , 18:28   Re: HideNSeek XP Mod by Exolent
Reply With Quote #74

I have a problem, ive just put the plugin working on the server but it cant gained exp while killing other players. anyone that knows how to solve it?
COre^ is offline
Hibiki_XD
Member
Join Date: Jan 2008
Old 11-30-2009 , 18:56   Re: HideNSeek XP Mod by Exolent
Reply With Quote #75

send me a PM with ur script and i will fix it for u.
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-30-2009 , 22:46   Re: HideNSeek XP Mod by Exolent
Reply With Quote #76

Quote:
Originally Posted by COre^ View Post
I have a problem, ive just put the plugin working on the server but it cant gained exp while killing other players. anyone that knows how to solve it?
It's because you are using Non-Steam.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Hibiki_XD
Member
Join Date: Jan 2008
Old 11-30-2009 , 23:35   Re: HideNSeek XP Mod by Exolent
Reply With Quote #77

@ Exolent : i got some error with the script of the Shop that i'm making on ur xpmod when i try to add the BUY 10 XP :S i can't get that to work >.<...
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
kikifrh
Senior Member
Join Date: May 2009
Old 12-01-2009 , 08:20   Re: HideNSeek XP Mod by Exolent
Reply With Quote #78

@Exolent: My chat messages apparear like this....Why?
Code:
 [HNS XP] You lost          i% XP!
I have steam, and my plugin is you hns xp v0.0.1 :S
kikifrh is offline
Hibiki_XD
Member
Join Date: Jan 2008
Old 12-01-2009 , 09:11   Re: HideNSeek XP Mod by Exolent
Reply With Quote #79

@ kikifrh : send me ur hns xp mod in a PM and i will check waht u have wrong
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
D-TOX
Member
Join Date: Mar 2008
Old 12-01-2009 , 10:55   Re: HideNSeek XP Mod by Exolent
Reply With Quote #80

Perhaps another bug found, when you get armor from your hidenseek mod it replaces your XP mod armor, but you can just put the amxx file above hidenseek mod ?
Well you pay XP for more armor, and you don't get it ^.^
__________________
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░█▀▀ ░█▀█ ░█ ░█▀▀ ░░█▀▀ ░█▀█ ░█ ░█░░░
░█▀▀ ░█▀▀ ░█ ░█ ░░░░█▀▀ ░█▀█ ░█ ░█░░░
░▀▀▀ ░▀ ░░░▀ ░▀▀▀ ░░▀ ░░░▀░▀ ░▀ ░▀▀▀░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
D-TOX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode