Raised This Month: $51 Target: $400
 12% 

stock is_big_map()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-29-2019 , 12:13   stock is_big_map()
Reply With Quote #1

Code:
///Uses: Sandboxing, more. stock is_big_map(){new Float:mega = (0.001);     new adjmsize,mname[32];     get_mapname(mname,charsmax (mname));     new Float:msize = (filesize("maps/%s.bsp",mname, charsmax (mname))*(mega)/1024);     adjmsize = floatround(msize, floatround_ceil);     return adjmsize;} /***Examples: **if( is_big_map() < 2 ) {  ///Code runs on maps less than 2 MB. **if( is_big_map() > 5 ) {  ///Code runs on maps larger than 5 MB. */
__________________
DJEarthQuake is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode