[Ajuda] Bug moeda secundaria
#1

Olб galera estou com um probleminha se alguem tiver disposto a ajudar agradeзo,meu problema й o seguinte: se eu der alguma moeda ao player "exemplo 0" todos player que entrar com id "0" vai receber basta entrar e sair varias vezes que vai ganhar moedas
Код:
if(strcmp(cmd, "/darouro", true) == 0)
	{
	    if(IsPlayerConnected(playerid) && gPlayerLogged[playerid])
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /darOuro [playerid/Parte-do-Nick] [Quantidade]");
				return 1;
			}
			new playa;
			new money;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			money = strval(tmp);
			new nome[24];
            GetPlayerName(playerid, nome, sizeof nome);
			if(IsPlayerConnected(playa))
			{
			    if(playa != INVALID_PLAYER_ID)
			     {
			            if (PlayerInfo[playerid][pAdmin] >= 5)
	                    {
			            ConsumingMoney[playa] = 1;
			            format(string, sizeof(string), "{FF0000}[BRA] {00FFFF}Admin: {FF0000}%s {00FFFF}deu Ouro a {FF0000}%s {00FFFF}no valor de {FF0000}%d", PlayerName(playerid), PlayerName(playa), money);
			            SendClientMessage(playa, COLOR_AZULBB, string);
						GivePlayerGP(playa, money);
						PayLog(gstring);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "{FF0000}Vocк nгo esta autorizado a usar este comando!");
			}
		}
		return 1;
	}
Reply


Messages In This Thread
Bug moeda secundaria - by merloch - 07.06.2014, 23:54
Re: Bug moeda secundaria - by lKoDlFuLLaNNo - 08.06.2014, 07:08
Re: Bug moeda secundaria - by Stronda xD - 08.06.2014, 12:32
Re: Bug moeda secundaria - by PT - 08.06.2014, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)