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

[req] Can make plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-11-2021 , 17:40   [req] Can make plugin
Reply With Quote #1

Простая випка для паблика. Ничего особенного , в начале каждого раунда VIP игрокам выдается , набор гранат , Deagle + Full AP. Так же на AWP картах плагин отключается.

В начале раунда игрок получает:
- Набор гранат (HE, 2FB, SG)
- Бронежилет + шлем (100% AP)
- Desert Eagle (встроен дроп оружия)

Команда /vip открывает мотд окно с информацией (создать файл vipifon.txt в папке /addons/)
Команда /vips показывает в чат кто из вип игроков онлайн

Флаг по умолчанию: ADMIN_LEVEL_H (t)


english

A simple vipka for the audience. Nothing special, at the beginning of each round, VIP players are awarded a grenade set Deagle + Full AP. The plug-in is also disabled on AWP cards.

At the beginning of the turn, the player receives:
- grenade set (HE, 2FB, SG)
- body armor + helmet (100% AP)
- Desert Eagle (built-in weapon drop)

The / vip command opens a motd window with information (create a file vipifon.txt in the / addons / folder)
The team / vips in the chat shows which of the VIP players is online

Default flag: ADMIN_LEVEL_H (t)
__________________
homepage:steam.lv
topsites:top.steam.lv

Last edited by FLOY; 02-12-2021 at 03:20.
FLOY is offline
Send a message via Skype™ to FLOY
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 02-11-2021 , 19:27   Re: [req] Can make plugin
Reply With Quote #2

This forum is English only.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-12-2021 , 03:01   Re: [req] Can make plugin
Reply With Quote #3

Edit
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
Theodore Bagwell
Member
Join Date: Jan 2021
Location: USA
Old 02-13-2021 , 02:36   Re: [req] Can make plugin
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

static const COLOR[] = "^x04" //green
new maxplayers
new gmsgSayText
new g_awp_active
new CurrentRound

public plugin_init()
{
    
register_plugin("VIP Eng Version""3.0""Dunno")
    
g_awp_active register_cvar("awp_active""1")
    
register_clcmd("awp","HandleCmd")
        
register_clcmd("sg550","HandleCmd")
        
register_clcmd("g3sg1","HandleCmd")
    
register_clcmd("say /vip","ShowMotd")
    
maxplayers get_maxplayers()
    
gmsgSayText get_user_msgid("SayText")
    
register_clcmd("say""handle_say")
    
register_logevent("LogEvent_RoundStart"2"1=Round_Start" );
    
register_event("TextMsg","Event_RoundRestart","a","2&#Game_w")
    
register_event("TextMsg","Event_RoundRestart","a","2&#Game_C");
}


public 
LogEvent_RoundStart()
{
    
CurrentRound++;
    new 
players[32], playerpnum;
    
get_players(playerspnum"a");
    for(new 
0pnumi++)
    {
        
player players[i];
        if(
is_user_alive(player) && get_user_flags(player) & ADMIN_LEVEL_H)
        {
            
give_item(player"weapon_hegrenade")
            
give_item(player"weapon_flashbang")
            
give_item(player"weapon_flashbang")
            
give_item(player"weapon_smokegrenade")
            
give_item(player"item_assaultsuit")
            
cs_set_user_armor(player100CS_ARMOR_VESTHELM);
            
give_item(player"item_thighpack")
            
give_item(player"weapon_deagle")
            
cs_set_user_bpammo(playerCSW_DEAGLE35);
        }
    }
    return 
PLUGIN_HANDLED
}

public 
Event_RoundRestart()
{
    
CurrentRound=0;
}

public 
HandleCmd(id){
    if (!
get_pcvar_num(g_awp_active))
      return 
PLUGIN_CONTINUE
    
if(get_user_flags(id) & ADMIN_LEVEL_H
        return 
PLUGIN_CONTINUE
    client_print
(idprint_center"Sniper's Only For VIP's")
    return 
PLUGIN_HANDLED
}

public 
ShowMotd(id)
{
 
show_motd(id"vipifon.txt")
}
public 
client_authorized(id)
{
 
set_task(30.0"PrintText" ,id)
}
public 
PrintText(id)
{
 
client_print(idprint_chat"[VIP] write /vip and u will see how get VIP and VIP privilegies.")
}

public 
handle_say(id) {
    new 
said[192]
    
read_args(said,192)
    if( ( 
containi(said"who") != -&& containi(said"admin") != -) || contain(said"/vips") != -)
        
set_task(0.1,"print_adminlist",id)
    return 
PLUGIN_CONTINUE
}

public 
print_adminlist(user
{
    new 
adminnames[33][32]
    new 
message[256]
    new 
contactinfo[256], contact[112]
    new 
idcountxlen
    
    
for(id id <= maxplayers id++)
        if(
is_user_connected(id))
            if(
get_user_flags(id) & ADMIN_LEVEL_H)
                
get_user_name(idadminnames[count++], 31)

    
len format(message255"%s VIP ONLINE: ",COLOR)
    if(
count 0) {
        for(
count x++) {
            
len += format(message[len], 255-len"%s%s "adminnames[x], < (count-1) ? ", ":"")
            if(
len 96 ) {
                
print_message(usermessage)
                
len format(message255"%s ",COLOR)
            }
        }
        
print_message(usermessage)
    }
    else {
        
len += format(message[len], 255-len"No VIP online.")
        
print_message(usermessage)
    }
    
    
get_cvar_string("amx_contactinfo"contact63)
    if(
contact[0])  {
        
format(contactinfo111"%s Contact Server Admin -- %s"COLORcontact)
        
print_message(usercontactinfo)
    }
}

print_message(idmsg[]) {
    
message_begin(MSG_ONEgmsgSayText, {0,0,0}, id)
    
write_byte(id)
    
write_string(msg)
    
message_end()

Main plugin : https://forums.alliedmods.net/showpo...00&postcount=1
AUTHOR: Dunno

Last edited by Theodore Bagwell; 02-13-2021 at 05:09.
Theodore Bagwell is offline
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-13-2021 , 16:07   Re: [req] Can make plugin
Reply With Quote #5

Tnx bro if hi work i say tnx you
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-13-2021 , 16:11   Re: [req] Can make plugin
Reply With Quote #6

Can you add color chat + and meybi vip tag ?
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-13-2021 , 16:20   Re: [req] Can make plugin
Reply With Quote #7

Litle bug hi give degle but hi giv to difrend weapon if i go ct hi giv degle and usp and teror to degle and glock
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
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 21:59.


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