Raised This Month: $32 Target: $400
 8% 

Need help for color.ini for plugin Resetscore


Post New Thread Reply   
 
Thread Tools Display Modes
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-03-2012 , 08:54   Re: Need help for color.ini for resetscore
Reply With Quote #11

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <colorchat>

#define PLUGIN "Reset score"
#define VERSION "1.0"
#define AUTHOR "Bilal"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /resetscore""Reset")
    
register_clcmd("say /rs""Reset")
    
register_clcmd("say_team /rs""Reset")
    
register_clcmd("say_team /resetscore""Reset")
}

public 
Reset(id)
{
    
// action
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
    
// message
    
ColorChat(idGREEN"^1You succesfully ^4reseted^1 your score!")

Remember:
^4 = green
^3 = team color
^1 = standart color

And you also need this.
Attached Files
File Type: inc colorchat.inc (2.5 KB, 146 views)
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 05-03-2012 at 08:55.
Bilal Pro is offline
Mohanad1999
Member
Join Date: Apr 2012
Location: UAE
Old 05-03-2012 , 18:37   Re: Need help for color.ini for resetscore
Reply With Quote #12

Not working i think my plugin massge is "you have just reset your score"

not "^1You succesfully ^4reseted^1 your score!"
__________________
Add me in steam: mo_show

Soory for bad english

Go To The Top Only
Mohanad1999 is offline
Send a message via MSN to Mohanad1999
Old 05-04-2012, 07:37
simple_user
This message has been deleted by simple_user.
Old 05-04-2012, 08:10
simple_user
This message has been deleted by simple_user.
Mohanad1999
Member
Join Date: Apr 2012
Location: UAE
Old 05-04-2012 , 14:04   Re: Need help for color.ini for resetscore
Reply With Quote #13

Is unable the server when added resetscore2.amxx and cant make complie

fixed i think you need .amxx and .sma and color.ini
__________________
Add me in steam: mo_show

Soory for bad english

Go To The Top Only

Last edited by Mohanad1999; 05-04-2012 at 14:05.
Mohanad1999 is offline
Send a message via MSN to Mohanad1999
Old 05-04-2012, 15:00
simple_user
This message has been deleted by simple_user. Reason: you intrusive, illiterate, lazy creature, I hate you, I hate you
Old 05-04-2012, 16:40
Mohanad1999
This message has been deleted by Mohanad1999.
Mohanad1999
Member
Join Date: Apr 2012
Location: UAE
Old 05-04-2012 , 16:55   Re: Need help for color.ini for resetscore
Reply With Quote #14

you cant downlod the plugin i dont know why i upload the color chat you give me





PHP Code:
/* Fun functions
*
* by Numb
*
* This file is provided as is (no warranties).
*/
 
#if defined _colorchat_included
  #endinput
#endif
#define _colorchat_included
 
enum Color
{
     
NORMAL 1// clients scr_concolor cvar color
     
GREEN// Green Color
     
TEAM_COLOR// Red, grey, blue
     
GREY// grey
     
RED// Red
     
BLUE// Blue
}
 
new 
TeamName[][] = 
{
     
"",
     
"TERRORIST",
     
"CT",
     
"SPECTATOR"
}
 
ColorChat(idColor:type, const msg[], {Float,Sql,Result,_}:...)
{
     if( !
get_playersnum() ) return;
     
     new 
message[256];
 
     switch(
type)
     {
           case 
NORMAL// clients scr_concolor cvar color
           
{
                
message[0] = 0x01;
           }
           case 
GREEN// Green
           
{
                
message[0] = 0x04;
           }
           default: 
// White, Red, Blue
           
{
                
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]);
     }
}
 
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;
}
 
FindPlayer()
{
     new 
= -1;
 
     while(
<= get_maxplayers())
     {
           if(
is_user_connected(++i))
                return 
i;
     }
 
     return -
1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
Attached Files
File Type: sma Get Plugin or Get Source (Resetscore 5.0.sma - 101 views - 2.5 KB)
__________________
Add me in steam: mo_show

Soory for bad english

Go To The Top Only

Last edited by Mohanad1999; 05-04-2012 at 17:26.
Mohanad1999 is offline
Send a message via MSN to Mohanad1999
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-04-2012 , 17:26   Re: Need help for color.ini for resetscore
Reply With Quote #15

Dude you are really annoying, stop adding me on steam
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
simple_user
Member
Join Date: Apr 2012
Location: Latvia, the cube
Old 05-04-2012 , 18:00   Re: Need help for color.ini for resetscore
Reply With Quote #16

Mohanad1999, what are you doing with colorchat.inc ? leave it alone.
simple_user is offline
Send a message via Skype™ to simple_user
Mohanad1999
Member
Join Date: Apr 2012
Location: UAE
Old 05-04-2012 , 18:05   Re: Need help for color.ini for resetscore
Reply With Quote #17

simple_user , upload all think i should downloded
__________________
Add me in steam: mo_show

Soory for bad english

Go To The Top Only
Mohanad1999 is offline
Send a message via MSN to Mohanad1999
Old 05-04-2012, 19:09
Mohanad1999
This message has been deleted by Mohanad1999. Reason: No need it
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-04-2012 , 19:24   Re: Need help for color.ini for resetscore
Reply With Quote #18

You are not allowed to post .amxx files.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
tyin
Member
Join Date: Jun 2011
Location: Macedonia
Old 05-05-2012 , 21:42   Re: Need help for color.ini for plugin Resetscore
Reply With Quote #19

You can use this: http://forums.alliedmods.net/showpos...05&postcount=3
tyin is offline
Mohanad1999
Member
Join Date: Apr 2012
Location: UAE
Old 05-06-2012 , 14:38   Re: Need help for color.ini for plugin Resetscore
Reply With Quote #20

Please help me for the color uploaded for me please
__________________
Add me in steam: mo_show

Soory for bad english

Go To The Top Only
Mohanad1999 is offline
Send a message via MSN to Mohanad1999
Old 05-17-2012, 07:20
Mohanad1999
This message has been deleted by Mohanad1999.
Reply


Thread Tools
Display Modes

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 14:34.


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