Thread: Reset Score
View Single Post
JFeldon
Member
Join Date: Feb 2007
Location: United Kingdom
Old 07-16-2008 , 15:39   Re: Reset Score
Reply With Quote #5

True.

I'm all for, +karma

It's not badly coded either. The only thing is that if you only have a one liner, you don't need brackets.
PHP Code:
if(is_user_connected(id))
    {
    
client_print(idprint_chat"By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
    } 
is the same as

PHP Code:
if(is_user_connected(id))
        
client_print(idprint_chat"By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)"

It doesn't make much difference, it's just a tip if you want to make future plugins even more concise and smaller

Nice work though
__________________
+Karma if I helped! ;)

Last edited by JFeldon; 07-16-2008 at 15:42.
JFeldon is offline
Send a message via MSN to JFeldon