[Pedido] Como Criar Um Pickup de dano mostra qnd perdeu o colete ou a vida :D (TEM PRINT)
#1

Ae alguem sabe olha o print ae me ajudem
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

ID do Objeto para criar: 1240

Acredito que isso acima funcione /\
Reply
#3

no topo

Код:
new Float:pHealth[MAX_PLAYERS];
new Float:pArmour[MAX_PLAYERS];
coloca no onplayerupdate

Код:
	static Float:health, Float:armour;
	GetPlayerHealth(playerid, health);
	GetPlayerArmour(playerid, armour);
	if(pArmour[playerid] > armour)
	{
		new obj = CreateObject(1242, 0, 0, 0, 0, 0, 0);
		AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0);
		SetTimerEx("DestroyObjectEx", 200, false, "i", obj);
		PlayerPlaySound(playerid, 17805, 0, 0, 0);

	}
	if(pHealth[playerid] > health)
	{
		
		new obj = CreateObject(1240, 0, 0, 0, 0, 0, 0);
		AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0);
		SetTimerEx("DestroyObjectEx", 200, false, "i", obj);
		PlayerPlaySound(playerid, 17805, 0, 0, 0);
	}
	pHealth[playerid] = health;
	pArmour[playerid] = armour;
nгo sei se funciona, nгo to com tempo pra testar :*
Reply
#4

Quote:
Originally Posted by Lukinhas_Ice
Посмотреть сообщение
no topo

Код:
new Float:pHealth[MAX_PLAYERS];
new Float:pArmour[MAX_PLAYERS];
coloca no onplayerupdate

Код:
	static Float:health, Float:armour;
	GetPlayerHealth(playerid, health);
	GetPlayerArmour(playerid, armour);
	if(pArmour[playerid] > armour)
	{
		new obj = CreateObject(1242, 0, 0, 0, 0, 0, 0);
		AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0);
		SetTimerEx("DestroyObjectEx", 200, false, "i", obj);
		PlayerPlaySound(playerid, 17805, 0, 0, 0);

	}
	if(pHealth[playerid] > health)
	{
		
		new obj = CreateObject(1240, 0, 0, 0, 0, 0, 0);
		AttachObjectToPlayer(obj, playerid, 0, 0, 1.5, 0, 0 , 0);
		SetTimerEx("DestroyObjectEx", 200, false, "i", obj);
		PlayerPlaySound(playerid, 17805, 0, 0, 0);
	}
	pHealth[playerid] = health;
	pArmour[playerid] = armour;
nгo sei se funciona, nгo to com tempo pra testar :*
ctrl c + ctrl v

Ta faltando coisas aн...
Reply
#5

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
ctrl c + ctrl v

Ta faltando coisas aн...
diz o que falta em tгo ..

eh, dei ctrl c and ctrl v sim, do meu gm, mais nunca cheguei a testar ..
Reply
#6

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
ctrl c + ctrl v

Ta faltando coisas aн...
oque falta me fala ae vey
Reply
#7

Quote:
Originally Posted by joaosvrenegado
Посмотреть сообщение
oque falta me fala ae vey
DestroyObjectEx ...


@topic windows 8 ^^
Reply
#8

Quote:
Originally Posted by Schocc
Посмотреть сообщение
DestroyObjectEx ...


@topic windows 8 ^^
como pou poe o codigo
Reply
#9

Quote:
Originally Posted by Lukinhas_Ice
Посмотреть сообщение
diz o que falta em tгo ..

eh, dei ctrl c and ctrl v sim, do meu gm, mais nunca cheguei a testar ..
Eu dei uma saidinha, rзrз.

Enfim, vocк fez um Timer, mas nгo criou a callback, rзrз'
Reply
#10

Ativa teu Windows e a 1° Coisa a fazer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)