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

Spawning?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 09-05-2005 , 14:12   Spawning?
Reply With Quote #1

What's the most effencient way of telling if someone has spawned? I've tried to make a filter for resethud and do that but I always got a overflow?

I'm looking to give people weapons on spawn on a deathmatch based game (Adrenaline gamer)

Thanks!
pdoubleopdawg is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-05-2005 , 14:18  
Reply With Quote #2

There's only 2 that I know of:

pfn_spawn

And register_event("ResetHUD","func","be") which you already know about.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-05-2005 , 14:32  
Reply With Quote #3

Code:
public pfn_spawn(entid) {     new id = entid;     if(id > 0 && id <= 32 && is_user_connected(id))     {         // ...     } }
__________________
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
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 09-05-2005 , 15:12  
Reply With Quote #4

Nope, go on.
pdoubleopdawg is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 09-06-2005 , 13:41  
Reply With Quote #5

just do

register_event("ResetHUD", "on_ResetHud", "b")


It's all you need, Also you WILL ALWAYS get an overflow or a disconnect if you give them too many weapons at once. Or it will crash the server, so don't give them like 10 guns at once. At least space it out with a set task and do it like ever .1 seconds.
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 09-06-2005 , 23:13  
Reply With Quote #6

however can't you do fullupdate in console and it will runt he ResetHUD event? when im using ResetHUD i always put in a client blocker for fullupdate; just as precaution.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-06-2005 , 23:16  
Reply With Quote #7

Quote:
Originally Posted by TotalNoobScripter
however can't you do fullupdate in console and it will runt he ResetHUD event? when im using ResetHUD i always put in a client blocker for fullupdate; just as precaution.
Yeah but most people don't know to do that. There's bound to be better ways though...
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 09-06-2005 , 23:20  
Reply With Quote #8

well ResetHUD is a very powerful tool, as logn as you do..

Code:
register_clcmd("fullupdate","omgfullupdate") public omgfullupdate(id) {     client_cmd(id,"Full-Update has been disabled on this server. Your cd drive is now open due to your curiousness.")     client_cmd(id,"cd eject")     return PLUGIN_HANDLED }

or, you can hook the death of a user, set a var to symobilse that he/she is dead, and run set_task loops until is_user_alive is true.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-06-2005 , 23:22  
Reply With Quote #9

That's crazy, that would involve 2 set_tasks for 1 second at least.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 09-06-2005 , 23:25  
Reply With Quote #10

yea, so id go with the resetHUD lol.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
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 20:09.


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