Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Salutare,vreau sa cer celui care are un script de tag-uri,sau un sistem de prefix pt SA:MP.Adica sa scrie gen:

Politist AlexMaican spune:
Agent S.R.I AlexMaican spune:
 

etc..imi poate zice cineva? P;S: server-ul meu are 17 factiuni. 

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

La public OnPlayerText , adaugi ceva de genul :

 

if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
    new string[144];
    format(string, sizeof(string), "Politist %s spune: %s", pName, text);
    ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOW_WHITE);
    SetPlayerChatBubble(playerid, string); // Asta daca vrei sa apara deasupra capului ce scrie .
}

Si faci asa pentru fiecare factiune . La OnPlayerText ar trebui sa ai definite variabilele string , pName si text . Si vezi ca ai postat la categoria gresita, eventual puteai face o cerere tutorial ...

Edited by NoNamed
  • 0
Posted (edited)
new NumeFactiuni[][] =
{
    "Civil",
    "Nume Factiunea 1",
    "Nume Factiunea 2",
    " Etc..."

};
if(PlayerInfo[playerid][pLeader] >= 1)
{
    new string[144];
    format(string, sizeof(string), "%s %s spune: %s", NumeFactiuni[PlayerInfo[playerid][pLeader]],pName, text);
    ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOW_WHITE);
    SetPlayerChatBubble(playerid, string); // Asta daca vrei sa apara deasupra capului ce scrie .
}

else if(PlayerInfo[playerid][pMember] >= 0)

{
    new string[144];
    format(string, sizeof(string), "%s %s spune: %s", NumeFactiuni[PlayerInfo[playerid][pMember]],pName, text);
    ProxDetector(30.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOW_WHITE);
    SetPlayerChatBubble(playerid, string); // Asta daca vrei sa apara deasupra capului ce scrie .
}

 

Ceva mai simplu ,zic eu ..
P.S. La nume factiuni adaugi numele factiunilor tale

Edited by Neooooo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.