Raised This Month: $51 Target: $400
 12% 

!spawn


Post New Thread Reply   
 
Thread Tools Display Modes
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 01-08-2011 , 13:51   Re: !spawn
Reply With Quote #11

thanks lucas_7_94 and abdul-rehman!
rodrigo286 is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 01-08-2011 , 14:09   Re: !spawn
Reply With Quote #12

When the round ends, the next round User can not use the.
Would any command to reset the command to round to be released.
rodrigo286 is offline
Elusive138
Senior Member
Join Date: Dec 2010
Old 01-08-2011 , 20:54   Re: !spawn
Reply With Quote #13

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new gLimits[33]
new 
cvarRespawns

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /respawn""respawn")
    
register_event("HLTV""NewRound""a""1=0""2=0")  
    
cvarRespawns register_cvar("amx_respawnlimit""3"FCVAR_SPONLY)
}

public 
respawn(id)
{
    if ( 
gLimits[id] > && !is_user_alive(id))
    {
        
ExecuteHamB(Ham_CS_RoundRespawnid)
        
gLimits[id]--

        
client_print(idprint_chat"[AMXX] Remaining %d Respawns"gLimits[id])
    }
}

public 
client_putinserverid gLimits[id] = get_pcvar_num(cvarRespawns)

public 
NewRound()
{
    static 
Players[32], playerCount
    get_players
(PlayersplayerCount"b")
    for (new 
iplayerCounti++)
        
gLimits[Players[i]] = get_pcvar_num(cvarRespawns)

Elusive138 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 04:16.


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