Raised This Month: $ Target: $400
 0% 

New round events + some other things


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AceDude
Junior Member
Join Date: Jul 2006
Location: Wroclaw, Poland
Old 10-13-2007 , 16:39   Re: New round events + some other things
Reply With Quote #1

connor: "i hope you will understand"
arkshine "You don't understand."

lol ;)

Thanks for your support. I'm using VEN's code (http://forums.alliedmods.net/showthread.php?t=42159). I will (propably) have some more problems tommorow, cause it's only begginning of much bigger plugin.

Listing of plugin (feel free to comment):
PHP Code:
#define MAX_PLAYERS 32
new bool:g_restart_attempt[MAX_PLAYERS 1]

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_event("ResetHUD""event_hud_reset""be")
    
register_clcmd("fullupdate""clcmd_fullupdate"
    
register_event("TextMsg""event_restart_attempt""a""2=#Game_will_restart_in")
}

public 
clcmd_fullupdate() {
    return 
PLUGIN_HANDLED_MAIN
}
 
public 
event_restart_attempt() {
    new 
players[32], num
    get_players
(playersnum"a")
    for (new 
inum; ++i)
        
g_restart_attempt[players[i]] = true
}
 
public 
event_hud_reset(id) {
    if (
g_restart_attempt[id]) {
        
g_restart_attempt[id] = false
        
return
    }
    
event_player_spawn(id)
}
 
// this function is called on player spawn
public event_player_spawn(id) {
    
client_print(idprint_chat"[AMXX] SPAWN: NOWA RUNDA | Twoje ID to %d"id);

__________________
If you need English->Polish translation, PM me.

Last edited by AceDude; 10-13-2007 at 16:43.
AceDude 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 01:23.


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