[Ajuda] Comando /prende
#1

alguem pode mim ajuda ja tentei de tudo

tipo eu sou admin e quero punir um jogador por DB e usarei /bust id tempo e motivo

mais nao ta indo

codigo:

Код:
if(strcmp(cmd, "/bust", true) == 0)
	{
		format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
		if(dini_Int(file, "aAdmin") == 1)
		{
            new plid, motivo[256];
			if(sscanf(cmdtext, "s[7]us[256]", cmd, plid, motivo))
			{
				SendClientMessage(playerid, Vermelho, "Use: /bust [id] Motivo");
				return 1;
			}
			if(!IsPlayerConnected(plid))
			{
				SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
			}
			else
			{
    		if(GetDistanceBetweenPlayers(plid, playerid) < 100000)
				{
					if(Procurados[plid] == 0)
					{
						PrenderPlayer(plid);
						format(string, sizeof(string), "O(A) jogador(a) %s Foi Preso por %s. Motivo: %s ", GetPlayerNameEx(plid), GetPlayerNameEx(playerid), motivo);
						SendClientMessage(plid, Blue, string);
					}
				}
			}
		}
		else
		{
			SendClientMessage(playerid, Vermelho, "Apenas Admins podem usar este comando!");
		}
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)