Raised This Month: $ Target: $400
 0% 

Making a new zone


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-18-2009 , 12:47   Re: Making a new zone
Reply With Quote #8

Better a think time man.

PHP Code:
new gf_timeafterGotOut[33]

// When gets out
gf_timeafterGotOut[id] = get_gametime() // the moment when the player got out

public Client_PreThink(id)
{
  
// Not interested whether he entered the zone
  
if (gf_timeafterGotOut[id] == 0.0)
   return 
PLUGIN_CONTINUE
 
  
new gametime get_gametime()
  if (
float(floatround(gametime)) - 0.05 <= gf_timeafterGotOut[id] - gametime <= float(floatround(gametime)) + 0.05)
  {
    
client_print(idprint_chat"%d seconds have passed from getting out of the zone"floatroundgf_timeafterGotOut[id] - gametime ))
  }

__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 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 22:32.


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