View Single Post
mlb
Junior Member
Join Date: May 2011
Location: US
Old 05-29-2011 , 07:59   Re: round_startmoney
Reply With Quote #4

Quote:
Originally Posted by reinert View Post
Remove .amxx because when you upload .sma it automaticly compiles and uploads .amxx too ;)

Also why did you make a stock and a pcvar ?


PHP Code:
stock GetStartMoney()
   return 
get_pcvar_num(g_money); 
Can't you use just this :

PHP Code:
new pMoney get_cvar_num("mp_startmoney"
instead.
I don't like having extra queries when a single variable could be stored, making it a lot quicker. As for the stock... I don't know much about the language, but I assumed it was something like 'inline' from reading the examples. I removed the stock and am just using the get_pcvar_num now.

Quote:
Originally Posted by ConnorMcLeod View Post
http://forums.alliedmods.net/showthread.php?p=221246

Use mp_startmoney doesn't make any difference.

You you make a plugin that set player min money before he can buy (hook player spawn), i can reconsider it.

Unapproved.
Changed it. It now uses the player spawn. And thank you for your suggestion, I think it's much better now.

I'm not sure of the resubmitting process, but I have replaced the file in the original post.
mlb is offline