This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


Post New Thread Reply   
 
Thread Tools Display Modes
zeroibis
Veteran Member
Join Date: Jun 2007
Old 07-27-2011 , 23:45   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #161

war3 developer changed the name to something else so it is all good
__________________
zeroibis is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 07-30-2011 , 13:06   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #162

Hey I ran across a pretty cool Snippet for sending e-mails although it appears to require sockets... do you think it may be worth adding?

http://forums.alliedmods.net/showthr...ighlight=email

Also, keep up the great work, this really has turned into the greatest collection of stocks EVER!
__________________
zeroibis is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-30-2011 , 20:48   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #163

Quote:
Originally Posted by zeroibis View Post
Hey I ran across a pretty cool Snippet for sending e-mails although it appears to require sockets... do you think it may be worth adding?

http://forums.alliedmods.net/showthr...ighlight=email

Also, keep up the great work, this really has turned into the greatest collection of stocks EVER!
I would, but Sourcepawn doesn't know something like static forwards (yet), so it's not possible. And that thing also doesn't know error handling...
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

Last edited by berni; 07-30-2011 at 21:12.
berni is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 07-31-2011 , 14:38   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #164

Ah I see...

I noticed that there is a lot of functions that let you get or set a parent entity however I could not find anything to search by parent.

It would be nice to be able to search a given entity such as the player and return all entities they are parent of.

The main thing this could be useful for is finally being able to effectively be able to return the entitys of player attachments such as a defuse kit ect so they can be made invisible for example.
__________________
zeroibis is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-31-2011 , 15:15   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #165

I will make a LOOP_CHILDREN macro function for that, then you can loop trough all parented entities of an entity.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 07-31-2011 , 15:39   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #166

Cool, can you give a short example of its use afterword b/c I plan to use it and want to make sure I understand how to correctly.
__________________
zeroibis is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-31-2011 , 15:44   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #167

It will be exactly like this:

PHP Code:
LOOP_CHILDREN(entitychild) {
    
PrintToServer("Entity %d has child %d"entitychild);

entity is the entity you specify, child is a loop var.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 07-31-2011 , 17:30   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #168

Very cool that should finally let me do:
PHP Code:
LOOP_CHILDREN(entitychild) {
    
Effect_FadeOut(childfalse,true);

__________________
zeroibis is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-02-2011 , 00:06   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #169

have you noticed any issue with client_printkeyhint feature... it doesnt work all the time for me... on some server restarts it works, on others it doesnt... works best after an actual restart of pc and fresh startup of the server
TnTSCS is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 08-02-2011 , 13:51   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #170

Quote:
Originally Posted by TnTSCS View Post
have you noticed any issue with client_printkeyhint feature... it doesnt work all the time for me... on some server restarts it works, on others it doesnt... works best after an actual restart of pc and fresh startup of the server
Interesting...
This could mean there are not enough arguments passed to the usermessage...
Do you got example code where this happens ?
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
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 07:28.


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