need help with chat - 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: need help with chat (
/showthread.php?tid=63371)
need help with chat -
DjSterios - 28.01.2009
Hello, i need help, i have the command /nameoff and i hide my nametag.but when i write something it says my name.Can i change to say "Unknown Says: ..." ?
Thanks!
Re: need help with chat -
Auto-Sized - 28.01.2009
[EDIT] Yes sorry I did not understand what you meant till your second post. I was away as well.
Re: need help with chat -
DjSterios - 28.01.2009
i mean if i have nameoff command, when i write "lol" to see this: "Unknown says: lol"
you understand?
Re: need help with chat -
ShizNator - 28.01.2009
Heres something that will do it.
Top of script under your #define add this
pawn Код:
new NameOff[MAX_PLAYERS];
Add this in your /nameoff command
Add this in your /nameon command
And finally OnPlayerText
pawn Код:
public OnPlayerText(playerid, text[])
{
new s_Send[128];
format(s_Send, 128, "%s: %s", "Unknown says", text);
if(NameOff[playerid] == 1)
{
SendClientMessageToAll(0xFFFFFFAA, s_Send);
return 0;
}
else
{
return 1;
}
}
Re: need help with chat -
davebc - 06.04.2009
Hi i'm interrested by the nameoff/nameon but how can i do a level minimum for that thing please?
Re: need help with chat -
dre$tA - 06.04.2009
Quote:
Originally Posted by davebc
Hi i'm interrested by the nameoff/nameon but how can i do a level minimum for that thing please?
|
You need to tell us about your level system & it's variables. Or even better, when you get interested in things, why not to learn script them by yourself?
http://wiki.sa-mp.com Or quit scripting at all.