Jump to content

Question

Posted

Salut! Am dat de o mica problema, si anume repetarea unui rand la /stats daca jucatorul respectiv nu e helper / admin. Am incercat sa fac sa apara Acces warn doar la cei din staff si apare cand sunt in staff, dar cand nu sunt, apare ultimul rand de doua ori adica » FishesCaught: %d • BiggestFish: %d • Warns: %d/5 • Faction Warns: %d/3

        SendClientMessage(playerid, COLOR_GREEN,"___________________________________________ Server _______________________________________");
		format(coordsstring, sizeof(coordsstring),"» Name: %s • Level: %d • Faction: %s • Rank: %s",name,plevel,ttext,rtext);
		SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» Sex: %s • Age: %d • SpawnHealth: %.1f • Cash: $%d • Bank: $%d • NumberPhone: %d", atext, age, shealth+50, cash, account, pnumber);
		SendClientMessage(playerid, COLOR_WHITE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» DonateRank: %s • PlayingHours: %d • NextLevel: %d$ • Respect: %d/%d • NumberLotto: %d", drank,ptime,expamount,exp,expamount,lotto);
		SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» TimesArrested: %d • WantedLevel: %d • MarriedTo: %s • Disease: %s", arrests,wanted,married,dtext);
		SendClientMessage(playerid, COLOR_WHITE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» Kills: %d • Deaths: %d • Drugs: %d • Materials: %d • Job: %s • Coins: %d",kills,deaths,drugs,mats,jtext,coin);
		SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» FishesCaught: %d • BiggestFish: %d • Warns: %d/5 • Faction Warns: %d/3",fishes,bigfish,warns,pfwarn);
		SendClientMessage(playerid, COLOR_WHITE,coordsstring);
		if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
		format(coordsstring, sizeof(coordsstring), "» Acces Warns: %d/4", awarns);
		SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________________________________");
	}
}

2 answers to this question

Recommended Posts

Posted

[pawn]        SendClientMessage(playerid, COLOR_GREEN,"___________________________________________ Server _______________________________________");

        format(coordsstring, sizeof(coordsstring),"» Name: %s • Level: %d • Faction: %s • Rank: %s",name,plevel,ttext,rtext);

        SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» Sex: %s • Age: %d • SpawnHealth: %.1f • Cash: $%d • Bank: $%d • NumberPhone: %d", atext, age, shealth+50, cash, account, pnumber);

        SendClientMessage(playerid, COLOR_WHITE,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» DonateRank: %s • PlayingHours: %d • NextLevel: %d$ • Respect: %d/%d • NumberLotto: %d", drank,ptime,expamount,exp,expamount,lotto);

        SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» TimesArrested: %d • WantedLevel: %d • MarriedTo: %s • Disease: %s", arrests,wanted,married,dtext);

        SendClientMessage(playerid, COLOR_WHITE,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» Kills: %d • Deaths: %d • Drugs: %d • Materials: %d • Job: %s • Coins: %d",kills,deaths,drugs,mats,jtext,coin);

        SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

        format(coordsstring, sizeof(coordsstring), "» FishesCaught: %d • BiggestFish: %d • Warns: %d/5 • Faction Warns: %d/3",fishes,bigfish,warns,pfwarn);

        SendClientMessage(playerid, COLOR_WHITE,coordsstring);

        if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)

        {

                format(coordsstring, sizeof(coordsstring), "» Acces Warns: %d/4", awarns);

                SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);

        }

        SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________________________________");

    }

}[/pawn]

incearca asta

Rate me :)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.