SA-MP Forums Archive
[Include] Game_Sounds - Simply playing game sounds. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Game_Sounds - Simply playing game sounds. (/showthread.php?tid=346435)



Game_Sounds - Simply playing game sounds. - faff - 28.05.2012

Game Sounds v1.0.0
Introduction

This include make it possible to use easy gamesounds...
Like Megakill, Masterkill, Ownage etc...
It got nice sounds for if someone go's dead.
But the nicest thing is, The host will never go down!

Example How to use:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(amount > 25)
    {
    Scaryscreamsound(playerid);
    }
    return 1;
}
Second Example
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
 if(amount > 25)
 {
    new chance=random(4);
    if(chance == 1)
    {
    godlikesound(playerid);
    }
    if(chance == 2)
    {
    holyshitsound(playerid);
    }
    if(chance == 3)
              {
    ownagesound(playerid);
    }
    if(chance == 4)
    {
    firstbloodsound(playerid);
    }
 }
 return 1;
}
Last Example:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new chance=random(2);
    if(chance == 1)
    {
    monsterkillsound(killerid);
    }
    else if(chance == 2)
    {
    megakillsound(killerid);
    }
    deathsound(playerid);


    return 1;
}
You can use this for many things... Maybe a TDM server? it your choice!

How to install?

Open Notepad.
Past everything From the pastbin in it.
Save it in Servermap/pawno/includes... As GAMESOUNDS.inc
What now?
Go to your Gamemode/Filterscript where you want to use this, and paste this.
pawn Код:
#include <GAMESOUNDS>
and ready, just compile now!

All variables

pawn Код:
monsterkillsound(playerid) //Play sound: Monsterkill
megakillsound(playerid)//Play sound: Megakill
deathsound(playerid)//Play sound: *Screaming human*
godlikesound(playerid)//Play sound: Godlike
holyshitsound(playerid)//Play sound: Holyshit
ownagesound(playerid)//Play sound: ownage
firstbloodsound(playerid)//Play sound: First blood
scaryscreamsound(playerid)//Play sound: *scary screaming human*
Credits
Faff: Making Inc & Hosting Sounds
Dota: Creating Sounds

!-!Dont Remove Credits!-!
!-!Its easy but usefull!-!
!-!The sound host will never go down!-!
Features

pawn Код:
V1.0.1
15-06-2012

- Website (Upload ur own music & let it easy play on the server) (v.2.0.1)
- GSedit (a program that is based on visual basic script that make is possible to add sounds in the inc easy) (v.2.0.1)
Downloads
http://pastebin.com/MdscM6wn (v1.0.0)


Re: Game_Sounds - Simply playing game sounds. - WoodPecker - 28.05.2012

This is a nice filterscript, thank you for your hard job man.


Re: Game_Sounds - Simply playing game sounds. - BlackBank - 28.05.2012

Maybe a nice idea, to upload all the sound files maybe?


Re: Game_Sounds - Simply playing game sounds. - MP2 - 28.05.2012

Instead of 503 different functions, wouldn't it have been better to make

PlaySoundClip(playerid, "sound_name"); or something?


WoodPecker - faff - 28.05.2012

Quote:
Originally Posted by WoodPecker
Посмотреть сообщение
This is a nice filterscript, thank you for your hard job man.
Its not a filterscript, but thx!

Last up...

The website is not completed yet... sorry.

But i think its ready 30/06/2012

Gr, Faff

Updated.


Re: Game_Sounds - Simply playing game sounds. - [MM]18240[FMB] - 28.07.2012

Lovely, just lovely.


Re: Game_Sounds - Simply playing game sounds. - Kalroz - 28.07.2012

Pretty nice to use this stuff.

How do we get the playersound id's.
Is there any website where we could play samp sounds and get its id.


Re: Game_Sounds - Simply playing game sounds. - Maxips2 - 28.07.2012

Nice job, however 2 notes:
pastebin link for 1.0.1 is broken, and as mentioned before it would be easier and convinient if you would do it like this:

pawn Код:
PlayerPlayGameSound(playerid, soundid);
and for the soundid you could make defines i.e:

pawn Код:
#define SOUND_FIRSTBLOOD (0)
And to use it, you would do:

pawn Код:
PlayerPlayGameSound(playerid, SOUND_FIRSTBLOOD);



Re: Game_Sounds - Simply playing game sounds. - faff - 17.06.2013

Include back in development.

Update over 2 days.

(Include will be an part for the event system from LSC-RP)


Re: Game_Sounds - Simply playing game sounds. - Jochemd - 18.06.2013

Perhaps nice for lazy people but this is nothing special, not even well scripted. I don't get why people post positive comments


Re: Game_Sounds - Simply playing game sounds. - SwisherSweet - 18.06.2013

i like it, nice


Re: Game_Sounds - Simply playing game sounds. - SwisherSweet - 18.06.2013

nevermind i just looked into the script, it's poorly scripted and everytime it makes a sound it will show like Audio strem fromite bla bla bla it will get anoying


Re: Game_Sounds - Simply playing game sounds. - satafinix - 29.04.2014

cool Thanks,