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

USP Reloaded v5.1 [Last Update: 31/10/09]


Post New Thread Reply   
 
Thread Tools Display Modes
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-28-2009 , 07:20   Re: USP Reloaded v5.0 [Last Update: 24/10/09]
Reply With Quote #21

Quote:
Originally Posted by xPaw View Post
You're wrong. Let the modules do the job.
Well, i have read ot's tut about the modules, and yes i have been wrong, but i prefer FM Thanks, for explanation.
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
yaotzin
Member
Join Date: Aug 2006
Old 10-30-2009 , 17:11   Re: USP Reloaded v5.0 [Last Update: 24/10/09]
Reply With Quote #22

COOL. - first time I see plugin what use buy CS system like this. Can you add more guns from weaponmod ?
yaotzin is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-30-2009 , 17:40   Re: USP Reloaded v5.0 [Last Update: 24/10/09]
Reply With Quote #23

Quote:
Originally Posted by AcidoX View Post
but i prefer FM
Why?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 10-30-2009 , 19:07   Re: USP Reloaded v5.0 [Last Update: 24/10/09]
Reply With Quote #24

Quote:
Originally Posted by yaotzin View Post
COOL. - first time I see plugin what use buy CS system like this. Can you add more guns from weaponmod ?
its "USP" reloaded, so is only "USP", but i can do other plugin like this with other weapons, but first i wont that the staff approve me this plugin @_@.
__________________

metallicawOw is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-31-2009 , 07:26   Re: USP Reloaded v5.0 [Last Update: 24/10/09]
Reply With Quote #25

You can register event like this
PHP Code:
register_event"CurWeapon""Event_CurWeapon""be""1=1""2=16" );
// 16 == CSW_USP 
And then in event you can remove weaponid checks

--
I Think resetting player's render on spawn and printing always message is bad, because other plugins can give player render.
__________________
xPaw is offline
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 10-31-2009 , 17:01   Re: USP Reloaded v5.0 [Last Update: 24/10/09]
Reply With Quote #26

Quote:
Originally Posted by xPaw View Post
You can register event like this
PHP Code:
register_event"CurWeapon""Event_CurWeapon""be""1=1""2=16" );
// 16 == CSW_USP 
And then in event you can remove weaponid checks

--
I Think resetting player's render on spawn and printing always message is bad, because other plugins can give player render.
Updated!
__________________

metallicawOw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-01-2009 , 05:54   Re: USP Reloaded v5.0 [Last Update: 24/10/09]
Reply With Quote #27

Quote:
Originally Posted by metallicawOw View Post
i can do other plugin like this with other weapons
No thanks.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 11-01-2009 , 20:12   Re: USP Reloaded v5.1 [Last Update: 31/10/09]
Reply With Quote #28

good plugin

I could be wrong, because i didnīt read the whole code, but:

PHP Code:
    if(Have_USPR[attacker])
    {
    if ((
cs_get_user_team(attacker) != cs_get_user_team(victim) && get_pcvar_num(Reloaded_USP_Effects)))
    {
        
message_begin(MSG_ONE_UNRELIABLEg_msgScreenFade_victim)
        
write_short((1<<12)*3)
        
write_short((1<<12)*3)
        
write_short(0x0000)
        
write_byte(255)
        
write_byte(255)
        
write_byte(255)
        
write_byte(200)
        
message_end()
        
        
USPReffects(victim)
            
        
set_task(3.0"ParticlesUSPR"victim)
        
        
SetHamParamFloat(4damage get_pcvar_float(Reloaded_USP_DMG))
        
        new 
vorigin[3],srco[3];
        
get_user_origin(victim,vorigin);
        
        
vorigin[2] -= 26
        srco
[0] = vorigin[0] + 150
        srco
[1] = vorigin[1] + 150
        srco
[2] = vorigin[2] + 800
        
        emit_sound
(victimCHAN_BODYDamageUSPR1.0ATTN_NORM0PITCH_HIGH);
        
USPReffects2(vorigin);
        }
    } 
i think it should be

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{        
    if(
Have_USPR[attacker] && get_user_weapon(id) == CSW_USP)
    {
        if ((
cs_get_user_team(attacker) != cs_get_user_team(victim) && get_pcvar_num(Reloaded_USP_Effects)))
        {
            
message_begin(MSG_ONE_UNRELIABLEg_msgScreenFade_victim)
            
write_short((1<<12)*3)
            
write_short((1<<12)*3)
            
write_short(0x0000)
            
write_byte(255)
            
write_byte(255)
            
write_byte(255)
            
write_byte(200)
            
message_end()
        
            
USPReffects(victim)
        
            
set_task(3.0"ParticlesUSPR"victim)
            
            new 
vorigin[3],srco[3];
            
get_user_origin(victim,vorigin);
        
            
vorigin[2] -= 26
            srco
[0] = vorigin[0] + 150
            srco
[1] = vorigin[1] + 150
            srco
[2] = vorigin[2] + 800
        
            emit_sound
(victimCHAN_BODYDamageUSPR1.0ATTN_NORM0PITCH_HIGH);
            
USPReffects2(vorigin);
        }
        
        
SetHamParamFloat(4damage get_pcvar_float(Reloaded_USP_DMG))
        
    } 
    return 
HAM_IGNORED;

also, but iīm not sure:

PHP Code:
public Event_CurWeapon(id
{
    if(!
is_user_alive(id)) 
        return;
    
    if(
Have_USPR[id])
    {
        
entity_set_string(idEV_SZ_viewmodelv_USPR_mdl)  
        
entity_set_string(idEV_SZ_weaponmodelp_USPR_mdl)    
    }



PHP Code:
public Event_CurWeapon(id
{
    if(!
is_user_alive(id)) 
        return;
    
    new 
weapon read_data(2)
    
    if(
Have_USPR[id] && weapon == CSW_USP)
    {
        
entity_set_string(idEV_SZ_viewmodelv_USPR_mdl)  
        
entity_set_string(idEV_SZ_weaponmodelp_USPR_mdl)    
    }

__________________
Why do they send babies to fight me? -Heavy

nicolazo103 is offline
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 11-01-2009 , 20:34   Re: USP Reloaded v5.1 [Last Update: 31/10/09]
Reply With Quote #29

Quote:
Originally Posted by nicolazo103 View Post
good plugin

I could be wrong, because i didnīt read the whole code, but:

PHP Code:
    if(Have_USPR[attacker])
    {
    if ((
cs_get_user_team(attacker) != cs_get_user_team(victim) && get_pcvar_num(Reloaded_USP_Effects)))
    {
        
message_begin(MSG_ONE_UNRELIABLEg_msgScreenFade_victim)
        
write_short((1<<12)*3)
        
write_short((1<<12)*3)
        
write_short(0x0000)
        
write_byte(255)
        
write_byte(255)
        
write_byte(255)
        
write_byte(200)
        
message_end()
        
        
USPReffects(victim)
            
        
set_task(3.0"ParticlesUSPR"victim)
        
        
SetHamParamFloat(4damage get_pcvar_float(Reloaded_USP_DMG))
        
        new 
vorigin[3],srco[3];
        
get_user_origin(victim,vorigin);
        
        
vorigin[2] -= 26
        srco
[0] = vorigin[0] + 150
        srco
[1] = vorigin[1] + 150
        srco
[2] = vorigin[2] + 800
        
        emit_sound
(victimCHAN_BODYDamageUSPR1.0ATTN_NORM0PITCH_HIGH);
        
USPReffects2(vorigin);
        }
    } 
i think it should be

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{        
    if(
Have_USPR[attacker] && get_user_weapon(id) == CSW_USP)
    {
        if ((
cs_get_user_team(attacker) != cs_get_user_team(victim) && get_pcvar_num(Reloaded_USP_Effects)))
        {
            
message_begin(MSG_ONE_UNRELIABLEg_msgScreenFade_victim)
            
write_short((1<<12)*3)
            
write_short((1<<12)*3)
            
write_short(0x0000)
            
write_byte(255)
            
write_byte(255)
            
write_byte(255)
            
write_byte(200)
            
message_end()
        
            
USPReffects(victim)
        
            
set_task(3.0"ParticlesUSPR"victim)
            
            new 
vorigin[3],srco[3];
            
get_user_origin(victim,vorigin);
        
            
vorigin[2] -= 26
            srco
[0] = vorigin[0] + 150
            srco
[1] = vorigin[1] + 150
            srco
[2] = vorigin[2] + 800
        
            emit_sound
(victimCHAN_BODYDamageUSPR1.0ATTN_NORM0PITCH_HIGH);
            
USPReffects2(vorigin);
        }
        
        
SetHamParamFloat(4damage get_pcvar_float(Reloaded_USP_DMG))
        
    } 
    return 
HAM_IGNORED;

also, but iīm not sure:

PHP Code:
public Event_CurWeapon(id
{
    if(!
is_user_alive(id)) 
        return;
    
    if(
Have_USPR[id])
    {
        
entity_set_string(idEV_SZ_viewmodelv_USPR_mdl)  
        
entity_set_string(idEV_SZ_weaponmodelp_USPR_mdl)    
    }



PHP Code:
public Event_CurWeapon(id
{
    if(!
is_user_alive(id)) 
        return;
    
    new 
weapon read_data(2)
    
    if(
Have_USPR[id] && weapon == CSW_USP)
    {
        
entity_set_string(idEV_SZ_viewmodelv_USPR_mdl)  
        
entity_set_string(idEV_SZ_weaponmodelp_USPR_mdl)    
    }

Quote:
Originally Posted by xPaw View Post
You can register event like this
PHP Code:
register_event"CurWeapon""Event_CurWeapon""be""1=1""2=16" );
// 16 == CSW_USP 
And then in event you can remove weaponid checks
__________________

metallicawOw is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-04-2009 , 17:02   Re: USP Reloaded v5.1 [Last Update: 31/10/09]
Reply With Quote #30

Code:
Host_Error: WriteDest_Parm: not a client
I get this error all the time with your plugin when i'm trying to Start my server.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
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 05:12.


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