Raised This Month: $51 Target: $400
 12% 

Subplugin Submission [T] List of Modified + Requested Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-04-2015 , 22:23   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #601

Then, just change below to "20":
PHP Code:
g_iLimit register_cvar("cs_camper_limit""11"// Time in seconds 

Last edited by zmd94; 01-04-2015 at 22:24.
zmd94 is offline
plazma
Senior Member
Join Date: Oct 2013
Old 01-04-2015 , 22:31   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #602

Quote:
Originally Posted by zmd94 View Post
Then, just change below to "20":
PHP Code:
g_iLimit register_cvar("cs_camper_limit""11"// Time in seconds 
For me not work!
__________________
Free Palestine ♥
plazma is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-04-2015 , 22:50   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #603

It is weird as it should work well.

Actually, what you want? You want when the sniper is camping more than 20s, it will die?
zmd94 is offline
plazma
Senior Member
Join Date: Oct 2013
Old 01-04-2015 , 22:52   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #604

Quote:
Originally Posted by zmd94 View Post
It is weird as it should work well.

Actually, what you want? You want when the sniper is camping more than 20s, it will die?
LOL no only for snipers will die but for all dies than 20s camp, but only for human not to dies.
__________________
Free Palestine ♥

Last edited by plazma; 01-04-2015 at 22:52.
plazma is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-04-2015 , 23:10   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #605

Alright, now I got it.

So, you want only Sniper, Assassin, Survior and Nemesis will die if they camp more than 20s. ;)

Last edited by zmd94; 01-04-2015 at 23:45.
zmd94 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-05-2015 , 00:18   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #606

Alright, just try below:
PHP Code:
#include <amxmodx>
#include <zombie_plague_advance>

#define TASK_CAMPER 1994

new g_iLimit
new g_iCount[33], g_PlayerPos[33][3]
new 
g_HudSync

public plugin_init()  

    
register_plugin("[ZPA] Camper Alert""1.0""zmd94")
    
    
g_iLimit register_cvar("cs_camper_limit""11")
    
    
g_HudSync CreateHudSyncObj()
}

public 
zp_user_infected_post(idinfectornemesis)
{    
    if(
zp_get_user_nemesis(id) || zp_get_user_assassin(id))
    {
        
get_user_origin(idg_PlayerPos[id])
        
set_task(1.0"iCamper"id+TASK_CAMPER__"b")
    }
    else
    {
        
remove_task(id+TASK_CAMPER)
        
g_iCount[id] = 0
    
}
}

public 
zp_user_humanized_post(idsniper)
{    
    if(
zp_get_user_sniper(id) || zp_get_user_survivor(id))
    {
        
get_user_origin(idg_PlayerPos[id])
        
set_task(1.0"iCamper"id+TASK_CAMPER__"b")
    }
    else
    {
        
remove_task(id+TASK_CAMPER)
        
g_iCount[id] = 0
    
}
}

public 
iCamper(id)
{
    
id -= TASK_CAMPER
    
    
if(!zp_get_user_sniper(id) || !zp_get_user_survivor(id) || !zp_get_user_nemesis(id) || !zp_get_user_assassin(id))
        return
    
    if(
is_user_alive(id))
    {
        new 
g_iOrigin[3]
        
get_user_origin(idg_iOrigin)
        
        new 
iPercent 100*g_iCount[id]/get_pcvar_num(g_iLimit)
        
        if (
g_iOrigin[0] == g_PlayerPos[id][0] && g_iOrigin[1] ==  g_PlayerPos[id][1] && g_iOrigin[2] == g_PlayerPos[id][2]) 
        {
            if(
g_iCount[id] >= get_pcvar_num(g_iLimit))
            {
                
set_hudmessage(random_num(10,255), random(256), random(256), -1.00.2010.13.00.050.05, -1)
                
show_hudmessage(0"Camper punishment: ^nAuto-died!")
                
                
user_kill(id)
                
                
g_iCount[id] = 0
            
}
            
            
g_iCount[id] ++
            
            
set_hudmessage(random_num(10,255), random(256), random(256), -1.00.1510.13.00.050.05, -1)
            
ShowSyncHudMsg(idg_HudSync"Camper alert: %d percents!"iPercent)
        }
        else
        {
            
g_iCount[id] = 0
            
            g_PlayerPos
[id][0] = g_iOrigin[0];
            
g_PlayerPos[id][1] = g_iOrigin[1];
            
g_PlayerPos[id][2] = g_iOrigin[2];
        }
    }


Last edited by zmd94; 01-05-2015 at 00:18.
zmd94 is offline
luciaus18
Senior Member
Join Date: Dec 2014
Old 01-05-2015 , 02:59   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #607

Sorry, what do you mean? Are you saying that you are being frozen by your own frost grenade?
Yes..
luciaus18 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-05-2015 , 04:42   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #608

Then, just try to change this:
Code:
// Frost Grenade Explosion
frost_explode(ent)
{
        // Get origin
        static Float:origin[3]
        pev(ent, pev_origin, origin)
       
        // Make the explosion
        create_blast3(origin)
       
        // Frost nade explode sound
        static sound[SOUND_MAX_LENGTH]
        ArrayGetString(g_sound_grenade_frost_explode, random_num(0, ArraySize(g_sound_grenade_frost_explode) - 1), sound, charsmax(sound))
        emit_sound(ent, CHAN_WEAPON, sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
       
        // Collisions
        new victim = -1
       
        while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, origin, NADE_EXPLOSION_RADIUS)) != 0)
        {
                // Only effect alive zombies
                if (!is_user_alive(victim))
                        continue;
               
                set_freeze(victim)
        }
       
        // Get rid of the grenade
        engfunc(EngFunc_RemoveEntity, ent)
}
-->
Code:
#include <zp50_core>

// Frost Grenade Explosion
frost_explode(ent)
{
        // Get origin
        static Float:origin[3]
        pev(ent, pev_origin, origin)
      
        // Make the explosion
        create_blast3(origin)
      
        // Frost nade explode sound
        static sound[SOUND_MAX_LENGTH]
        ArrayGetString(g_sound_grenade_frost_explode, random_num(0, ArraySize(g_sound_grenade_frost_explode) - 1), sound, charsmax(sound))
        emit_sound(ent, CHAN_WEAPON, sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
      
        // Collisions
        new victim = -1
      
        while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, origin, NADE_EXPLOSION_RADIUS)) != 0)
        {
                // Only effect alive zombies
                if (!is_user_alive(victim) || !zp_core_is_zombie(victim))
                        continue;
              
                set_freeze(victim)
        }
      
        // Get rid of the grenade
        engfunc(EngFunc_RemoveEntity, ent)
}

Last edited by zmd94; 01-05-2015 at 09:50.
zmd94 is offline
luciaus18
Senior Member
Join Date: Dec 2014
Old 01-05-2015 , 06:41   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #609

I get this when im trying to compile:

Code:
//// zp50_grenade_frost.sma
// E:\servere cs\HLDS\cstrike\addons\amxmodx\scripting\zp50_grenade_frost.sma(32
1) : error 017: undefined symbol "zp_get_user_zombie"
//
// 1 Error.
// Could not locate output file compiled\zp50_grenade_frost.amx (compile failed)
.
luciaus18 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 01-05-2015 , 08:39   Re: [ZP] List of Modified + Requested Plugin (3/1/2015)
Reply With Quote #610

PHP Code:
if (!is_user_alive(victim) || !zp_get_user_zombie(victim)) 

PHP Code:
if (!is_user_alive(victim) || !zp_core_is_zombie(victim)) 
so
PHP Code:
!zp_get_user_zombie(victim)) 

PHP Code:
!zp_core_is_zombie(victim)) 

Last edited by Krtola; 01-05-2015 at 08:39.
Krtola is offline
Send a message via Skype™ to Krtola
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 20:35.


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