[Ajuda] quando soltar o player sair algemado
#9

Код:
if(strcmp(cmd, "/soltar", true) == 0) {
	if(soltou[playerid] == 1) return SendClientMessage(playerid, Vermelho, "| ERRO | Aguarde 1 minuto para soltar novamente!");
	new aname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
	format(file, sizeof(file), PASTA_CONTAS, PlayerName(playerid));
	if(PlayerInfo[ playerid][pProfissao] == Advogado || PlayerInfo[ playerid][pProfissao] == Prefeito || guardiao[playerid] || pAdmin[playerid] >= 1 || IsPlayerAdmin(playerid)){
	new plid;
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp)){
	SendClientMessage(playerid, Vermelho, "/soltar [id]");
	return 1;
	}
	plid = strval(tmp);
	if(!IsPlayerConnected(plid)){
	SendClientMessage(playerid, Vermelho, "| ERRO | Jogador nгo conectado.");
	return 1;
	}
	if(playerid == plid){
	SendClientMessage(playerid, Vermelho, " | ERRO | Vocк nгo pode usar este comando em vocк mesmo. Chame um advogado.!");
	return 1 ;
	}
	if(preso[plid] == 0){
	SendClientMessage(playerid, Vermelho, " | ERRO | Este jogador Nгo estб Preso Verifique o [ID] certo.!");
	return 1;
	} else {
	new pname[MAX_PLAYER_NAME];
	GetPlayerName(plid, pname, MAX_PLAYER_NAME);
	format(file2, sizeof(file2), PASTA_CONTAS, pname);
	format(string, sizeof(string), "| INFO | Vocк foi solto por '%s'.", PlayerName(playerid));
	preso [ plid ] = 0;
	SetPlayerHealth(plid,100);
	Algemado[plid] = false;
	SetPlayerPos(plid, 268.394561,77.728500,1001.039062);
	SetPlayerInterior(plid, 6);
	SetPlayerWantedLevel(plid, 0);
        SetPlayerSpecialAction(plid, SPECIAL_ACTION_NONE);
	SendClientMessage(playerid, Cinzaazulado, "| INFO | Solto com sucesso.");
	soltou[playerid] = 1;
	return 1;
	}
	} else {
	SendClientMessage(playerid,Vermelho,"| ERRO | Vocк nгo й um Advogado");
	return 1;
	}
	}
Reply


Messages In This Thread
resolvido - by chefaoBR - 11.06.2014, 00:43
Re: quando soltar o player sair algemado - by chefaoBR - 11.06.2014, 13:55
Re: quando soltar o player sair algemado - by SpeakDS - 11.06.2014, 15:02
resolvido - by chefaoBR - 11.06.2014, 15:07
resolvido - by chefaoBR - 11.06.2014, 15:09
Re: quando soltar o player sair algemado - by SpeakDS - 11.06.2014, 15:25
Re: quando soltar o player sair algemado - by chefaoBR - 11.06.2014, 15:38
Re: quando soltar o player sair algemado - by SpeakDS - 11.06.2014, 16:39
Re: quando soltar o player sair algemado - by SW1FTmeister - 11.06.2014, 16:52
Re: quando soltar o player sair algemado - by chefaoBR - 11.06.2014, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)