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

Help clear my nickname


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UA_Sooder
New Member
Join Date: Mar 2023
Location: Ukraine
Old 03-06-2023 , 04:00   Help clear my nickname
Reply With Quote #1

char sName[128];
GetClientName(client, sName, sizeof(sName));

Help, pleas!!!

Tell me how to remove from sName

"Nick drop.gg" remove only drop.gg
or "drop.gg Nick" or "drop.gg-Nick"

Last edited by UA_Sooder; 03-06-2023 at 04:01.
UA_Sooder is offline
AePT
Member
Join Date: Jan 2016
Old 03-06-2023 , 10:29   Re: Help clear my nickname
Reply With Quote #2

You could try this.

https://github.com/Totenfluch/SmartLinkRemover
AePT is offline
bayshades
Member
Join Date: Sep 2019
Old 03-17-2023 , 10:22   Re: Help clear my nickname
Reply With Quote #3

PHP Code:
char sName[128];
GetClientName(clientsNamesizeof(sName));

charpDropGG strstr(sName"drop.gg"); // Find the position of "drop.gg" in sName

if (pDropGG != NULL) {
    
memmove(pDropGGpDropGG strlen("drop.gg"), strlen(pDropGG strlen("drop.gg")) + 1); // Remove "drop.gg" from sName
}

printf("Client name without drop.gg: %s\n"sName); 
bayshades 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 10:29.


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