Raised This Month: $66 Target: $400
 16% 

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 , 02: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 02:04.
rodrigo286 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-12-2015 , 02: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.
__________________
Am I back? Well, we'll see.

Last edited by Powerlord; 07-12-2015 at 02:39.
Powerlord is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 07-12-2015 , 03: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 , 05: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 05: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 , 12: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 12:50.
rodrigo286 is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-12-2015 , 13: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 , 14: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


Thread Tools
Display Modes

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 14:32.


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