Accent
#1

Someone have the command /accent? for example when writing the command "/accent" and to write in chat "Firstname_Lastname says: [Gangsta Accent] bla bla bla"

Reply
#2

Someone help me ?
Reply
#3

Okay, please delete the topic (
Reply
#4

Search or ask in the script request topic.
Reply
#5

Aww here you go :
Код:
if(!strcmp(cmdtext,"/accent",true,7))
{
  new tmp[128],tmp2[256],Index,string[256];
  tmp=strtok(cmdtext,Index);
  tmp2=strtok(cmdtext,Index);
  if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid,0xffffffaa,"USAGE: /accent accentname text");
  if(!strcmp(tmp,"gangsta",7))
  {
   format(string,sizeof(string)," %s says: [Gansta Accent] %s",playername,tmp); // replace the playername with your player name variable
  }
  else(!strcmp(tmp,"mafia",5))
  {
   format(string,sizeof(string)," %s says: [Mafia Accent] %s",playername,tmp2); // just another example on how to add accents
  }
  SendClientMessageToAll(0xffffffaa,string);
  return 1;
}
With the above code: You have to type the accent name everytime you speak with /accent.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)