View Single Post
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 05-15-2011 , 18:09   Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Reply With Quote #145

Quote:
Originally Posted by GoD-Tony View Post
Was using smlibs and noticed this:
Code:
stock Client_SetMaxSpeed(client, Float:value) {     Client_SetMaxSpeed(client, value); }
It should call Entity_SetMaxSpeed, fixed on svn.
You can use Entity_SetMaxSpeed in the meanwhile, Client_SetMaxSpeed ist just a wrapper


Quote:
Originally Posted by GoD-Tony View Post
Was using smlibs and noticed this:
Maybe I can add a new one while I'm posting:
Code:
Float:GetClientMapTime(client) { &nbsp;&nbsp;&nbsp;&nbsp;/* Retrieves the time played on the current map. */ &nbsp;&nbsp;&nbsp;&nbsp;new Float:fClientTime = GetClientTime(client); &nbsp;&nbsp;&nbsp;&nbsp;new Float:fGameTime = GetGameTime(); &nbsp;&nbsp;&nbsp;&nbsp;return (fClientTime < fGameTime) ? fClientTime : fGameTime; }
Added function Client_GetMapTime()
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline