Jump to content
  • 0

Comanda /givelevelall



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);
			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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.