Is this possible ?? - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is this possible ?? (
/showthread.php?tid=74605)
Is this possible ?? -
*BueNoOo* - 24.04.2009
Hello again
I have a little question, is this possible to make something like adding a gang tag into a players name by typing a command ?
Like for example players name is Madafaka and when he types /ballaz it adds a gang tag in front of his name so his name would be [Ballaz]Madafaka
is this possible ? can you help me to make something like this please ??

Thank you !
Re: Is this possible ?? -
Bearfist - 24.04.2009
Don't know if it works but try -->
Код:
if(strcmp("/ballaz",cmdtext,true) == 0)
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s [ballaz]",name);
SetPlayerName(playerid,string);
return 1;
}
MFG Bearfist
Re: Is this possible ?? -
CruncH - 24.04.2009
Код:
if(!strcmp("/ballaz",cmdtext,true))
{
new playername[24],string[50];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"[Ballaz]%s",playername);
return SetPlayerName(playerid,string);
}
Re: Is this possible ?? -
*BueNoOo* - 24.04.2009
Thanks a lot ! it works CruncH ! and how can i make something like by typing a command get back to the previous name ??:> from [Ballaz]Madafaka to MAdafaka again ??:> thanks again

:P