AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I Help with VIP PLUGIN PLEASE !!! (https://forums.alliedmods.net/showthread.php?t=171229)

_ABnormal 11-03-2011 14:35

I Help with VIP PLUGIN PLEASE !!!
 
1 Attachment(s)
Hi guys.
I have some vip plugin(upload it).
Its deathrun plugin but im using it for deatmatch and i need to put in it some new funcions.
1.If you get kill +10HP
2.If you get kill +20HP
3.Screen u was healed
4.AWP only for vip
5.Models,in this plugin is only one model for ct and t so i need to put som new model for t

Thanks to all who will be able to help me
Contact:skype:AdamDupkanic

KillLikoe 11-03-2011 14:43

Re: I Help with VIP PLUGIN PLEASE !!!
 
for what do you want 10 hp or 20 hp if you are dead?

_ABnormal 11-03-2011 15:01

Re: I Help with VIP PLUGIN PLEASE !!!
 
If you get kill .. when i kill you i will get 10hp

KillLikoe 11-03-2011 15:20

Re: I Help with VIP PLUGIN PLEASE !!!
 
1 - 2
PHP Code:

 register_event("DeathMsg""Event_DeathMsg""a")
}

public 
Event_DeathMsg()
{
    new 
iKiller read_data(1)
    
    if(
is_user_alive(iKiller))
    {
            
set_user_health(iKillerget_user_health(iKiller) + 10)
    }



_ABnormal 11-03-2011 15:35

Re: I Help with VIP PLUGIN PLEASE !!!
 
can you do it to this plu ive uploaded ? pls then send me it pls

KillLikoe 11-03-2011 15:37

Re: I Help with VIP PLUGIN PLEASE !!!
 
but the plugin you upload is a mess, the code is all together, order the plugin and send me by pm and i will fix it

_ABnormal 11-03-2011 15:37

Re: I Help with VIP PLUGIN PLEASE !!!
 
or just add this to sma ?

KillLikoe 11-03-2011 15:39

Re: I Help with VIP PLUGIN PLEASE !!!
 
PHP Code:

#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()



return 
PLUGIN_CONTINUE



}



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;



   
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);

}



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))
    {
            
set_user_health(iKillerget_user_health(iKiller) + 10)
    }



_ABnormal 11-03-2011 15:49

Re: I Help with VIP PLUGIN PLEASE !!!
 
thanks and do you do that awp only for vip ??

KillLikoe 11-03-2011 15:59

Re: I Help with VIP PLUGIN PLEASE !!!
 
vip is admin right?


All times are GMT -4. The time now is 14:24.

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