Raised This Month: $51 Target: $400
 12% 

[REQ] Skin for CT VIPs plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Adomaz1
Senior Member
Join Date: Feb 2014
Old 01-17-2015 , 09:01   [REQ] Skin for CT VIPs plugin
Reply With Quote #1

hello, I need a plugin that would change skin for a player who has N or diffrent flag.. I found a plugin, but it add special functions, that when a VIP player joins a hud message apears and other stuff..

Last edited by Adomaz1; 01-17-2015 at 11:58.
Adomaz1 is offline
choloo
Senior Member
Join Date: Nov 2014
Location: Groznyj, Chechnya
Old 01-17-2015 , 09:09   Re: [REQ] reset score with colors?
Reply With Quote #2

PHP Code:
/*
    ResetScore v.0.0.2 Simple & Optimized
        (c)2012 by CryWolf
        www.eXtreamCS.com
*/

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

public plugin_init(){
    
register_plugin("Reset Score""0.0.2""wolfy")
    
    
register_clcmd("say /resetscore""score_reset")
    
register_clcmd("say /rs""score_reset");
    
    
register_clcmd("say_team /resetscore""score_reset")
    
register_clcmd("say_team /rs""score_reset")
}

public 
score_reset(id)
{
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
    
client_print_color(idDontChange"^1[^4RS^1] ^4 Reseted ^3 Score^1.")
    
    return 
PLUGIN_HANDLED

And here is the same version but will appear in chat: Player x,y reseted the score! (Compile locally)
PHP Code:
/*
    ResetScore v.0.0.2 Simple & Optimized
        (c)2012 by CryWolf
        www.eXtreamCS.com
*/

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

public plugin_init(){
    
register_plugin("Reset Score""0.0.2""wolfy")
    
    
register_clcmd("say /resetscore""score_reset")
    
register_clcmd("say /rs""score_reset");
    
    
register_clcmd("say_team /resetscore""score_reset")
    
register_clcmd("say_team /rs""score_reset")
}

public 
score_reset(id)
{
    new 
user[32]
    
get_user_name(iduser31)
    
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
    
client_print_color(idDontChange"^1[^4RS^1] ^4 Your score was ^3 reseted^1.")
    
client_print_color(0DontChange"^1[^3%s^1] ^4 reseted ^3his ^4score^1.",user)
    
    return 
PLUGIN_HANDLED

Attached Files
File Type: inc colorchat.inc (5.9 KB, 80 views)

Last edited by choloo; 01-17-2015 at 09:13.
choloo is offline
bat
Veteran Member
Join Date: Jul 2012
Old 01-17-2015 , 10:26   Re: [REQ] reset score with colors?
Reply With Quote #3

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 only to used client; 1 - Will be show to all with name used client

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:
         {
               
saycolored(id"!g[Resetscore] !yYou have just resetscore!")
         }
         case 
1
         {
               
saycolored(0"!g[Resetscore] !t%s !yhave just resetscore!"name)
         }
     }
 }
}    
stock saycolored(const id, const input[], any:...)     
{     
    new 
count 1players[32];     
    static 
msg[191];     
    
vformat(msg190input3);     
    
replace_all(msg190"!g""^x04"); // Green color
    
replace_all(msg190"!y""^x01"); // Yellow (chat) color
    
replace_all(msg190"!t""^x03"); // Team (ct - blue, terror - red) color
    
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; 01-17-2015 at 10:28. Reason: just explication color
bat is offline
Send a message via Skype™ to bat
Adomaz1
Senior Member
Join Date: Feb 2014
Old 01-17-2015 , 11:56   Re: [REQ] reset score with colors?
Reply With Quote #4

thanks. But now I need a plugin that would change skin for a player who has N or diffrent flag.. I found a plugin, but it add special functions, that when a VIP player joins a hud message apears and other stuff..
Adomaz1 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-17-2015 , 12:39   Re: [REQ] Skin for CT VIPs plugin
Reply With Quote #5

@Adomaz1 You really fucked up this thread.
Why did you edit the title and your original post after your request was fulfilled?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 19:09.


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