[FilterScript] Name Change System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Name Change System (
/showthread.php?tid=366532)
Name Change System -
popystone - 06.08.2012
I have been searching for a filterscript that can allow players to pay and change their names while in game when they go to the city hall.
Can someone help me with this?
Re: Name Change System -
Gamer_007 - 07.08.2012
u can make it like u use /v cmd for vehicle and if u dont have money.It says low money.Use that logic. and if the player have sufficient money then it sets their names.But i recommend not to use bcz it will result in great spam of score,cash,etc.
Re: Name Change System -
popystone - 07.08.2012
Quote:
Originally Posted by Gamer_007
u can make it like u use /v cmd for vehicle and if u dont have money.It says low money.Use that logic. and if the player have sufficient money then it sets their names.But i recommend not to use bcz it will result in great spam of score,cash,etc.
|
ok thanks but the problem is i am not a good scripter.
Re: Name Change System -
Wesley221 - 07.08.2012
pawn Код:
#include <a_samp>
#include <ysi\y_commands>
#include <sscanf2>
CMD:buyname(playerid, params[])
{
new nName[24];
if( !sscanf( params, "s[24]", nName ) )
{
new string[128];
switch( SetPlayerName(playerid, nName ) )
{
case -1: format( string, sizeof string, "Unable to change your name, someone else is known as '%s' already.", nName );
case 0: format( string, sizeof string, "You are already known as '%s'", nName );
case 1: format( string, sizeof string, "You are now known as '%s'", nName );
}
SendClientMessage( playerid, -1, string );
}
else return SendClientMessage( playerid, -1, "Usage: /buyname <name>" );
return 1;
}
The only thing you have to do, is to check their position if theyre in the mall and if they have enough money or not.
Re: Name Change System -
Dev. - 07.08.2012
Thanks wes
Re: Name Change System -
popystone - 09.08.2012
Quote:
Originally Posted by Wesley221
pawn Код:
#include <a_samp> #include <ysi\y_commands> #include <sscanf2>
CMD:buyname(playerid, params[]) { new nName[24]; if( !sscanf( params, "s[24]", nName ) ) { new string[128]; switch( SetPlayerName(playerid, nName ) ) { case -1: format( string, sizeof string, "Unable to change your name, someone else is known as '%s' already.", nName ); case 0: format( string, sizeof string, "You are already known as '%s'", nName ); case 1: format( string, sizeof string, "You are now known as '%s'", nName ); } SendClientMessage( playerid, -1, string ); } else return SendClientMessage( playerid, -1, "Usage: /buyname <name>" ); return 1; }
The only thing you have to do, is to check their position if theyre in the mall and if they have enough money or not.
|
Thanks man for your help
rep+2
Re: Name Change System -
Grizzli - 27.11.2013
If Only somebody could make this:
cmd

example)/namechange
now IfPlayerIsInRangeOfPoin(now here co-ordinates where would 3d text and pickup be) =)
Re: Name Change System -
FlawPaw - 28.11.2013
Quote:
Originally Posted by Grizzli
If Only somebody could make this:
cmd  example)/namechange
now IfPlayerIsInRangeOfPoin(now here co-ordinates where would 3d text and pickup be) =)
|
Hijacking and bumping a topic from the 2012 won't do you any good. Just post it in the scripting discussion section, it's not that hard.
Re: Name Change System -
$Marco$ - 30.11.2013
Quote:
Originally Posted by FlawPaw
Hijacking and bumping a topic from the 2012 won't do you any good. Just post it in the scripting discussion section, it's not that hard.
|
Its his second bump he made.
First one was from
2010 now from
2012.