Raised This Month: $ Target: $400
 0% 

What error ?


Post New Thread Reply   
 
Thread Tools Display Modes
_ABnormal
Junior Member
Join Date: Nov 2011
Old 11-04-2011 , 14:43   Re: What error ?
Reply With Quote #11

lol ... everyone will get for kill +10hp not only vip can you please make it ?
_ABnormal is offline
_ABnormal
Junior Member
Join Date: Nov 2011
Old 11-04-2011 , 14:45   Re: What error ?
Reply With Quote #12

and awp is allowed for everyone .. only vip can had weapon + awp next round .. its cool but i wanted that awp only for vip
_ABnormal is offline
KillLikoe
BANNED
Join Date: Nov 2010
Location: Paraguay
Old 11-04-2011 , 15:02   Re: What error ?
Reply With Quote #13

what you mean with vip, admin?
KillLikoe is offline
_ABnormal
Junior Member
Join Date: Nov 2011
Old 11-04-2011 , 15:04   Re: What error ?
Reply With Quote #14

vip is admin yep... but awp is for everybody but only vip will get it second round for free like a second weapon and +10hp is getting everyone not only vip
_ABnormal is offline
KillLikoe
BANNED
Join Date: Nov 2010
Location: Paraguay
Old 11-04-2011 , 15:15   Re: What error ?
Reply With Quote #15

PHP Code:
  if  (is_user_admin(id))
    {
        
fm_give_item(id"item_assaultsuit");
        
fm_give_item(id"weapon_flashbang");
        
fm_give_item(id"weapon_flashbang");
        
fm_give_item(id"weapon_hegrenade");
        
fm_give_item(id"weapon_smokegrenade");
        
cs_set_user_money(idcs_get_user_money(id) + 500); 
        
set_user_gravity (id0.70);
        
/*here*/fm_give_item(id"weapon_awp");
    }
    else
    {
        
fm_give_item(id"item_assaultsuit");
        
fm_give_item(id"weapon_flashbang");
        
fm_give_item(id"weapon_flashbang");
        
fm_give_item(id"weapon_hegrenade");
        
fm_give_item(id"weapon_smokegrenade");
        
cs_set_user_money(idcs_get_user_money(id) + 500); 
        
set_user_gravity (id0.70);
    } 
there is the code for only admins should get awp, and here is the other one
PHP Code:
 public Event_DeathMsg()
{
    new 
iKiller read_data(1)

    if(
is_user_alive(iKiller))
    {
        if(
is_user_admin(iKiller))
    {
        
set_user_health(iKillerget_user_health(iKiller) + 20)
    }
    else{
        
set_user_health(iKillerget_user_health(iKiller) + 10)
    }
    }

KillLikoe is offline
_ABnormal
Junior Member
Join Date: Nov 2011
Old 11-04-2011 , 15:20   Re: What error ?
Reply With Quote #16

ok can you put it into one code? pls because i dont know where to put it .. and if you can please do when someone will want awp it will write : AWP ONLY FOR VIP its for english and i want : AWP JE IBA PRE VIP !! this is my languge ... please do it thanks
_ABnormal is offline
KillLikoe
BANNED
Join Date: Nov 2010
Location: Paraguay
Old 11-04-2011 , 15:27   Re: What error ?
Reply With Quote #17

PHP Code:
 #include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <cstrike>
#include <amxmisc>
#include <fun>

#define PLUGIN_NAME "vipas"
#define PLUGIN_AUTHOR "Kukulis"
#define PLUGIN_VERSION "0.1"

static const COLOR[] = "^x04"
static const CONTACT[] = ""

new maxplayers
new gmsgSayText

public plugin_init()    
{
    
register_plugin(PLUGIN_NAMEPLUGIN_AUTHORPLUGIN_VERSION);
    
register_event("ResetHUD","event_reset_hud","be");
    
register_event("ResetHUD""resetModel""b")
    
register_clcmd("say /vip","admin_motd",0,"- Shows the MOTD.")
    
register_event("DeathMsg""Event_DeathMsg""a")
    
register_clcmd("say""handle_say")
    
register_cvar("amx_contactinfo"CONTACTFCVAR_SERVER)
    
gmsgSayText get_user_msgid("SayText")
    
maxplayers get_maxplayers()
}
public 
plugin_precache() 
{
    
precache_model("models/player/smith/smith.mdl")
    
precache_model("models/player/smith/smith.mdl")
    
    return 
PLUGIN_CONTINUE
}

public 
resetModel(idlevelcid
{
    
    if (
get_user_flags(id) & ADMIN_CVAR
    {
        new 
CsTeams:userTeam cs_get_user_team(id)
        
        if (
userTeam == CS_TEAM_T
        {    
            
cs_set_user_model(id"smith")        
        }
        else if(
userTeam == CS_TEAM_CT
        {        
            
cs_set_user_model(id"smith")        
        }    
        else 
        {        
            
cs_reset_user_model(id)        
        }    
    }
    return 
PLUGIN_CONTINUE
}
public 
event_reset_hud(id)
{
    if(!
is_user_connected(id))
        return 
PLUGIN_CONTINUE;    
    
    
client_print(idprint_chat"[VIP] Napis /vip a pozri sa,co vsetko zahrnaju VIP vyhody !!!")    
    if(!
access(id,ADMIN_CVAR))
        return 
PLUGIN_CONTINUE;
    
    
set_task(1.0,"give_stuff",id);    
    return 
PLUGIN_CONTINUE;
    
}

public 
admin_motd(id,level,cid)
{    
    if (!
cmd_access(id,level,cid,1))
        return 
PLUGIN_CONTINUE    
    
    show_motd
(id,"vip.txt","VIP by Kukulis")    
    
    return 
PLUGIN_CONTINUE   
    
}
public 
give_stuff(id)    
{
    if(!
is_user_connected(id))
        return;
    
    if  (
is_user_admin(id)) 
    { 
        
fm_give_item(id"item_assaultsuit"); 
        
fm_give_item(id"weapon_flashbang"); 
        
fm_give_item(id"weapon_flashbang"); 
        
fm_give_item(id"weapon_hegrenade"); 
        
fm_give_item(id"weapon_smokegrenade"); 
        
cs_set_user_money(idcs_get_user_money(id) + 500);  
        
set_user_gravity (id0.70); 
    
/*here*/fm_give_item(id"weapon_awp"); 
    } 
    else 
    { 
        
fm_give_item(id"item_assaultsuit"); 
        
fm_give_item(id"weapon_flashbang"); 
        
fm_give_item(id"weapon_flashbang"); 
        
fm_give_item(id"weapon_hegrenade"); 
        
fm_give_item(id"weapon_smokegrenade"); 
        
cs_set_user_money(idcs_get_user_money(id) + 500);  
        
set_user_gravity (id0.70); 
        
client_print(idprint_center"AWP JE IBA PRE VIP")
    }     
}

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

public 
print_viplist(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_CVAR)
            {        
                
get_user_name(idadminnames[count++], 31)
            }
        }
    }
    
    
len format(message255"%s Online VIP: ",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 online VIP.")
        
        
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()


public 
Event_DeathMsg() 

    new 
iKiller read_data(1

    if(
is_user_alive(iKiller)) 
    { 
        if(
is_user_admin(iKiller)) 
        { 
            
set_user_health(iKillerget_user_health(iKiller) + 20
        } 
        else{ 
            
set_user_health(iKillerget_user_health(iKiller) + 10
        } 
    } 

KillLikoe is offline
_ABnormal
Junior Member
Join Date: Nov 2011
Old 11-04-2011 , 15:36  
Reply With Quote #18

Thanks to all man !!

awp is still for everyone

and hp is getting to everyone not only vip so you dont changed anything

or listen.. if you can delete everythin what is with awp .. awp will be normal .. just +10hp per kill only for vip pls

Last edited by Emp`; 11-04-2011 at 17:02. Reason: edit button not used
_ABnormal is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-04-2011 , 17:01   Re: What error ?
Reply With Quote #19

_ABnormal, please use the edit button.

Also, if you are incapable of doing basic scripting, please post in Suggestions/Requests and not Scripting Help.

If KillLikoe is creating/modifying this plugin for you, please use PMs to talk to him about it.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 15:08.


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