AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Donate Res (v1.3.4) (https://forums.alliedmods.net/showthread.php?t=4153)

karlos 07-24-2004 09:44

Donate Res (v1.3.4)
 
1 Attachment(s)
Code:

/*
* This Plugin allows aliens to donate res to other players and
* distribute his res when leaving
* Say giveres x or type in console giveres x while looking at player to donate
*
* amx_donateres_cvar gorgeonly 1/0        : player can only donate to gorge
* amx_donateres_cvar tax x                : how much to pay for transfer (percent)
* amx_donateres_cvar shareonexit 1/0        : player share res on disconnect on/off
* amx_donateres 1/0 or on/off                : turns Donate Res on/off
*
* by White Panther
*
* v1.0:
*        - first release
*
* v1.1.5:
*        - bug fixed where only skulks could donate to skulks, gorge to gorge, ...
*        - bug where gorgeonly could not be turned off after enabling
*        - res of players that leave can be distribute to all others (use "amx_donateres_cvar shareonexit 0" to disable )
*        - fixed bug where player could disconnect, distribute res, connect again and still has his res
*
* v1.2.2b:
*        - now working with NS 3 b5
*        - minor adjustments / fixes
*        - moved from ns2amx to engine + fakemeta + ns
*        - fixed bug for 32 players
*
* v1.2.3:
*        - minor code fixes
*
* v1.2.4:
*        - changed:
*                - moved from pev/set_pev to entity_get/entity_set (no fakemeta)
*
* v1.2.5:
*        - fixed:
*                - possible runtime errors (wrong check order)
*        - changed:
*                - if u have less res than u want to give, all res u have are given
*                - range increased (added define)
*                - minor code improvements
*
* v1.2.8:
*        - fixed:
*                - last alien available on team wont get res in "shareonexit" mode when alien leaves
*                - sharing res on exit tried to split the res to the leaving player too
*        - added:
*                - define to set how long players need to wait before they can start donating after round has started (default 0 seconds)
*                - now players can use "giveres" and "/giveres"
*                - in team chat players may now use the commands too
*        - changed:
*                - sharing res when player leaves server is now taxed
*                - calculation of res to donate/shareonexit
*
* v1.2.9:
*        - fixed:
*                - not running on combat anymore
*
* v1.3.0:
*        - changed:
*                - no more "alternative_linux" define ( unneeded )
*                - code improvements
*
* v1.3.0b:
*        - fix:
*                - small print fix not displaying correct value
*
* v1.3.1:
*        - added:
*                - Helper support
*
* v1.3.2:
*        - fixed:
*                - players trying to give more res than owned, lost res without donating ( King Arthur )
*        - changed:
*                - minor text adjustments
*
* v1.3.3:
*        - added:
*                - MvM check
*        - changed:
*                - moved to fakemeta
*
* v1.3.4:
*        - fixed:
*                - it was possible to give more res than player could receive ( res would be lost )
*/

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <ns>
#include <helper>

Donate Res (download here)

get helper.inc from this thread HERE

BOOM 07-24-2004 13:46

this nice i'll eventually test this out

karlos 08-18-2004 13:17

new feature + bug fixes

SirChris 08-20-2004 19:23

works fine, nice one!

karlos 08-29-2004 10:57

bug fixed where aliens could get extra by disconnecting and connecting again

Meatwad 08-29-2004 16:35

It seems like a really good idea. But how would the marines use this?

Seraph 08-29-2004 16:48

Marines don't have individual res

Meatwad 08-29-2004 17:42

Does any of the servers have this on it? It sounds like a awsome plugin.

karlos 09-10-2004 13:04

new version, it works now with b5 and uses amxx 0.2 ns module

Meatwad 09-10-2004 18:35

Every server I go to, thats NSb5, doesn't have donate any more. It takes FOREVER to get a hive now-a-days.


All times are GMT -4. The time now is 12:07.

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