Need Advise/Suggestions for Plugins
Hey there,I was just practising on this plugin since I am new to scripting.
I made this for my public server for practising only,But I think I need some suggestions from the seniors, Please suggest me or tell me how to optimize this,It should help me in future. Thanks to all. PHP Code:
|
Re: Need Advise/Suggestions for Plugins
cs_set_user_deaths(id, 0)
set_user_frags(id, 0) Put set_user_frags(id, 0) BEFORE cs_set_user_frags(id, 0) so you don't need to wait for score update. |
Re: Need Advise/Suggestions for Plugins
Code:
I suggest making a new variable and then equalling it to the players[i] (create the variable before the loop) as this will prevent the compiler from overflowing (I read it HERE) Code:
Also this
Spoiler
|
Re: Need Advise/Suggestions for Plugins
@ConnorMcLeod: Thanks for that,Deaths were set to 0 but I had to respawn again to change frags to 0 :) ,that should work good
@Pokemonmaster: Thanks for your advise,I will change it. Edit:By the Way how you make spoilers ? |
Re: Need Advise/Suggestions for Plugins
Use SPOILER bbcode around PHP one.
|
| All times are GMT -4. The time now is 06:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.