#1

i need chat tag like [BSS]sami_zaidi any one can help me
Reply
#2

wat you mean, you want Tag in chat?
Simply change your name like [YOURTAG]YouNameHere
Reply
#3

not only for me i want it so all can use it by using /bsstag
Reply
#4

Hello!

Well, I unterstood you false, so here is the new code:
PHP код:
new bool:TagStatus[MAX_PLAYERS];//global
if(!strcmp(cmdtext,"/bsstag",true))//OnPlayerCommandText
{
    
TagStatus[playerid] = !TagStatus[playerid];
    return 
1;
}
//OnPlayerText
new string[145],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof name);
if(
TagStatus[playerid] == true)format(string,sizeof string,"[BSS]%s: %s",name,text);
else 
format(string,sizeof string,"%s: %s",name,text); 
- Mencent
Reply
#5

PHP код:
new bool:isTagged[MAX_PLAYERS];
public 
OnPlayerCommandText(playeridcmdtext[])
{
        new 
pname[24];
        
GetPlayerName(playerid,pname,sizeof(pname));
    if (
strcmp("/bsstag"cmdtexttrue10) == 0)
    {
        if(
isTagged[playerid] == false)
            {
                     
isTagged[playerid] = true;
            }
        return 
1;
    }
    return 
0;
}
public 
OnPlayerText(playeridtext[])
{
      public 
OnPlayerText(playeridtext[])
{
    new 
pText[144];
    if(
IsTagged[playerid] == true)
    {
    
format(pTextsizeof (pText), "[TAG]%s"pnametext);
    
SendPlayerMessageToAll(playeridpText);
    }
    return 
0

Reply
#6

@KillerDVX:
What are you doing there?
PHP код:
if(isTagged[playerid] == false
            { 
                     
isTagged[vehicleid] = true
            } 
playerid, vehicleid ... What's that?!

When you want to help other people you should send a correct code or explain this with a text and without code.

- Mencent
Reply
#7

Quote:
Originally Posted by Mencent
Посмотреть сообщение
@KillerDVX:
What are you doing there?
PHP код:
if(isTagged[playerid] == false
            { 
                     
isTagged[vehicleid] = true
            } 
playerid, vehicleid ... What's that?!

When you want to help other people you should send a correct code or explain this with a text and without code.

- Mencent
Got it bugged...

isTagged[playerid] = true;
Reply
#8

thnx all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)