Raised This Month: $ Target: $400
 0% 

[REQ] Level Up -> Change Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 06-22-2013 , 09:55   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #11

Quote:
Originally Posted by Kia View Post
It's like GunGame, download & install it and change the cvar gg_kills_per_lvl to 2.
yep, i know i have to change the cvar bla bla bla but, i want to this a script.

Quote:
Originally Posted by csaba1998 View Post
I'm creating a cso gun deathmatch, i am not upload aliiedmodders
why?

Last edited by Choose_Your_Destiny; 06-22-2013 at 09:56.
Choose_Your_Destiny is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-22-2013 , 10:07   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #12

Quote:
Originally Posted by Choose_Your_Destiny View Post
yep, i know i have to change the cvar bla bla bla but, i want to this a script.

I don't understand this.

why?
Quote:
Originally Posted by csaba1998 View Post
I'm creating a cso gun deathmatch, i am not upload aliiedmodders
Congratz.

// EDIT :

Played a map of Gun Deathmatch, it isn't exactly like GunGame, you need to make two kills within a given time period to level up.
__________________

Last edited by Kia; 06-22-2013 at 10:26.
Kia is offline
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 06-23-2013 , 04:51   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #13

can you make?
Choose_Your_Destiny is offline
Old 07-06-2013, 04:11
Choose_Your_Destiny
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 07-06-2013 , 07:38   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #14

Quote:
Originally Posted by Choose_Your_Destiny View Post
>>>>>>>>>>>>>>> up up up <<<<<<<<<<<<<<<<<
would you explain more ? I still don't get what is 'i have a dr sw'
Moody92 is offline
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 07-07-2013 , 03:14   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #15

I have a deathrun server.
Choose_Your_Destiny is offline
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 07-22-2013 , 12:14   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #16

up up up.
Choose_Your_Destiny is offline
Old 07-22-2013, 16:03
joshknifer
This message has been deleted by joshknifer. Reason: Still asleep from the red-eye flight...
Old 07-22-2013, 16:37
Choose_Your_Destiny
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Old 07-23-2013, 02:53
Kia
This message has been deleted by YamiKaitou. Reason: reply to deleted post
Old 07-23-2013, 04:45
Choose_Your_Destiny
This message has been deleted by YamiKaitou. Reason: reply to deleted post
Old 07-25-2013, 19:23
Choose_Your_Destiny
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 08-15-2013 , 04:49   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #17

Bump time
Choose_Your_Destiny is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 08-15-2013 , 05:04   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #18

well here,
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new CountKills[32]

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg","event_death","a")
    
    
register_logevent("RoundStart"2"1=Round_Start"
}

public 
RoundStart (iPlayer){
    
    if(
cs_get_user_team(iPlayer) & CS_TEAM_CT){
    if (
CountKills[iPlayer] >= 2){
        
strip_user_weapons(iPlayer);
        
give_item(iPlayer"weapon_knife");
        
give_item(iPlayer"weapon_deagle");
        
client_print(iPlayerprint_chat"[AMXX] You have been promoted to Deagle.")
    }
    
    else if (
CountKills[iPlayer] >= 4){
        
strip_user_weapons(iPlayer);
        
give_item(iPlayer"weapon_knife");
        
give_item(iPlayer"weapon_fiveseven");
        
client_print(iPlayerprint_chat"[AMXX] You have been promoted to FiveSeven.")
    }
    
    else if (
CountKills[iPlayer] >= 6){
        
strip_user_weapons(iPlayer);
        
give_item(iPlayer"weapon_knife");
        
give_item(iPlayer"weapon_elite")
        
client_print(iPlayerprint_chat"[AMXX] You have been promoted to Elite.")
    }
    
    else if (
CountKills[iPlayer] >= 8){
        
give_item(iPlayer"weapon_knife");
        
strip_user_weapons(iPlayer);
        
give_item(iPlayer"weapon_p228")
        
client_print(iPlayerprint_chat"[AMXX] You have been promoted to P228.")
    }
}
}

public 
DeathMsg (iKilleriVictim){
    
iKiller read_data(1)
    
iVictim read_data(2)
    
    if (
iKiller != iVictim){
        
CountKills[iKiller]++
    }
    
    if(
cs_get_user_team(iKiller) & CS_TEAM_CT){
    if (
CountKills[iKiller] >= 2){
        
strip_user_weapons(iKiller);
        
give_item(iKiller"weapon_knife");
        
give_item(iKiller"weapon_deagle");
        
client_print(iKillerprint_chat"[AMXX] You have been promoted to Deagle.")
    }
    
    else if (
CountKills[iKiller] >= 4){
        
strip_user_weapons(iKiller);
        
give_item(iKiller"weapon_knife");
        
give_item(iKiller"weapon_fiveseven");
        
client_print(iKillerprint_chat"[AMXX] You have been promoted to FiveSeven.")
    }
    
    else if (
CountKills[iKiller] >= 6){
        
strip_user_weapons(iKiller);
        
give_item(iKiller"weapon_knife");
        
give_item(iKiller"weapon_elite")
        
client_print(iKillerprint_chat"[AMXX] You have been promoted to Elite.")
    }
    
    else if (
CountKills[iKiller] >= 8){
        
give_item(iKiller"weapon_knife");
        
strip_user_weapons(iKiller);
        
give_item(iKiller"weapon_p228")
        
client_print(iKillerprint_chat"[AMXX] You have been promoted to P228.")
    }
}

EDIT: EDITED The code due to some bug....
EDIT2 : Only CT's will get the promotion now

Last edited by Moody92; 08-15-2013 at 05:18.
Moody92 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-15-2013 , 05:29   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #19

You should use a switch-case statement instead of so many "ifs"
__________________
Kia is offline
Choose_Your_Destiny
Senior Member
Join Date: May 2011
Old 08-15-2013 , 06:14   Re: [REQ] Level Up -> Change Weapon
Reply With Quote #20

Sorry, not work
Choose_Your_Destiny 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 12:48.


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