Raised This Month: $ Target: $400
 0% 

Respawn....


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-20-2009 , 04:32   Respawn....
Reply With Quote #1

I want to make a Team to have a number of respawn time....l
Example:...CTs can respawn..but only 200 times.......I really don't know about this
Anyone can help me
__________________
5c0r-|3i0 is offline
Old 07-20-2009, 08:32
ProIcons
This message has been deleted by ProIcons. Reason: :/
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 07-20-2009 , 08:38   Re: Respawn....
Reply With Quote #2

200 time every user of the team or 200 times total of all users?
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-20-2009 , 10:45   Re: Respawn....
Reply With Quote #3

all users...
__________________
5c0r-|3i0 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-20-2009 , 10:52   Re: Respawn....
Reply With Quote #4

Should work.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

new g_iRespawns];
new 
g_iCvarRespawnTimes;
new 
bool:g_bRespawnEnabled;

public 
plugin_init( ) {
    
register_plugin"Respawn""1.0""xPaw" );
    
    
g_iCvarRespawnTimes register_cvar"sv_respawns""200" );
    
    
RegisterHamHam_Killed"player""Player_Killed" );
    
register_event"HLTV""Event_HLTV_New_Round""a""1=0""2=0" );
    
register_logevent"Logevent_Round_End"2"1=Round_End" );
    
    
g_bRespawnEnabled true;
}

public 
Event_HLTV_New_Round( ) {
    
g_iRespawns] = 0;
    
g_iRespawns] = 0;
    
    
g_bRespawnEnabled true;
}

public 
Logevent_Round_End( )
    
g_bRespawnEnabled false;

public 
Player_Killedid ) {
    if( !
g_bRespawnEnabled )
        return 
HAM_IGNORED;
    
    new 
iTeam get_user_teamid );
    
    if( 
iTeam != && iTeam != )
        return 
HAM_IGNORED;
    
    if( 
g_iRespawnsiTeam ]++ > get_pcvar_numg_iCvarRespawnTimes ) )
        return 
HAM_IGNORED;
    
    
ExecuteHamBHam_Spawnid );
    
    return 
HAM_SUPERCEDE;

__________________
xPaw is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-20-2009 , 11:17   Re: Respawn....
Reply With Quote #5

Thanks...But how about 200 total users of a team ??
__________________

Last edited by 5c0r-|3i0; 07-20-2009 at 11:27.
5c0r-|3i0 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-20-2009 , 11:43   Re: Respawn....
Reply With Quote #6

Quote:
Originally Posted by 5c0r-|3i0 View Post
Thanks...But how about 200 total users of a team ??
It is
__________________
xPaw is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-20-2009 , 21:43   Re: Respawn....
Reply With Quote #7

'kay .Thanks :d

Last edited by 5c0r-|3i0; 07-20-2009 at 21:50.
5c0r-|3i0 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 02:20.


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