need help with chat
#1

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!
Reply
#2

[EDIT] Yes sorry I did not understand what you meant till your second post. I was away as well.
Reply
#3

i mean if i have nameoff command, when i write "lol" to see this: "Unknown says: lol"
you understand?
Reply
#4

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
pawn Код:
NameOff[playerid] = 1;
Add this in your /nameon command
pawn Код:
NameOff[playerid] = 0;
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;
  }
}
Reply
#5

Hi i'm interrested by the nameoff/nameon but how can i do a level minimum for that thing please?
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)