Raised This Month: $ Target: $400
 0% 

constantly running


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sonic7145
Member
Join Date: Jul 2005
Location: USA
Old 12-24-2005 , 14:38   constantly running
Reply With Quote #1

pruned

Last edited by Sonic7145; 08-09-2021 at 04:14.
Sonic7145 is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-24-2005 , 14:44  
Reply With Quote #2

Moved from Support/Help.
Brad is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 12-24-2005 , 15:08  
Reply With Quote #3

Code:
server_frame() // fastest ingame loop

Code:
client_PreThink(id) // just A BIT faster then PostThink

Code:
client_PostThink(id)

Anyway, if you do something in all these 3 - you wont be dissapointed.

P.S.

They are forwards, so that means you have to use them like this

Code:
public oneOfThoseThreeForwards( ) { }

In PreThink and PostThink you can use
Code:
return plugin_continue // dont EVER, EVER use plugin_handled in PostTHink cause that blocks animations of user
, but NEVER RETURN ANYTHING in server frame
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-24-2005 , 15:10  
Reply With Quote #4

Well, you could check his name inside of the client_infochanged forward.
Code:
public client_infochanged( id ) {   new name[33];   get_user_info(id, "name", name, 32);   if(equali(name, "v3x"))   {     client_print(id, print_chat, "zomg, you stole my name!");   } }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 12-24-2005 , 15:11  
Reply With Quote #5

Quote:
Originally Posted by v3x
Well, you could check his name inside of the client_infochanged forward.
Code:
public client_infochanged( id ) {   new name[33];   get_user_info(id, "name", name, 32);   if(equali(name, "v3x"))   {     client_print(id, print_chat, "zomg, you stole my name!");   } }
pwned by v3x...
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Atti53
Member
Join Date: Oct 2005
Old 12-24-2005 , 15:27  
Reply With Quote #6



how to forbid more then 1 name??
__________________
(\_/)
(O.O)
(> <) <---- Put the evil bunny in your sign, help him achieve "WORLD DOMINATION!"
Atti53 is offline
Send a message via MSN to Atti53
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 12-24-2005 , 16:00  
Reply With Quote #7

Quote:
Originally Posted by Atti53


how to forbid more then 1 name??
Code:
public client_infochanged( id ) {   new name[33], oldname[33];   get_user_info(id, "name", name, 32);   get_user_name(id, oldname, 32);       if(equali(name, "v3x"))     {         set_user_info(id, "name", oldname)         client_print(id, print_chat, "zomg, you stole my name!");     }     else if(equali(name, "v3x2"))     {          set_user_info(id, "name", oldname)         client_print(id, print_chat, "zomg, you stole my name!");     } }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 12-24-2005 , 18:21  
Reply With Quote #8

How would you do this with a switch statement?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-24-2005 , 19:00  
Reply With Quote #9

I don't believe you would. I don't think you can switch on strings.

At any rate, isn't there already a plugin that does exactly what Sonic wants?
Brad is offline
Old 12-24-2005, 21:10
Sonic7145
This message has been deleted by Sonic7145.
Reply



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 17:53.


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