[Ajuda] /Contratos
#6

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
Qual a funзгo responsбvel para atribuir um contrato no jogador?
E como vocк faz pra saber quem estб com contrato?
Vitima[alvoid] = 1; // Identifica se um player estб ou nгo com contrato

Novo /Contrato (https://sampforum.blast.hk/showthread.php?tid=479454 comecei a usar esse tуpico como base.)
Код:
CMD:contrato(playerid,params[])
{
    new alvoid, str[128], grana, Name[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
	if(sscanf(params,"ui", alvoid, grana)) return SendClientMessage(playerid,-1,"[ x ] Uso correto: /Contrato [ Alvo ID ] [ Quantia ]");
	if(GetPlayerMoney(playerid)<grana) return SendClientMessage(playerid, COLOR_ERRO,"[ x ] Vocк nгo tem essa quantia!");
	if(grana < 500 || grana > 10000) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Mнnimo: 500R$ Mбximo: 15000R$");
	Vitima[alvoid] = 1;
	GetPlayerName(playerid, Name, sizeof(Name));
	GetPlayerName(alvoid, Name2, sizeof(Name2));
	format(str, sizeof(str),"{FFFFFF}%s[%d] {BDB76B}Colocou um contrato de {FFFFFF}%i {BDB76B}em {FFFFFF}%s[%d]", Name, playerid, grana, Name2, alvoid);
	SendClientMessageToAll(COLOR_MARROMCLARO, str);
	SetPVarInt(playerid, "hitmanmoney", grana);
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	    if(i==playerid)
	    {
	        cAssassino[i] = 1;
	    }
	}
	return 1;
}
Reply


Messages In This Thread
/Contratos - by Hunterx157 - 15.05.2018, 22:37
Re: /Contratos - by Hunterx157 - 16.05.2018, 02:02
Re: /Contratos - by FerrariL - 16.05.2018, 02:57
Re: /Contratos - by Hunterx157 - 16.05.2018, 02:58
Re: /Contratos - by ipsLuan - 16.05.2018, 10:56
Re: /Contratos - by Hunterx157 - 16.05.2018, 14:01
Re: /Contratos - by ipsLuan - 16.05.2018, 14:52
Re: /Contratos - by Hunterx157 - 16.05.2018, 15:11
Re: /Contratos - by ipsLuan - 16.05.2018, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)