AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   MOD PUG YAP (4/December/2014) (https://forums.alliedmods.net/showthread.php?t=202393)

kwpd 12-04-2012 20:17

MOD PUG YAP (4/December/2014)
 
6 Attachment(s)
MOD PUG
(Yet Another PUG)


Videos
http://www.youtube.com/watch?v=jas_VbyXNMs

I have ESEA Premium Account 2011 http://play.esea.net/users/468663 Begun to modify MOD PUG (YAP) from 2011 to like ESEA servers.
Well the modificacione costs $$$
https://www.paypalobjects.com/en_US/...onateCC_LG.gif


Features:
(Pregame)
- Auto Re-spawn, infinite money
- Protection Re-spawn
- Weapon Restriction Pregame

(LIVE)
- 2nd Half Force Ready (120 Seconds default)
- 2nd Half No Players (10Min. Auto Cancel pug)
- LO3 -- match is live --
- Hostname scores [Hostname - 1st (1-0)]
- Vote Map (Radom. players no vote map)
- Help System (.help)
- Anti Reconnect
- HLTV manager
- Language. EN, ES, BR.
- Remakes .rmk
SERVER TEST:
http://cache.www.gametracker.com/ser...000_591F11.png
Client Command:
.rmk <-- when you're new pug, remakes.
.ff /ff .gg /gg .surrender /surrender <-- when you're losing 14-0, surrender
.ftb <-- fadetoblack
.ready .listo .gaben
.dmg .hp .sum
.group .add .accept .leavegroup
.stats .toppug .stats pug
STATUS:
MOD PUG (59%)
Language (33%)
Client 1.0.0 Beta.!
1.0.0 - new search interface. PUG server
Change log Server
Next update
* Fix .dmg no kill team
* Add client_print_color()
* Add .ff .gg /ff /gg (team surrender)
* Add .ftb .fadetoblack (enable fadetoblack )
* Add block Spawm jump and duck
* Optimizes AFK KICK
* Synchronization (Basic Stats Points)
* Rewrites pug_live

Code:

2.3.1
* compatibility 1.8.3-dev-git4393

2.3.0
* Add client Disconnect 5minute reserver
Clieant not connect = banned 7 day


micapat 12-04-2012 20:54

Re: PUG Respawning
 
PHP Code:

public ClientCommand_Post(id)
{
    new 
szCommand[12]
    if( 
equali(szCommand"fullupdate") )
    {
        
set_pdata_float(idm_flNextFullUpdateTimeget_gametime() + get_pcvar_float(g_pCvarFullUpdateCoolDown), XO_PLAYER)
    }


This should be fixed on Cs:1.6 since the latest version.

--------

PHP Code:

if(get_user_team(id) == 1)
{
    
set_user_rendering(idkRenderFxGlowShell000kRenderNormalSPShell)
}
        
if(
get_user_team(id) == 2)
{
    
set_user_rendering(idkRenderFxGlowShell000kRenderNormalSPShell)


???

--------

PHP Code:

new name[32]
get_user_name(id,name,32)
    
return 
PLUGIN_HANDLED 

??? And wrong. Use charsmax.

--------
> Better than remove C4, remove bombsites / hostage / VIP Area / Escape Area.
> spawn( id ); is not a good way to respawn a player.
> give_item( id, "item_suit" ) ?
> Use cs_set_user_bpammo for ammunitions.
> Better to use get_pcvar_* than get_cvar_*.
> Avoid some natives call ( get_user_team called twice, ... ).
> I don't understand why you set the money to 16000 ? The plugin must just respawn players, right ?
> sizeof( x ) - 1 --> charsmax( x )
--------

Seems that you have many coding style ... Some parts are illogical.
Does this kind of plugin doesn't exist ???

BLacking98 12-08-2012 19:58

Re: PUG Respawning
 
Quote:

Originally Posted by kwpd (Post 1848420)
PUG Respawning
Description
When a player dies resurrects in 3 seconds with a protection of five seconds. and the weapon will be removed from the floor.

Command
respawning_enabled 0=Disable 1=Enable
remove_drop_items 0=Disable 1=Enable
sv_sptime 5
sv_spshellthick 25

Code:

version 2.0.3
* Initial Release
* Add remove weapon
* Add Protection spawn
* Add Block C4, keys 4
* Add set money 16000
* Add Delay Fullupdate

Instalation
1. Copy pug_respawning.amxx to the cstrike/addons/amxmodx/plugins folder
2. Add pug_respawning.amxx to your plugins.ini file

Ok... Ill be the first here...
DEATHMATCH MOD -.-

kwpd 01-13-2013 04:55

Re: PUG Respawning
 
version 2.0.4
* Various internal improvements.

ConnorMcLeod 01-13-2013 06:29

Re: PUG Respawning
 
Plugin is redundant, is badly coded, use wrong method to respawn player, has useless features.
Unapproved.


Edit :
Please don't use prethink for such things as remove some items, also, button has nothing to do with FL_ONGROUND.
Code:
public Fw_Prethink(id) {     if(get_pcvar_num(Pcvar_RemoveItems))     {         if(!(pev(id,pev_button) & FL_ONGROUND))         {                 message_begin(MSG_ONE, Iconstatus,{0,0,0},id);             write_byte(0);             write_string("defuser");             message_end();         }     } }

Values for button are :
Code:

// pev(entity, pev_button) or pev(entity, pev_oldbuttons) values
#define IN_ATTACK                      (1<<0)
#define IN_JUMP                        (1<<1)
#define IN_DUCK                        (1<<2)
#define IN_FORWARD                      (1<<3)
#define IN_BACK                        (1<<4)
#define IN_USE                          (1<<5)
#define IN_CANCEL                      (1<<6)
#define IN_LEFT                        (1<<7)
#define IN_RIGHT                        (1<<8)
#define IN_MOVELEFT                    (1<<9)
#define IN_MOVERIGHT                    (1<<10)
#define IN_ATTACK2                      (1<<11)
#define IN_RUN                          (1<<12)
#define IN_RELOAD                      (1<<13)
#define IN_ALT1                        (1<<14)
#define IN_SCORE                        (1<<15)    // Used by client.dll for when scoreboard is held down

FL_ONGROUND is :
Code:

#define        FL_ONGROUND                            (1<<9)      // At rest / on the ground
So your code is checking :
Code:
if( !(pev(id,pev_button) & IN_MOVELEFT) )
It sounds a bit stupid.

kwpd 01-14-2013 04:03

Re: PUG Respawning
 
[:mrgreen:] [:D] [:)] [:|] [:( ] [:cry:]

version 2.0.5
* FIXED sounds a bit stupid
* Remove Fw_Prethink

GinNNy 06-19-2014 11:24

Re: MOD PUG [YAP] - Yet Another PUG
 
does anyone have this pug or ?

kwpd 09-20-2014 02:09

Re: MOD PUG [YAP] - Yet Another PUG
 
due to large changes amxmodx 1.8.3
((MAX_PLAYERS define assocaited to get_players.))
tube to recheck all sma PUG
which I had to change many things MAX_PLAYERS which was not associated with get_payers xD
new players [32]: D

GinNNy 09-20-2014 10:26

Re: MOD PUG [YAP] - Yet Another PUG
 
So where is the plugin ?

Arkshine 09-20-2014 10:49

Re: MOD PUG [YAP] - Yet Another PUG
 
Quote:

Originally Posted by kwpd (Post 2201461)
due to large changes amxmodx 1.8.3
((MAX_PLAYERS define assocaited to get_players.))
tube to recheck all sma PUG
which I had to change many things MAX_PLAYERS which was not associated with get_payers xD
new players [32]: D

This is not really a major change.

MAX_PLAYERS is simple a define which is the max players + 1, so 33, because MAX_PLAYERS is always used this way to declare an array.

MaxClients is global variable which holds the servers max slots, basically the same as get_players().

But yeah, if you were defining MAX_PLAYERS to 32 to be used with get_players(), you better either to hardcode 32, or rename the define, it's kind of special case.


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

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