Raised This Month: $ Target: $400
 0% 

issue with referencing an image in a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flynn_bat
BANNED
Join Date: Jun 2016
Location: Usa
Old 08-10-2016 , 12:15   issue with referencing an image in a plugin
Reply With Quote #1

hello, i am currently making a plugin (witch is going to be really funny ) but i am stumped on referencing a gif so it will play when you use the command. i also want to play a sound file at the same time. I know it is probably pretty straight forward but i couldn't figure it out. sorry for my inexperience. Thanks!
Flynn_bat is offline
Send a message via ICQ to Flynn_bat Send a message via AIM to Flynn_bat Send a message via Yahoo to Flynn_bat Send a message via Skype™ to Flynn_bat
Michael Shoe Maker
Senior Member
Join Date: Apr 2016
Old 08-10-2016 , 12:37   Re: issue with referencing an image in a plugin
Reply With Quote #2

Not sure you can use a gif, but the file must be a .vtf
PHP Code:
ClientCommand(client"r_screenoverlay \"%s\""overlaypath); 
Remember to cache the file.

For the sound:
https://sm.alliedmods.net/new-api/sdktools_sound

Last edited by Michael Shoe Maker; 08-10-2016 at 12:39.
Michael Shoe Maker is offline
Flynn_bat
BANNED
Join Date: Jun 2016
Location: Usa
Old 08-10-2016 , 13:21   Re: issue with referencing an image in a plugin
Reply With Quote #3

Thanks!
Flynn_bat is offline
Send a message via ICQ to Flynn_bat Send a message via AIM to Flynn_bat Send a message via Yahoo to Flynn_bat Send a message via Skype™ to Flynn_bat
Flynn_bat
BANNED
Join Date: Jun 2016
Location: Usa
Old 08-10-2016 , 13:21   Re: issue with referencing an image in a plugin
Reply With Quote #4

how bout a .mp4?
Flynn_bat is offline
Send a message via ICQ to Flynn_bat Send a message via AIM to Flynn_bat Send a message via Yahoo to Flynn_bat Send a message via Skype™ to Flynn_bat
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-10-2016 , 13:26   Re: issue with referencing an image in a plugin
Reply With Quote #5

Like video? Only in MOTD and only as HTML5 video.
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
Flynn_bat
BANNED
Join Date: Jun 2016
Location: Usa
Old 08-10-2016 , 13:26   Re: issue with referencing an image in a plugin
Reply With Quote #6

actually il just use spraygen thanks!
Flynn_bat is offline
Send a message via ICQ to Flynn_bat Send a message via AIM to Flynn_bat Send a message via Yahoo to Flynn_bat Send a message via Skype™ to Flynn_bat
Flynn_bat
BANNED
Join Date: Jun 2016
Location: Usa
Old 08-10-2016 , 13:31   Re: issue with referencing an image in a plugin
Reply With Quote #7

rip hard drive... photoshop is converting a video with 2000 frames to images.............. this will be a while. thanks though, i got it figured out!
Flynn_bat is offline
Send a message via ICQ to Flynn_bat Send a message via AIM to Flynn_bat Send a message via Yahoo to Flynn_bat Send a message via Skype™ to Flynn_bat
Michael Shoe Maker
Senior Member
Join Date: Apr 2016
Old 08-10-2016 , 13:35   Re: issue with referencing an image in a plugin
Reply With Quote #8

You will also need to precache the sound, I've used both .wav and .mp4.
What is the game?
Michael Shoe Maker is offline
Flynn_bat
BANNED
Join Date: Jun 2016
Location: Usa
Old 08-10-2016 , 13:46   Re: issue with referencing an image in a plugin
Reply With Quote #9

tf2
Flynn_bat is offline
Send a message via ICQ to Flynn_bat Send a message via AIM to Flynn_bat Send a message via Yahoo to Flynn_bat Send a message via Skype™ to Flynn_bat
Flynn_bat
BANNED
Join Date: Jun 2016
Location: Usa
Old 08-10-2016 , 13:48   Re: issue with referencing an image in a plugin
Reply With Quote #10

also if i was going to use the command AddNormalSoundHook where would i put the sound file
Flynn_bat is offline
Send a message via ICQ to Flynn_bat Send a message via AIM to Flynn_bat Send a message via Yahoo to Flynn_bat Send a message via Skype™ to Flynn_bat
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 09:24.


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