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

Round start


Post New Thread Reply   
 
Thread Tools Display Modes
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 11:49  
Reply With Quote #21

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){         
        /*(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
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 11:49  
Reply With Quote #22

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( new i=1; i < get_maxplayers(); i++ ) { //need to initialize i

         if( !is_user_connected(i) && hasNinja[i] == true){         
        /*(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
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 11:50  
Reply With Quote #23

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( new i=1; i < get_maxplayers(); i++ ) { //need to initialize i          if( !is_user_connected(i) && hasNinja[i] == true){                  /*(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_armor(i, get_user_armor(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"             }        } }

EDIT: Wow i'm fucking retarded... "SMALL" tag ftw.
__________________
"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
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 11:51  
Reply With Quote #24

holy shit, sry about spam.. i kept getting erros, but it looks like it posted anyways.. sorry.
__________________
"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
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-25-2005 , 11:52  
Reply With Quote #25

BIO WTF!!!!! STOP SPAMMING!!!!!



Kensai



Code:
public round_start() {       for( i=1; i < get_maxplayers() i++ ) {  //Everything seems to be coming from here.          if( !is_user_connected(i) ) continue             if( hasNinja[i] == true ) {          set_user_health (id,100)         set_user_armor (id,0)         set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha, 255)         client_print (id,print_chat,"[AMXX] Your Ninja powers have worn off, you are now normal.")            set_user_gravity (id,1.0)         set_user_footsteps (id,0)         hasNinja[id]=false             }         }  }

should be

Code:
public round_start() {       for( i=1; i < get_maxplayers() i++ ) {  //Everything seems to be coming from here.          if( !is_user_connected(i) ) continue             if( hasNinja[i] == true ) {          set_user_health (i,100)         set_user_armor (i,0)         set_user_rendering(i,kRenderFxGlowShell,0,0,0,kRenderTransAlpha, 255)         client_print (i,print_chat,"[AMXX] Your Ninja powers have worn off, you are now normal.")            set_user_gravity (i,1.0)         set_user_footsteps (i,0)         hasNinja[id]=false             }         }  }
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 11:54  
Reply With Quote #26

... u still didn't declare i

for(new i=0; i < get_maxplayers() i++ ) {
//code
}

blah blah.. again SORRY FOR SPAM, IT SAID IT DIDN'T POST DUE TO ERROR BUT POSTED ANYWAYS.
__________________
"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
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 09-25-2005 , 11:55  
Reply With Quote #27

LMFAO. Jeez man, I think I get how you would do it. LOL.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 11:56  
Reply With Quote #28

Hahaha, hope so ;) seriously though, give that a try, and see what happens.
__________________
"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
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-25-2005 , 11:57  
Reply With Quote #29

o crap i copied the wrong thing from my amxx studio


kensai, if you want, this compiles fine
Attached Files
File Type: amx test.amx (3.3 KB, 65 views)
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
smallwimpyboy
Senior Member
Join Date: Aug 2005
Location: United States
Old 09-25-2005 , 11:59  
Reply With Quote #30

Lets just go look around the site in the docs and functions and stuff to see if we find it ?
smallwimpyboy is offline
Send a message via AIM to smallwimpyboy Send a message via MSN to smallwimpyboy
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 08:50.


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