[Pedido]Sangue Nгo mais que 100 - 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: [Pedido]Sangue Nгo mais que 100 (
/showthread.php?tid=316246)
[Pedido]Sangue Nгo mais que 100 -
makino - 05.02.2012
Gente fiz um cmd de cura ae tipo se eu quiser postar algo como:
se o life passar de 100 ele seta para 100 mas eu teria de colocar na callback onplayerupdate ? (algo assim

)
Re: [Pedido]Sangue Nгo mais que 100 -
Ricop522 - 05.02.2012
pawn Код:
public OnPlayerUpdate(playerid) {
new Float:V;
GetPlayerHealth(playerid, V);
if(V > 100) {
SetPlayerHealth(playerid, 100);
}
return 1;
}
Re: [Pedido]Sangue Nгo mais que 100 -
Enderman - 05.02.2012
с, basta vocк limitar no cmd
Geta a nova life dele depois do curar, se for maior que 100, setб para 100
Re: [Pedido]Sangue Nгo mais que 100 -
Shelby - 05.02.2012
pawn Код:
stock SetPlayerHealthEx(playerid, Float:health)
{
if(health > 100) SetPlayerHealth(playerid, 100); else SetPlayerHealth(playerid, health);
}
Apenas trocar todas as funзхes SetPlayerHealth para SetPlayerHealthEx.
Re: [Pedido]Sangue Nгo mais que 100 -
makino - 05.02.2012
ok mais aqui eu tava usando um cmd de ultra soco (v6 devem conhecer ) que era ae onplayerupdate e isso bugava meu gm todo '-' o player que entrava ficava parado na minha tela e andando na dele '-' nao sei se isso vai continuar '-' mais vou tentar desculpem por muitos '-' e mania

'-'