AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   MODIFICATION Handicap Mod 1.12 (https://forums.alliedmods.net/showthread.php?t=50383)

Agent_GOD 01-25-2007 06:29

MODIFICATION Handicap Mod 1.12
 
1 Attachment(s)
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.

Dutchie 01-25-2007 07:23

Re: MODIFICATION Handicap Mod 1.1
 
Hey man, first of all did you get persmission?

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

Dutchie 01-25-2007 07:24

Re: MODIFICATION Handicap Mod 1.1
 
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 -- 38) : 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).

SweatyBanana 01-25-2007 08:41

Re: MODIFICATION Handicap Mod 1.1
 
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?

Dutchie 01-25-2007 08:45

Re: MODIFICATION Handicap Mod 1.1
 
Wow, I havn't seen coding like this before... Please get me a barf bag.

organizedKaoS 01-25-2007 09:02

Re: MODIFICATION Handicap Mod 1.1
 
You're pointing out everything I pointed out in his first thread

http://forums.alliedmods.net/showthread.php?t=50335

Hawk552 01-25-2007 12:39

Re: MODIFICATION Handicap Mod 1.1
 
This is beyond repair... unapproved.

Agent_GOD 01-25-2007 14:45

Re: MODIFICATION Handicap Mod 1.12
 
Version 1.12 now !

Hawk552 01-25-2007 15:08

Re: MODIFICATION Handicap Mod 1.12
 
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.

soccdoodcss 01-26-2007 00:49

Re: MODIFICATION Handicap Mod 1.12
 
Nice, i made one like this... but it was also sloppy... twas unapproved :(

I like the overall idea of fairer gameplay, however.


All times are GMT -4. The time now is 20:25.

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