It is currently 18 Jan 2019 05:53



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 7 posts ] 
 Plugin cumpara antiflash. 
Author Message
Membru, skill +1
Membru, skill +1

Joined: 04 Apr 2017 23:42
Posts: 147
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIE.ROYAL-GAMES.RO
Fond eXtream: 0
Plugin Cerut: Cumparare antiflash
Descriere (adica ce face el mai exact): As vrea cand playeruls crie "/af" "/antiflash" sa cumpere anti flash care sa fie activ pana cand playerul maore! , si pluginul sa aibe niste mesaje in chat care le las mai jos !
1 - "Ai prea putini bani pentru a cumpara ANTI-FLASH , iti trebuie 6000$"
2 - "Ai cumparat ANTI-FLASH, vei fi protejat de anti flash pana ce vei murii."
Serverul ruleaza (HLDS/ReHLDS): ReHLDS
Versiune AMX Mod X: nu stiu , daca imi spuneti cum sa aflu , va spun
Modul Serverului: Furien!

_________________
DETINATOR :FURIEN.ROYAL-GAMES.RO


10 Jan 2019 19:51
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1685
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
| Afiseaza codul
Code:
#include <amxmodx>
#include <fakemeta> 
#include <hamsandwich>
#include <cstrike>

#pragma tabsize 0

const PEV_NADE_TYPE = pev_flTimeStepSound
const NADE_TYPE_FLASH = 3333

new g_msgid_ScreenFade
new g_PlayerFlasher

new bool:af[33]

public plugin_init()
{
    register_plugin("AntiFlash FINAL VIP", "5.0", "Leo_[BH]")
     
    g_msgid_ScreenFade = get_user_msgid("ScreenFade")

    register_message(g_msgid_ScreenFade, "message_screenfade");

    register_forward(FM_SetModel, "fw_SetModel")
    RegisterHam(Ham_Think, "grenade", "fw_ThinkGrenade")


register_clcmd("say /af","BuyAF")
register_clcmd("say /antiflash","BuyAF")
register_clcmd("say_team /af","BuyAF")
register_clcmd("say_team /antiflash","BuyAF")

RegisterHam(Ham_Killed, "player", "fwd_Ham_Killed_post", 1)
}

public fwd_Ham_Killed_post(victim,attacker)   if(af[victim])   af[victim]=false

public BuyAF(id)
{
   if(!is_user_alive(id)||af[id])   return PLUGIN_HANDLED

   if(cs_get_user_money(id)<6000)
   {
      client_print(id,print_chat,"Ai prea putini bani pentru a cumpara ANTI-FLASH , iti trebuie 6000$")
      return PLUGIN_HANDLED
   }

   client_print(id,print_chat,"Ai cumparat ANTI-FLASH, vei fi protejat de anti flash pana ce vei murii.")

   cs_set_user_money(id,cs_get_user_money(id)-6000,1)

   af[id]=true

   return PLUGIN_CONTINUE
}

public message_screenfade(msg_id, msg_dest, id)
{
     
    if (id != g_PlayerFlasher && get_user_team(id) == get_user_team(g_PlayerFlasher) || af[id]) {
            return PLUGIN_HANDLED;
    }

    new iRed,iGreen,iBlue
    switch(get_cvar_num("amx_fb_mode"))    {
        case 1: {
            iRed =   get_cvar_num("amx_fb_r")
            iGreen = get_cvar_num("amx_fb_g")
            iBlue =  get_cvar_num("amx_fb_b")
        }
        case 2:    {
            iRed =   random_num(0,255)
            iGreen = random_num(0,255)
            iBlue =  random_num(0,255)
        }
    }
    if ( !( iRed ) || !( iGreen) || !( iBlue ) ) {
        iRed =   100
        iGreen = 100
        iBlue =  100
    }

    set_msg_arg_int(4, get_msg_argtype(4), iRed)
    set_msg_arg_int(5, get_msg_argtype(5), iGreen)
    set_msg_arg_int(6, get_msg_argtype(6), iBlue)

    return PLUGIN_CONTINUE
}

public fw_SetModel(entity, szModel[]) 
{
    if(!equal(szModel, "models/w_flashbang.mdl")) 
        return FMRES_IGNORED;
     
    set_pev(entity, PEV_NADE_TYPE, NADE_TYPE_FLASH)

    return FMRES_IGNORED;


public fw_ThinkGrenade(entity)
{
    if (!pev_valid(entity)) return HAM_IGNORED;
     
    static Float:dmgtime
    pev(entity, pev_dmgtime, dmgtime)
     
    if (dmgtime > get_gametime())
        return HAM_IGNORED;
     
    switch (pev(entity, PEV_NADE_TYPE))
    {
        case NADE_TYPE_FLASH: // Flash Grenade
        {
            g_PlayerFlasher = pev(entity, pev_owner)
            return HAM_IGNORED;
        }
    }
     
    return HAM_IGNORED;


_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


10 Jan 2019 20:12
Profile multumesc ICQ YIM
Membru, skill +1
Membru, skill +1

Joined: 04 Apr 2017 23:42
Posts: 147
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIE.ROYAL-GAMES.RO
Fond eXtream: 0
Nu functioneaza! doar schimba culoarea la flash ... in una gri , nici mesajele chat !

_________________
DETINATOR :FURIEN.ROYAL-GAMES.RO


10 Jan 2019 21:05
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1685
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
ciudat
vezi ăsta
| Afiseaza codul
Code:
#include < amxmodx >
#include <cstrike>
#include < hamsandwich >

#pragma tabsize 0

new const
PLUGIN_VERSION[ ] = "1.4",
PLUGIN_AUTHOR[ ] = "YONTU",
PLUGIN_NAME[ ] = "[Bio] Addon: VIP System";

new bool:af[33]

public plugin_init( ) {
   
   register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
   
   register_message( get_user_msgid( "ScreenFade" ), "MessageScreenFade" );


register_clcmd("say /af","BuyAF")
register_clcmd("say /antiflash","BuyAF")
register_clcmd("say_team /af","BuyAF")
register_clcmd("say_team /antiflash","BuyAF")

RegisterHam(Ham_Killed, "player", "fwd_Ham_Killed_post", 1)
}

public fwd_Ham_Killed_post(victim,attacker)   if(af[victim])   af[victim]=false

public BuyAF(id)
{
   if(!is_user_alive(id)||af[id])   return PLUGIN_HANDLED

   if(cs_get_user_money(id)<6000)
   {
      client_print(id,print_chat,"Ai prea putini bani pentru a cumpara ANTI-FLASH , iti trebuie 6000$")
      return PLUGIN_HANDLED
   }

   client_print(id,print_chat,"Ai cumparat ANTI-FLASH, vei fi protejat de anti flash pana ce vei murii.")

   cs_set_user_money(id,cs_get_user_money(id)-6000,1)

   af[id]=true

   return PLUGIN_CONTINUE
}

public MessageScreenFade( iMsgId, iMsgDest, id ) {
   if( af[id] ) {
      if( is_user_alive( id ) )
         return 1;
         
         static szData[ 4 ];
         
         szData[ 0 ] = get_msg_arg_int( 4 );
         szData[ 1 ] = get_msg_arg_int( 5 );
         szData[ 2 ] = get_msg_arg_int( 6 );
         szData[ 3 ] = get_msg_arg_int( 7 );
         
         if( szData[ 0 ] == 255 && szData[ 1 ] == 255 && szData[ 2 ] == 255 && szData[ 3] > 199 )
            return 1;
   }
      return 0;
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


10 Jan 2019 21:23
Profile multumesc ICQ YIM
Membru, skill +1
Membru, skill +1

Joined: 04 Apr 2017 23:42
Posts: 147
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIE.ROYAL-GAMES.RO
Fond eXtream: 0
Adryyy wrote:
ciudat
vezi ăsta
| Afiseaza codul
Code:
#include < amxmodx >
#include <cstrike>
#include < hamsandwich >

#pragma tabsize 0

new const
PLUGIN_VERSION[ ] = "1.4",
PLUGIN_AUTHOR[ ] = "YONTU",
PLUGIN_NAME[ ] = "[Bio] Addon: VIP System";

new bool:af[33]

public plugin_init( ) {
   
   register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
   
   register_message( get_user_msgid( "ScreenFade" ), "MessageScreenFade" );


register_clcmd("say /af","BuyAF")
register_clcmd("say /antiflash","BuyAF")
register_clcmd("say_team /af","BuyAF")
register_clcmd("say_team /antiflash","BuyAF")

RegisterHam(Ham_Killed, "player", "fwd_Ham_Killed_post", 1)
}

public fwd_Ham_Killed_post(victim,attacker)   if(af[victim])   af[victim]=false

public BuyAF(id)
{
   if(!is_user_alive(id)||af[id])   return PLUGIN_HANDLED

   if(cs_get_user_money(id)<6000)
   {
      client_print(id,print_chat,"Ai prea putini bani pentru a cumpara ANTI-FLASH , iti trebuie 6000$")
      return PLUGIN_HANDLED
   }

   client_print(id,print_chat,"Ai cumparat ANTI-FLASH, vei fi protejat de anti flash pana ce vei murii.")

   cs_set_user_money(id,cs_get_user_money(id)-6000,1)

   af[id]=true

   return PLUGIN_CONTINUE
}

public MessageScreenFade( iMsgId, iMsgDest, id ) {
   if( af[id] ) {
      if( is_user_alive( id ) )
         return 1;
         
         static szData[ 4 ];
         
         szData[ 0 ] = get_msg_arg_int( 4 );
         szData[ 1 ] = get_msg_arg_int( 5 );
         szData[ 2 ] = get_msg_arg_int( 6 );
         szData[ 3 ] = get_msg_arg_int( 7 );
         
         if( szData[ 0 ] == 255 && szData[ 1 ] == 255 && szData[ 2 ] == 255 && szData[ 3] > 199 )
            return 1;
   }
      return 0;
}


, nu nici asta !

_________________
DETINATOR :FURIEN.ROYAL-GAMES.RO


11 Jan 2019 21:37
Profile multumesc WWW
Moderator
Moderator
User avatar

Joined: 17 Dec 2013 19:51
Posts: 588
Location: Mystic Falls, Virginia
Detinator Steam: Da
SteamID: /id/csall
Reputatie: Moderator
Fost Membru Club eXtreamCS (o luna)
Fond eXtream: 0
NemeSyS17 wrote:
Adryyy wrote:
ciudat
vezi ăsta
| Afiseaza codul
Code:
#include < amxmodx >
#include <cstrike>
#include < hamsandwich >

#pragma tabsize 0

new const
PLUGIN_VERSION[ ] = "1.4",
PLUGIN_AUTHOR[ ] = "YONTU",
PLUGIN_NAME[ ] = "[Bio] Addon: VIP System";

new bool:af[33]

public plugin_init( ) {
   
   register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
   
   register_message( get_user_msgid( "ScreenFade" ), "MessageScreenFade" );


register_clcmd("say /af","BuyAF")
register_clcmd("say /antiflash","BuyAF")
register_clcmd("say_team /af","BuyAF")
register_clcmd("say_team /antiflash","BuyAF")

RegisterHam(Ham_Killed, "player", "fwd_Ham_Killed_post", 1)
}

public fwd_Ham_Killed_post(victim,attacker)   if(af[victim])   af[victim]=false

public BuyAF(id)
{
   if(!is_user_alive(id)||af[id])   return PLUGIN_HANDLED

   if(cs_get_user_money(id)<6000)
   {
      client_print(id,print_chat,"Ai prea putini bani pentru a cumpara ANTI-FLASH , iti trebuie 6000$")
      return PLUGIN_HANDLED
   }

   client_print(id,print_chat,"Ai cumparat ANTI-FLASH, vei fi protejat de anti flash pana ce vei murii.")

   cs_set_user_money(id,cs_get_user_money(id)-6000,1)

   af[id]=true

   return PLUGIN_CONTINUE
}

public MessageScreenFade( iMsgId, iMsgDest, id ) {
   if( af[id] ) {
      if( is_user_alive( id ) )
         return 1;
         
         static szData[ 4 ];
         
         szData[ 0 ] = get_msg_arg_int( 4 );
         szData[ 1 ] = get_msg_arg_int( 5 );
         szData[ 2 ] = get_msg_arg_int( 6 );
         szData[ 3 ] = get_msg_arg_int( 7 );
         
         if( szData[ 0 ] == 255 && szData[ 1 ] == 255 && szData[ 2 ] == 255 && szData[ 3] > 199 )
            return 1;
   }
      return 0;
}


, nu nici asta !


amx_plugins in consola si vezi daca pluginul ruleaza , explica mai exact ce nu merge.

_________________
CUMPAR SMS / EXCHANGE PaySafeCard-PayPal


11 Jan 2019 21:53
Profile multumesc
Membru, skill +1
Membru, skill +1

Joined: 04 Apr 2017 23:42
Posts: 147
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIE.ROYAL-GAMES.RO
Fond eXtream: 0
cs_all wrote:
NemeSyS17 wrote:
Adryyy wrote:
ciudat
vezi ăsta
| Afiseaza codul
Code:
#include < amxmodx >
#include <cstrike>
#include < hamsandwich >

#pragma tabsize 0

new const
PLUGIN_VERSION[ ] = "1.4",
PLUGIN_AUTHOR[ ] = "YONTU",
PLUGIN_NAME[ ] = "[Bio] Addon: VIP System";

new bool:af[33]

public plugin_init( ) {
   
   register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
   
   register_message( get_user_msgid( "ScreenFade" ), "MessageScreenFade" );


register_clcmd("say /af","BuyAF")
register_clcmd("say /antiflash","BuyAF")
register_clcmd("say_team /af","BuyAF")
register_clcmd("say_team /antiflash","BuyAF")

RegisterHam(Ham_Killed, "player", "fwd_Ham_Killed_post", 1)
}

public fwd_Ham_Killed_post(victim,attacker)   if(af[victim])   af[victim]=false

public BuyAF(id)
{
   if(!is_user_alive(id)||af[id])   return PLUGIN_HANDLED

   if(cs_get_user_money(id)<6000)
   {
      client_print(id,print_chat,"Ai prea putini bani pentru a cumpara ANTI-FLASH , iti trebuie 6000$")
      return PLUGIN_HANDLED
   }

   client_print(id,print_chat,"Ai cumparat ANTI-FLASH, vei fi protejat de anti flash pana ce vei murii.")

   cs_set_user_money(id,cs_get_user_money(id)-6000,1)

   af[id]=true

   return PLUGIN_CONTINUE
}

public MessageScreenFade( iMsgId, iMsgDest, id ) {
   if( af[id] ) {
      if( is_user_alive( id ) )
         return 1;
         
         static szData[ 4 ];
         
         szData[ 0 ] = get_msg_arg_int( 4 );
         szData[ 1 ] = get_msg_arg_int( 5 );
         szData[ 2 ] = get_msg_arg_int( 6 );
         szData[ 3 ] = get_msg_arg_int( 7 );
         
         if( szData[ 0 ] == 255 && szData[ 1 ] == 255 && szData[ 2 ] == 255 && szData[ 3] > 199 )
            return 1;
   }
      return 0;
}


, nu nici asta !


amx_plugins in consola si vezi daca pluginul ruleaza , explica mai exact ce nu merge.

da , nu ruleaza , arata unknow

_________________
DETINATOR :FURIEN.ROYAL-GAMES.RO


12 Jan 2019 17:18
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: Baidu [Spider] and 59 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group