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

[STOCKS] New tempents stocks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-01-2008 , 09:39   [STOCKS] New tempents stocks
Reply With Quote #1

Hello
I saw in sdktools_tempents_stocks.inc file some stocks for setup different stuffs but those aren't all. I made new ownes

Here is an example for create a dynamic light effect:
Code:
#include <sourcemod> #include <sdktools> #pragma semicolon 1 public Plugin:myinfo = {     name = "New SM Plugin",     author = "SAMURAI",     description = "Example of a Dynamic Light effect",     version = "1.0",     url = "wtf :)" } public OnPluginStart() {     RegConsoleCmd("test1",testCmd,"dynamic light"); } public Action:testCmd(id, args) {     new Float:origin[3];     GetClientAbsOrigin(id,origin);         new r = 255;     new g = 0;     new b = 255;     new exponent = 50;     new Float:radius = 105.0;     new Float:time = 10.0;     new Float:decay = 80.0;         TE_SetupDynamicLight(origin,r,g,b,exponent,radius,time,decay);     TE_SendToAll();     }     /**  * Sets up a Dynamic Light effect  *  * @param vecOrigin        Position of the Dynamic Light  * @param r            r color value  * @param g            g color value  * @param b            b color value  * @param iExponent        ?  * @param fTime            Duration  * @param fDecay        Decay of dynamic light  * @noreturn  */ stock TE_SetupDynamicLight(const Float:vecOrigin[3], r,g,b,iExponent,Float:fRadius,Float:fTime,Float:fDecay) {     TE_Start("Dynamic Light");     TE_WriteVector("m_vecOrigin",vecOrigin);     TE_WriteNum("r",r);     TE_WriteNum("g",g);     TE_WriteNum("b",b);     TE_WriteNum("exponent",iExponent);     TE_WriteFloat("m_fRadius",fRadius);     TE_WriteFloat("m_fTime",fTime);     TE_WriteFloat("m_fDecay",fDecay); }
It's generate a dynamic light at origin of client who use command "test1" in console
Attached Files
File Type: sp Get Plugin or Get Source (new_tempents_stocks.sp - 886 views - 8.9 KB)

Last edited by SAMURAI16; 04-04-2008 at 10:11.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
toazron1
Senior Member
Join Date: Oct 2006
Old 04-01-2008 , 16:25   Re: New tempents stocks
Reply With Quote #2

should
Code:
stock TE_SEtupDynamicLight(const Float:vecOrigin[3], r,g,b,iExponent,Float:fRadius,Float:fTime,Float:fDecay)
be
Code:
stock TE_SetupDynamicLight(const Float:vecOrigin[3], r,g,b,iExponent,Float:fRadius,Float:fTime,Float:fDecay)
__________________
toazron1 is offline
Send a message via AIM to toazron1
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-01-2008 , 16:43   Re: New tempents stocks
Reply With Quote #3

changed
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-03-2008 , 08:33   Re: [STOCKS] New tempents stocks
Reply With Quote #4

-updated with params explication
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-03-2008 , 17:25   Re: [STOCKS] New tempents stocks
Reply With Quote #5

Examples would be nice so we don't have to download it to see what you made.
bl4nk is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-04-2008 , 10:11   Re: [STOCKS] New tempents stocks
Reply With Quote #6

-example added
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
raydan
Senior Member
Join Date: Aug 2006
Old 04-05-2008 , 00:19   Re: [STOCKS] New tempents stocks
Reply With Quote #7

have a TE_SetupC4DefuseBartime()?
raydan is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-05-2008 , 00:22   Re: [STOCKS] New tempents stocks
Reply With Quote #8

Quote:
Originally Posted by raydan View Post
have a TE_SetupC4DefuseBartime()?
No, it's impossible to create something like that with tempents
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Fredd
Veteran Member
Join Date: Jul 2007
Old 04-06-2008 , 05:30   Re: [STOCKS] New tempents stocks
Reply With Quote #9

Quote:
Originally Posted by raydan View Post
have a TE_SetupC4DefuseBartime()?
sam: sorry if this is offtopic, but raydan its not possible using tempents as he said but you could use a sig scan or use the usermessage "BarTime"...
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd 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 05:30.


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