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

Cheer :-)


Post New Thread Reply   
 
Thread Tools Display Modes
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-23-2008 , 11:17   Re: Cheer :-)
Reply With Quote #21

hmm..
I hear sound.. What mod at you're server ? in my cstrike sound woohoo2.wav locates in Valve/cstrike/sound/misc/woohoo2.wav and it workds without problem.

Last edited by TheRadiance; 04-23-2008 at 11:21.
TheRadiance is offline
Send a message via ICQ to TheRadiance
FuZ!on
Senior Member
Join Date: Aug 2007
Old 04-23-2008 , 11:32   Re: Cheer :-)
Reply With Quote #22

Same as me.

cstrike/sound/misc/woohoo2.wav

I am not an expert about scripting or anything but don't you want to change the precache so that you precache the sound as well?

Code:
}

public plugin_precache()
{
    sprite = precache_model("sprites/smile.spr")
}
To

Code:
}

public plugin_precache()
{
    sprite = precache_model("sprites/smile.spr")
    precache_sound("sound/misc/woohoo2.wav")
}
I am not a scripter, this is my first attempt at this. Correct me if I am wrong but don't you need to do that since it isn't a default half-life sound?

Last edited by FuZ!on; 04-23-2008 at 11:55.
FuZ!on is offline
warlock
Senior Member
Join Date: Jan 2005
Old 04-23-2008 , 14:59   Re: Cheer :-)
Reply With Quote #23

The plugin isn't working since the last update.
__________________
Kind regards,
warlock
warlock is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-24-2008 , 04:35   Re: Cheer :-)
Reply With Quote #24

Quote:
precache_sound("sound/misc/woohoo2.wav")
Try ti add it in script and test and if it will work i'll add it in my script, because in my server i hear sound without precache.

try to use 2 ways

precache_sound("sound/misc/woohoo2.wav")
or
precache_sound("misc/woohoo2.wav")
TheRadiance is offline
Send a message via ICQ to TheRadiance
FuZ!on
Senior Member
Join Date: Aug 2007
Old 04-24-2008 , 08:25   Re: Cheer :-)
Reply With Quote #25

I just added the second line and it works now.

Code:
}

public plugin_precache()
{
    sprite = precache_model("sprites/smile.spr")
      precache_sound("misc/woohoo2.wav")
}
It should work now. Works for me.
FuZ!on is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-24-2008 , 10:28   Re: Cheer :-)
Reply With Quote #26

FuZ!on, thnx, i'll add it to script.
+ k
TheRadiance is offline
Send a message via ICQ to TheRadiance
Plug me up
Member
Join Date: Aug 2008
Old 10-13-2008 , 21:35   Re: Cheer :-)
Reply With Quote #27

how about ppl dont have to bind +cheer?
i think u just hav to make a condition sistem code
like first time u press J ("cheer" default) it screams and show the sprite, when u press again it hides the sprite

and also add a message to the one who pressed the button warning if his sprite is enabled or no


+karma to who do that

tnkx very much

edit:
heyy i did it! if anyone wants,there it goes, if u like it, karma me and the creator of the plug
Attached Files
File Type: amxx cheer_ed.amxx (3.1 KB, 130 views)

Last edited by Plug me up; 10-14-2008 at 17:31. Reason: obsolet
Plug me up is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 10-26-2008 , 08:12   Re: Cheer :-)
Reply With Quote #28

Quote:
edit:
heyy i did it! if anyone wants,there it goes, if u like it, karma me and the creator of the plug
Post the source code
TheRadiance is offline
Send a message via ICQ to TheRadiance
Plug me up
Member
Join Date: Aug 2008
Old 10-27-2008 , 12:06   Re: Cheer :-)
Reply With Quote #29

Quote:
Originally Posted by TheRadiance View Post
Post the source code
right, there you go
report me back if u like or anything else
Attached Files
File Type: sma Get Plugin or Get Source (cheer_ed.sma - 764 views - 2.0 KB)
Plug me up is offline
jas0n
Junior Member
Join Date: Sep 2006
Old 10-28-2008 , 04:12   Re: Cheer :-)
Reply With Quote #30

[Plug me up]
in your cheer_ed.sma there are no differents between case 0: and case 1: in switch(get_pcvar_num(accessCvar))... what for...
And smile must be an array (bool:smile[33] - for each player separately), but not a single cvar.
Your code is incorrect.
try my attachment, i think it's more correct (mb, additionaly we needs to hook player deathEvent and change g_smile[id] to false).
Attached Files
File Type: rar cheer_ed.rar (9.8 KB, 129 views)
File Type: sma Get Plugin or Get Source (cheer_ed.sma - 652 views - 1.4 KB)

Last edited by jas0n; 10-28-2008 at 05:34. Reason: sry 4 my bad english :]
jas0n 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 14:30.


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