round money help
so here is what my plugin is suppose to do. when u join a server, it will give u 8000$ as start money. next, if you are ct and have less than 3500$, then it is suppose to set your money to 3500. so u can buy famas or stuff and arent completely broke. same goes for t side. if u have less than 3000 (t guns are less expensive) then plugin sets your money to 3000.
idea behind this plugin was to control awp whoring in my server (which is set to 16k, but give money to nub players incase if they are broke) anyways, its having an issue where it gives money after 7-8 seconds. freeze time is 5 secs, and if i have less money, it gives me money to make purchases. but after i start walking around, it gives me money one more time. what am i doing wrong here? sorry for nub mistakes if i made any, this is my first plugin PHP Code:
|
Re: round money help
can somebody help me?
|
Re: round money help
It should be due to another plugin.
Also it would be better to use player spawn so you are sure to retrieve the real team and you don't have to loop through all players. (userTeam == 2) && (userTeam != 1||3||0) LoL :mrgreen::mrgreen::mrgreen: |
Re: round money help
could u elaborate on player spawn, like what it is and a sample code snippet.
also what should be return type here. i tried your suggestion and put return type as plugin_handled incase something is messing it up.(http://forums.alliedmods.net/showthread.php?t=10493). now, it would give me money in the end round for some reason. for instance, lets say ts win the round. and there is message and sound saying terrorist win. and there is a delay of about 1-2 secs till new round begins. it gave me money after the terrorist win sound came, and before new round started. and i dont think there are any other plugins that would cause an error Code:
name version author file status |
Re: round money help
PHP Code:
|
| All times are GMT -4. The time now is 12:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.