Jump to content
Sign in to follow this  
NeSq1k

Cerere Plugin

Recommended Posts

Salut vreau un plugin beneficii vip pentru furien care sa contina 

Fondator Cu FTP 80 hp si 80 ap 8000$             "abcdefghijklmnopqrstux",
Fondator Fara FTP 70 hp si 70 ap 7000$           "abcdefghijklmnopqrstu",
Platinium Member 60 hp si 60 ap 6000$            "abcdefgijmnopqrsu"
Gold Member 50 hp si 50 ap 6000$                      "abcdefgijmopqrs",
Silver Member 40 hp si 40 ap 4000$                       "abcdefgijmop",
Bronze Member 30 hp si 30 ap 3000$                         "abcdefgijm 

              

 

Share this post


Link to post
Share on other sites

Din moment ce vad ca nimeni nu te baga in seama am sa-ti arat eu cum s-ar realiza plugin-ul cerut de tine

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

static const
    PLUGIN[] = "beneficii",
    VERSION[] = "1.0",
    AUTHOR[] = "rangfort";
    
public plugin_init(){
    register_plugin(PLUGIN,VERSION,AUTHOR);
    register_event("DeathMsg","ev_death_msg","a")
}
public ev_death_msg( ) {
    new id = read_data(1)
    new victim = read_data(2)

    if(!is_user_alive(id) || id == victim) return
    
    if(get_user_flags(id) & read_flags("abcdefghijklmnopqrstux")) {
        set_user_health(id,get_user_health(id) + 45)
        set_user_armor(id,get_user_armor(id) + 45)
        cs_set_user_money(id,cs_get_user_money(id) + 7000)
    }
    else if(get_user_flags(id) & read_flags("abcdefghijklmnopqrstu")) {
        set_user_health(id,get_user_health(id) + 35)
        set_user_armor(id,get_user_armor(id) + 35)
        cs_set_user_money(id,cs_get_user_money(id) + 5000)
    }
    else if(get_user_flags(id) & read_flags("abcdefgijmnopqrsu"")) {
        set_user_health(id,get_user_health(id) + 25)
        set_user_armor(id,get_user_armor(id) + 25)
        cs_set_user_money(id,cs_get_user_money(id) + 3000)
    }

tu mai departe copiezi coloanele de la } si decat schimbi flagul si ce vrei sa-ti ofere

complilezi si asta e`.succes.

daca vrei sa adaugi si ceva viteza ex :


set_user_maxspeed(id , 320); in fine cam asa tre sa arate in general ce-ai cerut

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×