This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

MODIFICATION Handicap Mod 1.12


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Agent_GOD
BANNED
Join Date: Jan 2007
Location: Starachowice , Poland
Old 01-25-2007 , 06:29   MODIFICATION Handicap Mod 1.12
Reply With Quote #1

MODIFICATION Handicap Mod
version 1.12

This is the MODIFICATION Handicap Mod


Orginal made by Rolnaaba and it is here:
http://forums.alliedmods.net/showthr...t=handicap+mod





The number of kills in a row you have that you have less hp:

On 1,2 kills in a row you have - 4hp = 96 hp
On 3,4 kills in a row you have - 8hp = 92 hp
.....
On 49,50 kills in a row you have -99hp = 1 hp
If you have 51 or more you have 100 hp


Version:

1.0 ---- The 22th Styczeń 2007 - Final released
1.1 ---- The 24th Styczeń 2007 -This release fixes a few minor bugs
1.12----The 25th Styczeń 2007 - Fixed errors , etc.
Attached Files
File Type: sma Get Plugin or Get Source (Modifidet Handicap Mod 1.1..sma - 235 views - 10.8 KB)

Last edited by Agent_GOD; 01-25-2007 at 14:44.
Agent_GOD is offline
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 07:23   Re: MODIFICATION Handicap Mod 1.1
Reply With Quote #2

Hey man, first of all did you get persmission?

Second, this is his code your part of the code is sloppy. Come on...
__________________

Dutchie is offline
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 07:24   Re: MODIFICATION Handicap Mod 1.1
Reply With Quote #3

When I download your plugin I get this:

Quote:
Plugin failed to compile! Please try contacting the author. Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(36) : error 037: invalid string (possibly non-terminated string)
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(36 -- 3 : error 001: expected token: ",", but found "}"
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(210) : warning 217: loose indentation
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(210) : error 029: invalid expression, assumed zero
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(210) : warning 215: expression has no effect
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(210) : error 001: expected token: ";", but found "if"
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(215) : warning 217: loose indentation
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(215) : error 029: invalid expression, assumed zero
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(215) : warning 215: expression has no effect
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(215) : error 001: expected token: ";", but found "if"
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(220) : warning 217: loose indentation
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(220) : error 029: invalid expression, assumed zero
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(220) : warning 215: expression has no effect
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(220) : error 001: expected token: ";", but found "if"
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(221) : error 029: invalid expression, assumed zero
/home/groups/alliedmodders/forums/files/2/4/8/1/1/13464.attach(233) : error 001: expected token: "}", but found "-end of file-"

10 Errors.
This is when downloading it...

Your code is basiclly crappy to me...
Could not locate output file /home/groups/amxmodx/public_html/compiled3/13464.amx (compile failed).
__________________

Dutchie is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-25-2007 , 08:41   Re: MODIFICATION Handicap Mod 1.1
Reply With Quote #4

Don't post plugins if you don't even know how to compile one.


register_cvar("amx_26thhealth", "250

This code makes me wish I did not wake up this morning..

PHP Code:
        else if(PlayerFrags[id] >= 49 && PlayerFrags[id] <= 50
            {
            new 
health get_cvar_num("amx_25thhealth")        
            
set_user_health(idhealth)
            
client_print(idprint_chat"AAAA CHEATER BUUUU!!!! OR YOU ARE ....NOOO CHEATER!!!!!"healthPlayerFrags[id])
        else if(
PlayerFrags[id] >= 51 && PlayerFrags[id] <= 150
            
{
            new 
health get_cvar_num("amx_26thhealth")        
            
set_user_health(idhealth)
            
client_print(idprint_chat"You are cheater or big big GOOD PLAYER or you play whith big noob , oh for kill j give you hp"healthPlayerFrags[id]) 
Do I really have to say anymore?

Last edited by SweatyBanana; 01-25-2007 at 08:47.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 08:45   Re: MODIFICATION Handicap Mod 1.1
Reply With Quote #5

Wow, I havn't seen coding like this before... Please get me a barf bag.
__________________

Dutchie is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 01-25-2007 , 09:02   Re: MODIFICATION Handicap Mod 1.1
Reply With Quote #6

You're pointing out everything I pointed out in his first thread

http://forums.alliedmods.net/showthread.php?t=50335
organizedKaoS is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-25-2007 , 12:39   Re: MODIFICATION Handicap Mod 1.1
Reply With Quote #7

This is beyond repair... unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Agent_GOD
BANNED
Join Date: Jan 2007
Location: Starachowice , Poland
Old 01-25-2007 , 14:45   Re: MODIFICATION Handicap Mod 1.12
Reply With Quote #8

Version 1.12 now !
Agent_GOD is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-25-2007 , 15:08   Re: MODIFICATION Handicap Mod 1.12
Reply With Quote #9

This is obviously not going to get better any time soon, so I took the liberty of cutting the code for this down by... err... a lot:

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define CVAR_NUM 26 new PlayerFrags[33] new g_Cvars[CVAR_NUM] public plugin_init() {     register_plugin("Handicap Mod Modifited", "1.1", "Modifited by Agent_GOD , Orginal by Rolnaaba")     register_event("DeathMsg", "Event_Death", "a")     register_logevent("Event_RoundEnd", 2, "1=Round_End")         new Cvar[24],Value[10]     for(new Count;Count < CVAR_NUM;Count++)     {         format(Cvar,23,"amx_%dhealth")         format(Value,9,"%d",96 - (Count * 4))                 g_Cvars[Count] = register_cvar(Cvar,Value)     } } public Event_Death() {       new killer = read_data(1)     if(killer)         PlayerFrags[killer]++         PlayerFrags[read_data(2)] = 0 } public Event_RoundEnd() {     new Players[32], playerCount, i     get_players(Players, playerCount, "c")     for(i=0;i<playerCount;i++)         set_task(5.0,"Do_Health",Players[i]) } public Do_Health(id) {       new Frags = PlayerFrags[id]         if(!is_user_connected(id) || !Frags)         return     if(Frags < CVAR_NUM * 2)     {         new Float:Calc = (Frags + 0.1) / 2.0,Cvar = floatround(Calc,floatround_ceil),Health = get_pcvar_num(g_Cvars[Cvar])         set_user_health(id,Health)             client_print(id,print_chat,"[AMXX] Your health has been set to %d for having %d consecutive kills",Health,Frags)     }     else         client_print(id,print_chat,"[AMXX] Your health will remain at 100 for having more than %d consecutive kills",CVAR_NUM * 2) }

Please bear in mind this is untested. Also, the cvar names were changed to just "amx_1health" instead of "amx_1sthealth" to make it easier to loop.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-26-2007 , 00:49   Re: MODIFICATION Handicap Mod 1.12
Reply With Quote #10

Nice, i made one like this... but it was also sloppy... twas unapproved

I like the overall idea of fairer gameplay, however.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
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 00:19.


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