Raised This Month: $ Target: $400
 0% 

[Solved] Cut the country name on the nick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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
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