Quote:
Originally Posted by indraraj striker
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(NewName, charsmax(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.
__________________