Jump to content

Question

Posted

Salut, stie cineva cum fac un sistem cu REPORTS/CHEATERS?

 

Eu am ceva facut, dar nu imi merge si nu inteleg de ce...

Screenshot_1.png

5 answers to this question

Recommended Posts

  • 0
Posted
Acum 21 ore, nobilzeusAdv a spus:

Un cod ceva?

Deci am asta pusa la new

new PlayerText: ReportsTD;

Si asta o am pusa sub tutorial(gm burned normal)

 

            }    
            if(PlayerInfo[pAdmin] >= 1) {
                new reports=0,cheaters=0,strr[128];
                foreach(Player,id)
                {
                    if(GetPVarInt(i, "Reported") == 1)  { reports++; }
                    if(GetPVarInt(i, "Reported") == 2)  { cheaters++; }
                }
                if(reports > 0)
                {
                    PlayerTextDrawShow(i, ReportsTD);
                    format(strr,sizeof(strr),"REPORTS: ~r~%d~w~ / CHEATERS: ~r~%d",reports,cheaters);
                    PlayerTextDrawSetString(i, ReportsTD, strr);
                }
                else if(reports == 0) { PlayerTextDrawHide(i, ReportsTD); }
            }
            else { PlayerTextDrawHide(i, ReportsTD); }

 

Fix asa cum e scrisa poate a uitat o paranteza cine a facuto ca eu am luato dintr-un gm burned edit.

  • 0
Posted

   foreach(Player,id)
                {
                    if(GetPVarInt(id, "Reported") == 1)  { reports++; }
                    if(GetPVarInt(id, "Reported") == 2)  { cheaters++; }
                }

încearcă asa

aqpUjAc.png

 

 

 

 

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.