Thread: mapvote
View Single Post
georgy
Member
Join Date: Dec 2008
Old 03-25-2009 , 16:34   Re: mapvote
Reply With Quote #457

zerak, thank for DisplayVote.sp and completion of a code mapchooser.sp, I used the most part from a code created by you. But as to a sound I have solved this problem easier, used standard sounds mani_admin as at the majority of users they already are. In section of processing rtv I have removed a part of a code, prevented to deduce result of voting. If you not against it is possible to try to decide a problem of creation and check of a code in common though I only and begin acquaintance with скриптами sourcenod, it is interesting to me...

sound filesI have organized loading as follows:
Quote:

//added
#include <sdktools>
..........
..........

public OnStartMap()
{
AddFileToDownloadstable("sound/admin_plugin/startyourvoting.mp3");//added
AddFileToDownloadstable("sound/admin_plugin/endofvote.mp3");//added

PrecacheSound("admin_plugin/startyourvoting.mp3");//added
PrecacheSound("admin_plugin/endofvote.mp3");//added
}
..........
..........
..........
your code-->-->
..........
EmitSoundToAll("admin_plugin/endofvote.mp3");//added
My file mapchuser with addition of your skript for use in standart sourcemod environment:
Attached Files
File Type: sp Get Plugin or Get Source (mapchooser.sp - 523 views - 35.4 KB)
__________________
In Game Shacal_rus

Last edited by georgy; 03-26-2009 at 17:14.
georgy is offline