Thread: amx_heal v1.1
View Single Post
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-03-2006 , 00:50  
Reply With Quote #3

What I recommend is using the pcvar system (Thats your opinion if you want to have a faster plugin).
In your functions you use if statments and other things where you call the same function over and over to get the same value. You should instead make a variable and call the function once. (ie. new health = get_user_healt(....) and then just use health instead of calling get_user_health again, same with get_cvar_num() and str_to_num())

This should take you about 5-10 minutes of coding and it will get this approved.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos