Raised This Month: $7 Target: $400
 1% 

REW


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ImXinR
Member
Join Date: Dec 2010
Old 01-26-2011 , 05:10   REW
Reply With Quote #1

Give certain Weapon when round end

Last edited by ImXinR; 02-08-2011 at 03:56.
ImXinR is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-26-2011 , 06:23   Re: Round End Weapon!
Reply With Quote #2

This will give it to all the players that are alive at round end.
If you want all the players to get it, you'll have to respawn them before you give it.

PHP Code:
#include <amxmodx>
#include <fun>
#include <cstrike>

public plugin_init()
    
register_logevent("LogEvent_RoundEnd"2"1=Round_End");
    
    
public 
LogEvent_RoundEnd()
{
    new 
players[32], pnumiPlayer;
    
get_players(playerspnum"a");
    
    for(new 
0pnumi++)
    {
        
iPlayer players[i];
        
        
give_item(iPlayer"weapon_deagle");
        
cs_set_user_bpammo(iPlayerCSW_DEAGLE35);
    }

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Nst.
Member
Join Date: Dec 2010
Old 01-26-2011 , 09:19   Re: Round End Weapon!
Reply With Quote #3

Code:
cs_set_user_bpammo(iPlayer, CSW_DEAGLE, 35);
This line is the ammo of the Deagle
you can change it to the ammo you want to be
Nst. is offline
ImXinR
Member
Join Date: Dec 2010
Old 01-27-2011 , 03:01   Re: Round End Weapon!
Reply With Quote #4

@ Drekes Thanks but the code , There's some problem which is , When the roundtime reaches 0.00 The round wouldn't end .

@Nst. I know the code for that.
ImXinR is offline
ImXinR
Member
Join Date: Dec 2010
Old 01-27-2011 , 04:20   Re: Round End Weapon!
Reply With Quote #5

@ Drekes Thanks but the code , There's some problem which is , When the roundtime reaches 0.00 The round wouldn't end .

@Nst. I know the code for that.
ImXinR is offline
Nst.
Member
Join Date: Dec 2010
Old 01-27-2011 , 07:31   Re: Round End Weapon!
Reply With Quote #6

that's of coz.
Doesn't make any sense if the round ends you received deagle?
Nst. is offline
ImXinR
Member
Join Date: Dec 2010
Old 01-27-2011 , 07:52   Re: Round End Weapon!
Reply With Quote #7

Please read the topic , I wanted Round End Weapon. Why not. I am using this plugin for Catching. So , round end they can kill each other. =.=.
ImXinR is offline
Nst.
Member
Join Date: Dec 2010
Old 01-27-2011 , 08:06   Re: Round End Weapon!
Reply With Quote #8

Ok lets start from the beginning.
You said that when the the time reaches 0.00, you received a deagle.
Then the round won't end right?

Problems:
1) Other plugins problem?
2) The plugin you copy and paste is not correctly.

Download mine below and see if the problems happen.
Cause my friend is using and no problem

Installation:
1) Download 'Round_End_Wp.sma'
2) Cut and Paste into your scripting folder
3) Compiled it
4) Put the compiled file into your plugins
and you know what to do.

Working: Yes
Attached Files
File Type: sma Get Plugin or Get Source (round_end_wp.sma - 402 views - 636 Bytes)
Nst. is offline
ImXinR
Member
Join Date: Dec 2010
Old 01-28-2011 , 01:07   Re: Round End Weapon!
Reply With Quote #9

Kay . Thanks !
__________________
Sometimes , Life Sucks .. Don't You Agree? But ,
Listening To Music Make Us Feel Better
ImXinR is offline
Reply


Thread Tools
Display Modes

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 06:28.


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