Raised This Month: $ Target: $400
 0% 

CallVoteFailed - UserMessage: List of "reason"s


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-09-2015 , 10:43   Re: CallVoteFailed - UserMessage: List of "reason"s
Reply With Quote #1

I don't think there's enough demand to add it to SourceMod itself and SMLIB hasn't been updated for years.

Here's a stock for it, you just have to know which reason number to pass it (which could be put into a pair of enums... one for TF2 and one for CS:GO).

PHP Code:
stock CallVoteFailed(clientreasontime)
{
    new 
Handle:message StartMessageOne("CallVoteFailed"clientUSERMSG_RELIABLE);
    if (
GetUserMessageType() == UM_Protobuf)
    {
        
PbSetInt(message"reason"reason);
        
PbSetInt(message"time"time);
    }
    else
    {
        
BfWriteByte(messagereason);
        
BfWriteShort(messagetime);
    }
    
EndMessage();

(Note: This is in the older SM syntax for compat reasons)
(Note 2: This was backported from the SM 1.7 syntax version of the NativeVotes plugin)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-09-2015 at 10:46.
Powerlord 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 18:38.


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