Raised This Month: $ Target: $400
 0% 

I have a question [important]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
haimmaik
Senior Member
Join Date: Jul 2005
Old 10-31-2005 , 22:38  
Reply With Quote #3

and if i have a Variable like
new isgod[33]

and i want an event to give a "god" player his status (speed, gravity and so on) so i need an event

register_event("isgod","func_godstatus","a")
.
.
.

//here i set the god status everytime event isgod is on
public func_godstatus(id)
{
.
.
}


i mean as long as he is a god (isgod[id]=1) i want the function "func_godstatus" to run on him.. and when he isnt a god anymore (isgod[id]=0) i dont want it to run

(all this to prevent the server from lag cuz it lags when a function starts looping all the time)
haimmaik 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 23:42.


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