Raised This Month: $ Target: $400
 0% 

ResetScore


Post New Thread Reply   
 
Thread Tools Display Modes
VarmaRitik
Senior Member
Join Date: Jul 2014
Location: India
Old 02-06-2015 , 03:19   Re: ResetScore
Reply With Quote #11

@xxxperts,
Maybe you are right, but you should know that I'm just a beginner to AMX Mod X Pawn..
So, that's why I am learning with existing plugins and tying to publish them..So, I can know what's my mistakes and how do I correct them.. Ok..?

Thank You.
VarmaRitik is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 02-06-2015 , 03:52   Re: ResetScore
Reply With Quote #12

It is better to post your code in scripting help section, if you want to learn how to script.
zmd94 is offline
VarmaRitik
Senior Member
Join Date: Jul 2014
Location: India
Old 02-06-2015 , 03:55   Re: ResetScore
Reply With Quote #13

Yes I will, zmd..
VarmaRitik is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-06-2015 , 06:12   Re: ResetScore
Reply With Quote #14

Quote:
Originally Posted by HamletEagle View Post
He can post his code in scripting help anyway and we can show what's wrong and how to improve it.
I like when peoples ignore me, then when someone else comes and say the same thing they magically understand.
__________________
HamletEagle is offline
Shockyboy
Senior Member
Join Date: Apr 2014
Location: Earth
Old 02-06-2015 , 06:46   Re: ResetScore
Reply With Quote #15

Quote:
Originally Posted by HamletEagle View Post
I like when peoples ignore me, then when someone else comes and say the same thing they magically understand.
SARCASM :p
__________________


[ LEARNING SCRIPTING ]
[ ||||||||||||] [ 30% ]
Shockyboy is offline
Shockyboy
Senior Member
Join Date: Apr 2014
Location: Earth
Old 02-06-2015 , 06:51   Re: ResetScore
Reply With Quote #16

Try To Make This Plugin, With ColorChat & dhud
__________________


[ LEARNING SCRIPTING ]
[ ||||||||||||] [ 30% ]
Shockyboy is offline
bat
Veteran Member
Join Date: Jul 2012
Old 02-06-2015 , 07:23   Re: ResetScore
Reply With Quote #17

Quote:
Originally Posted by Shockyboy View Post
Try To Make This Plugin, With ColorChat & dhud
PHP Code:
#include amxmodx
#include cstrike
#include fun

new const resetscore[][] =
{
    
"say resetscore",
    
"say rs",
    
"say /resetscore",
    
"say /rs"
}

const 
CHAT // 0 - Message will be send in hud; 1 - Message will be send in chat

public plugin_init() for(new 0sizeof resetscorea++) register_clcmd(resetscore[a], "cmdresetscore")    

public 
cmdresetscore(id)
{
  if(
is_user_connected(id))
  {
      static 
name[32]
      
get_user_name(idnamecharsmax(name))
      
cs_set_user_deaths(id0)
      
set_user_frags(id0)
      
cs_set_user_deaths(id0)
      
set_user_frags(id0)
      switch(
CHAT)
      {
         case 
0:
         {
                 
set_dhudmessage(150150150, -1.00.6026.03.00.11.5)
                 
show_dhudmessage(id"You score have succes reset!")
          }
          case 
1
          {
                 
saycolored(id"!g[Resetscore] !yScore have succes reset")
          }
     }
 }
}    
stock saycolored(const id, const input[], any:...)     
{     
    new 
count 1players[32];     
    static 
msg[191];     
    
vformat(msg190input3);     
    
replace_all(msg190"!g""^x04"); 
    
replace_all(msg190"!y""^x01");
    
replace_all(msg190"!t""^x03");
    if (
idplayers[0] = id; else get_players(playerscount"ch");     
    {     
        for ( new 
0counti++ )     
        {     
            if ( 
is_user_connected(players[i]) )     
            {     
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText")  , _players[i]);     
                
write_byte(players[i]);     
                
write_string(msg);     
                
message_end();     
            }     
        }     
    }     

__________________

Last edited by bat; 02-06-2015 at 15:01.
bat is offline
Send a message via Skype™ to bat
Shockyboy
Senior Member
Join Date: Apr 2014
Location: Earth
Old 02-06-2015 , 07:41   Re: ResetScore
Reply With Quote #18

What O.o?
__________________


[ LEARNING SCRIPTING ]
[ ||||||||||||] [ 30% ]
Shockyboy is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 02-06-2015 , 07:58   Re: ResetScore
Reply With Quote #19

bat , are you sure that it will appear the old deaths & kills ?
Freezo Begin is offline
VarmaRitik
Senior Member
Join Date: Jul 2014
Location: India
Old 02-06-2015 , 08:43   Re: ResetScore
Reply With Quote #20

HamletEagle,
Don't even think that I just ignored u

And I already created a plugin with colorchat msg and Hud Msg..

Thank You.
VarmaRitik 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 12:18.


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