Jump to content
  • 0

scad bani


TheDanutzelu

Question

3 answers to this question

Recommended Posts

Pune comanda de mai jos si vezi daca la fel face..(din cate stiu SGM folosea LuxAdmin)

Inlocuiesti cmd aia cu cea de jos si vezi daca merge

Si ar putea sa iti scada din cauza sa nu dai /setallcash 9999999999999("n" de 9 si atunci ti da  cu -)

cand o probezi pe asta da /setallcash 0 si dupa /setallcash 50 (0 ca sa fie 0 bani ; 50 ca sa vezi daca ii da in crestere)

dcmd_setallcash(playerid,params[])
{
	if(AccInfo[playerid][Level] >= 3)
	{
	    if(!strlen(params)) return
	    SendClientMessage(playerid, LIGHTBLUE2, "Usage: /setallcash [Value]") &&
		SendClientMessage(playerid, orange, "Function: Will set a specified value in Money for all players");
		new var = strval(params), string[128];
       	SendCommandToAdmins(playerid,"SetAllCash");
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				PlayerPlaySound(i,1057,0.0,0.0,0.0);
				ResetPlayerMoney(i);
				GivePlayerMoney(i,var);
			}
		}
		format(string,sizeof(string),"|- Administrator \"%s\" has set all Players Cash to '$%d' -|", pName(playerid), var );
		return SendClientMessageToAll(blue, string);
	}
	else return ErrorMessages(playerid, 1);
}

468833_437698_362328_hiphop.jpg
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.