AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Skin for CT VIPs plugin (https://forums.alliedmods.net/showthread.php?t=255603)

Adomaz1 01-17-2015 09:01

[REQ] Skin for CT VIPs plugin
 
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..

choloo 01-17-2015 09:09

Re: [REQ] reset score with colors?
 
1 Attachment(s)
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



bat 01-17-2015 10:26

Re: [REQ] reset score with colors?
 
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();     
            }     
        }     
    }     



Adomaz1 01-17-2015 11:56

Re: [REQ] reset score with colors?
 
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..

wickedd 01-17-2015 12:39

Re: [REQ] Skin for CT VIPs plugin
 
@Adomaz1 You really fucked up this thread.
Why did you edit the title and your original post after your request was fulfilled?


All times are GMT -4. The time now is 17:35.

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