Raised This Month: $32 Target: $400
 8% 

KeyHintText on CSGO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 07-12-2015 , 01:04   KeyHintText on CSGO
Reply With Quote #1

This dont work anymore on CSGO?

PHP Code:
new Handle:hBuffer StartMessageOne("KeyHintText"client); 
BfWriteByte(hBuffer1); 
BfWriteString(hBufferszText); 
EndMessage(); 
I get this error below:

PHP Code:
unable to execute a new message there is already one in progress 
I search on the forum, but not found solution for me, because i use some format parameters like \n special caracters and symbols.

Thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 07-12-2015 at 01:04.
rodrigo286 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-12-2015 , 01:39   Re: KeyHintText on CSGO
Reply With Quote #2

You could never start a new usermessage while one is still going on. Use RequestFrame or a Timer to delay it.

Not only that, but BfWriteByte and BfWriteString don't work on CSGO anyway.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-12-2015 at 01:39.
Powerlord is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 07-12-2015 , 02:01   Re: KeyHintText on CSGO
Reply With Quote #3

Also KeyHintText didn't exist in CS:GO last I saw.
necavi is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 07-12-2015 , 04:23   Re: KeyHintText on CSGO
Reply With Quote #4

CSGO use Protobuf, so you have to use Protobuf instead of bitbuffer.
about the usermessage, you can see at CSGO sdk, and the path will be here:
X:/alliedmodders/hl2sdk-csgo/public/game/shared/csgo/protobuf/cstrike15_usermessages.proto

edited:
also, you can run the CS:GO client side with dev mode, and then you can see whether the usermesssage is valid or not.
__________________
QQ:116268742

Last edited by K.K.Lv; 07-12-2015 at 04:26.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 07-12-2015 , 11:32   Re: KeyHintText on CSGO
Reply With Quote #5

Dont work again

Same error.

I've tested with some method but only VGUIMenu works, but message go to MOTD.

https://hg.alliedmods.net/hl2sdks/hl...ges.proto#l137

PHP Code:
public PlayerSpawnEvent(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));

    if(
IsValidClient(client))
    {
        
CreateTimer(1.0PrintTimeEntclientTIMER_REPEAT);
    }
}

public 
Action:PrintTimeEnt(Handle:timerany:client)
{
    if(
IsValidClient(client))
    {
        
GetClientPlayWithZombieOrHuman(client);
        
GetRoundMode();

        
ZPS_GetPlayerRank(clientsInfo[client], sizeof(sInfo[]));

        
decl String:szText[250]; 
        
Format(szTextsizeof(szText), "■ Zombie Plague Source ■\n■■■■■■■■■■■■■■■\n \nHumanos: %d | Zombies: %d\n----------\nBanco: %d | Inventario: %i AP's\n----------\n%s | %s\n----------\nLasermine restando: %d\n----------\nEXP: %d | %s"CountHumansAlive(), CountZMsAlive(), ZPS_GetAmmoPacksInBank(client), ZPS_GetAmmoPacksInInventory(client), InfPlayerZMOrHuman[client], InfRoundModeZPS_GetRemainingLaserMines(client), ZPS_GetPlayerExp(client), sInfo[client]);
        
        new 
Handle:pb StartMessageOne("HudText"client);

        
PbSetString(pb"name""info");
        
PbSetBool(pb"show"true);

        new 
Handle:subkey;

        
subkey PbAddMessage(pb"subkeys");
        
PbSetString(subkey"name""msg");
        
PbSetString(subkey"str"szText);

        
EndMessage();
    }

Thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 07-12-2015 at 11:50.
rodrigo286 is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-12-2015 , 12:48   Re: KeyHintText on CSGO
Reply With Quote #6

Some other plugin might not be calling EndMessage properly
Miu is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 07-12-2015 , 13:49   Re: KeyHintText on CSGO
Reply With Quote #7

There is no plugin doing it.

Only this plugin and default SourceMod plugins.

Thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 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 01:18.


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