Raised This Month: $ Target: $400
 0% 

[Solved] Cut the country name on the nick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 06-15-2015 , 01:34   [Solved] Cut the country name on the nick
Reply With Quote #1

Nick was
S!lenttttt
the bad killer
shadowszzz

Nick change after join the server
(India) S!lenttttt
(France) the bad killer
(Germany) shadowszzz
how to cut the country name ?

new Name[33]
get_user_name(id,Name,31)//now nick is (India) S!lenttttt
i want to erase this (India) and save on nvault his original nick
__________________
Thanks everyone. #miss_you_all

Last edited by indraraj striker; 06-15-2015 at 23:42.
indraraj striker is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 06-15-2015 , 08:04   Re: [Request] Cut the country name on the nick
Reply With Quote #2

???Country On Name
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-15-2015 , 09:37   Re: [Request] Cut the country name on the nick
Reply With Quote #3

Quote:
Originally Posted by indraraj striker View Post
Nick was
S!lenttttt
the bad killer
shadowszzz

Nick change after join the server
(India) S!lenttttt
(France) the bad killer
(Germany) shadowszzz
how to cut the country name ?

new Name[33]
get_user_name(id,Name,31)//now nick is (India) S!lenttttt
i want to erase this (India) and save on nvault his original nick
So, you still want to display the country, but you want to save without it ? Then, it is easy. Backup his name before it gets changed and use the old one when saving.
Or, if you have other plugin that change names and you don't want to edit it, you can try to remove the prefix, but it won't be 100% accurate.

PHP Code:
new Name[32], NewName[32]
copy(NewNamecharsmax(NewName), Name[contain(Name")")+1]) 
Now, NewName will have his original name. Remember that I would not recommend doing this when you have the first option, because it can be innacurate.
__________________

Last edited by HamletEagle; 06-15-2015 at 09:44.
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2015 , 21:38   Re: [Request] Cut the country name on the nick
Reply With Quote #4

Easy, use SteamID. Done.
__________________
fysiks is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 06-15-2015 , 23:29   Re: [Request] Cut the country name on the nick
Reply With Quote #5

Thanks a lot HamletEagle
__________________
Thanks everyone. #miss_you_all
indraraj striker 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 20:09.


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