[Ajuda] Como tirar skinshot no pawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Como tirar skinshot no pawn (
/showthread.php?tid=526687)
Como tirar skinshot no pawn -
LKING - 18.07.2014
Bem eu tenho no meu Gamemode skinshot e eu queria por o Gamemode em Lagshot. Jб editei o lagcomp no server.cfg e estб igual com a skinshot. Alguem me ajuda?
Re: Como tirar skinshot no pawn -
Gabriel10101 - 18.07.2014
Procure na public OnPlayerGiveDamage.
Re: Como tirar skinshot no pawn -
LKING - 18.07.2014
esta aqui
Quote:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(Aj[playerid] == false && GetPlayerSpecialAction(playerid) == 2) return SetPlayerHealth(playerid,0);
switch(weaponid)
{
case 24: amount = 32;
case 9: amount = 10;
case 38: amount = 0;
}
if(Morto[damagedid] == true) return 1;
if(Lagduel[damagedid] == true) return 1;
PlayerPlaySound(damagedid,6401,0,0,0);
new Float:Life, Float:Coleete, Float ano;
GetPlayerArmour(damagedid,Coleete);
GetPlayerHealth(damagedid,Life);
if(Coleete > 0)
{
if(amount > Coleete)
{
Dano = amount - Coleete;
Life = Life - Dano;
SetPlayerArmour(damagedid, 0.0);
SetPlayerHealth(damagedid, Life);
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
return 1;
}
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
Coleete = Coleete - amount;
SetPlayerArmour(damagedid, Coleete);
}
if(Coleete < 1)
{
Life = Life - amount;
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
SetPlayerHealth(damagedid, Life);
if(Life <= 0)
{
Morto[damagedid] = true;
SendDeathMessage(playerid,damagedid,weaponid);
DeadPlayer(damagedid,playerid,weaponid);
}
}
return 1;
}
|
Re: Como tirar skinshot no pawn -
LKING - 18.07.2014
Ajuda sff urgente
Re: Como tirar skinshot no pawn -
ViniBorn - 19.07.2014
Todos esses SetPlayerHealth e GetPlayerHealth devem ser os responsбveis.
Se vocк tirб-los deve funcionar
Re: Como tirar skinshot no pawn -
LKING - 19.07.2014
se eu tirar o public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) fica sem o skinshot?
Re: Como tirar skinshot no pawn -
ViniBorn - 19.07.2014
Sim...
Re: Como tirar skinshot no pawn -
LKING - 19.07.2014
Obrigado. Mais uma coisa como ponho o som do plim quando acerto em alguem
Re: Como tirar skinshot no pawn -
Jardell - 20.07.2014
Quote:
Originally Posted by LKING
Obrigado. Mais uma coisa como ponho o som do plim quando acerto em alguem
|
Prуxima vez, por favor, usa o search, a tag й "som de sino" ou atй mesmo procura no ******.
https://sampforum.blast.hk/showthread.php?tid=431939
https://sampforum.blast.hk/showthread.php?tid=468721
https://sampforum.blast.hk/showthread.php?tid=468091
https://sampforum.blast.hk/showthread.php?tid=406422
https://sampforum.blast.hk/showthread.php?pid=2731367#pid2731367
Atй outra hora, abraзo.