Jump to content
  • 0

Cand setez clantag nu schimba si numele din TAB


AddisoN

Question

7 answers to this question

Recommended Posts

  • 0

esti sigur ca atunci cand pui tagul, gen TAGmr.zeth sau mr.zethTAG  apare doar in tab asa iar in stats si textdraw nu apare decat mr.zeth ?

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
12 hours ago, AddisoN said:

 

E invers apare in stat si id dar pe tab nu

cum ii setezi numele?

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0
1 hour ago, DaEdRiC-FoX said:

cum ii setezi numele?

Cu SetPlayerName.

  1. if(dialogid == DIALOG_CLAN_TAG)
  2.     {
  3.             if(!response)
  4.             {
  5.                 ShowPlayerDialog(playerid, DIALOG_CLAN, DIALOG_STYLE_LIST,"Clan", "Clan Help\nClan Members\nClan Settings\nClan Tag", "Select", "Close");
  6.             }
  7.             else
  8.             {
  9.                 if(PlayerInfo[playerid][pClan] >= 1)
  10.                 {
  11.                     new str111[256],stringname[128],strings[128];
  12.                     if(listitem == 0)
  13.                     {//fara tag
  14.                         SetPlayerName(playerid,PlayerInfo[playerid][pNormalName]);
  15.                         PlayerInfo[playerid][pClanTag]=0;
  16.                         mysql_format(SQL, str111, sizeof(str111), "UPDATE users SET `ClanTag`='0' WHERE `id`='%i'", PlayerInfo[playerid][pSQLID]);
  17.                         mysql_tquery(SQL,str111,"","");
  18.                         format(strings,sizeof(strings),"Your nickname is now: %s",PlayerInfo[playerid][pNormalName]);
  19.                         SendClientMessage(playerid, COLOR_GENANNOUNCE, strings);
  20.                         format(stringname,sizeof(stringname),"%s ",PlayerInfo[playerid][pNormalName]);
  21.                         PlayerTextDrawSetString(playerid, logo[playerid], stringname);
  22.                         PlayerTextDrawShow(playerid, logo[playerid]);
  23.                     }
  24.                     else if(listitem == 1)
  25.                     {//tag-ul primu
  26.                         new szname[25];
  27.                        format(szname,sizeof(szname),"|%s|%s",ClanInfo[PlayerInfo[playerid][pClan]][cClanTag],PlayerInfo[playerid][pNormalName]);
  28.                         SetPlayerName(playerid,szname);
  29.                         PlayerInfo[playerid][pClanTag] = 1;
  30.                         mysql_format(SQL, str111, sizeof(str111), "UPDATE users SET `ClanTag`='1' WHERE `id`='%i'", PlayerInfo[playerid][pSQLID]);
  31.                         mysql_tquery(SQL,str111,"","");
  32.                         format(strings,sizeof(strings),"Your nickname is now: %s",szname);
  33.                         SendClientMessage(playerid, COLOR_GENANNOUNCE, strings);
  34.                         format(stringname,sizeof(stringname),"%s ",szname);
  35.                         PlayerTextDrawSetString(playerid, logo[playerid], stringname);
  36.                         PlayerTextDrawShow(playerid, logo[playerid]);
  37.                     }
  38.                     else if(listitem == 2)
  39.                     {//tagul al doilea
  40.                         new szname[25];
  41.                        format(szname,sizeof(szname),"%s|%s|",PlayerInfo[playerid][pNormalName],ClanInfo[PlayerInfo[playerid][pClan]][cClanTag]);
  42.                         SetPlayerName(playerid,szname);
  43.                         PlayerInfo[playerid][pClanTag] = 2;
  44.                         mysql_format(SQL, str111, sizeof(str111), "UPDATE users SET `ClanTag`='2' WHERE `id`='%i'", PlayerInfo[playerid][pSQLID]);
  45.                         mysql_tquery(SQL,str111,"","");
  46.                         format(strings,sizeof(strings),"Your nickname is now: %s",szname);
  47.                         SendClientMessage(playerid, COLOR_GENANNOUNCE, strings);
  48.                         format(stringname,sizeof(stringname),"%s ",szname);
  49.                         PlayerTextDrawSetString(playerid, logo[playerid], stringname);
  50.                         PlayerTextDrawShow(playerid, logo[playerid]);
  51.                     }
  52.                    
  53.                    
  54.                 }
  55.                 else
  56.                 {
  57.                     hidePlayerDialog(playerid);
  58.                 }
  59.             }
  60.             return 1;
  61.         }
Link to comment
Share on other sites

  • 0
6 hours ago, DaEdRiC-FoX said:

cum ii setezi numele?

Am rescris sistemul de clanuri si am scos comanda din dialog. Tot acelasi rezultat l.am obtinut se schimba numele doar in texdraw si /id, pe TAB sau /stat aparand ce normal. La stat apare cel normal pt ca folosesc getplayername.

Nici daca dai relog nu seteaza numele in stats sau pe TAB

Cod sursa comanda: www.pastebin.com/i9xxHb9V

Cod sursa onplayerlogin: www.pastebin.com/pwK9TPxn

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.