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

Comanda /givelevelall


Question

Posted

Salut, as avea nevoie de putin ajutor, am o comanda de /givelevelall, imi da level-ul, dar nu mi-l updateaza in ScoreBoard:

CMD:givelevelall(playerid, params[])
{
	if(pInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_DARKGRAY, AdminError);
	{
		new rpall,sendername[MAX_PLAYER_NAME],string[100];
		GetPlayerName(playerid, sendername, sizeof(sendername));
		if(sscanf(params, "i",rpall)) return SendSyntaxMessage(playerid, "/givelevelall [level]");
		if(rpall < 1 || rpall > 2) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Error: Too much level all is (1-2).");
		{
			format(string, sizeof(string),"{F04F7D}Owner-ul %s a oferit %d level-up tuturor jucatorilor online.",sendername,rpall);
			SendClientMessageToAll(-1,string);
			foreach(new i : Player)
			if(pInfo[i][pStatus] == 1)
			{
				pInfo[i][pScore] += rpall;
				PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
			}
		}
	}
	return 1;
}

Niste solutii cum sa se updateze si in ScoreBoard nu doar in /stats

1 answer to this question

Recommended Posts

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.