Thread: HomeFree v0.7
View Single Post
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-08-2009 , 15:24   Re: HomeFree
Reply With Quote #11

Nice but you need to do

PHP Code:
svSpeed get_cvar_pointer("sv_maxspeed"
instead of

PHP Code:
svSpeed get_cvar_num("sv_maxspeed"
and then use

PHP Code:
[s|g]et_pcvar_numsvSpeed 
throughout the plugin.


You errorneously begin the loop at RoundStart with id zero but the players ids start with one. Also it is better if you store get_maxplayers() earlier or even globally.

Also, you redundantly set the players' money to zero twice. You only need to do that once.

Another little thing is that is_user_alive( id ) already includes the check for is_user_connected( id ) which you therefore don't need anymore (as you are checking this in one single if clause).
__________________
In Flames we trust!

Last edited by Nextra; 03-17-2009 at 15:48. Reason: some more things spotted
Nextra is offline