Thread: Round start
View Single Post
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 11:48  
Reply With Quote #19

Here's how i'd do it. Should help with the free armour/hp cuz that will be abused like a dog in a shelter... sorry I can't test this cuz my compiler is FUBAR atm.

Code:
public round_start() { 

     for( i=1; i < get_maxplayers(); i++ ) { 

         if( !is_user_connected(i) && hasNinja[i] == true) continue         
        /*(set_user_health (i,100)
        set_user_armor (i,100) 

why are u changing their hp and ap anyways? It is auto set to 100 and 0 at begining of round. I'm sure no one has had the chance to buy armour yet, but just in case: */
       set_user_armour(i, get_user_armour(i))
        set_user_rendering(i,kRenderFxGlowShell,0,0,0,kRenderTransAlpha, 255)
        client_print (i,print_chat,"[NINJA] Your Ninja powers have worn off, you are now normal.")  
        set_user_gravity (i,1.0)
        set_user_footsteps (i,0)
        hasNinja[i]=false 
//NOTE: id isn't going to work cuz u r in a loop counted by "i"
            } 
       } 
}
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste