SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Portugus/Portuguese

Reply
 
Thread Tools Display Modes
Old 09/08/2019, 06:50 AM   #1
iPhonee
Little Clucker
 
iPhonee's Avatar
 
Join Date: Jul 2019
Location: Brasil
Posts: 39
Reputation: 5
Exclamation Life

Algum Sabe o motivo de perder vida quando bate com o veiculo?
Aguardo a Resposta
__________________
https://discord.gg/bP25YQm
iPhonee is offline   Reply With Quote
Old 09/08/2019, 09:37 AM   #2
Andinho
Huge Clucker
 
Andinho's Avatar
 
Join Date: Apr 2016
Location: Bezerros PE
Posts: 347
Reputation: 20
Default Re: Life

Provavelvente estar aki "OnVehicleDamageStatusUpdate".
Andinho is offline   Reply With Quote
Old 09/08/2019, 12:05 PM   #3
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhus, BA
Posts: 4,571
Reputation: 332
Default Re: Life

- Verifique na callback OnPlayerVehicleDamage a existncia de algum cdigo.
ipsLuan is offline   Reply With Quote
Old 10/08/2019, 12:39 AM   #4
iPhonee
Little Clucker
 
iPhonee's Avatar
 
Join Date: Jul 2019
Location: Brasil
Posts: 39
Reputation: 5
Default Re: Life

No h OnPlayerVehicleDamage muito menos OnVehicleDamageStatusUpdate
__________________
https://discord.gg/bP25YQm
iPhonee is offline   Reply With Quote
Old 10/08/2019, 01:11 AM   #5
Felipealves
Huge Clucker
 
Felipealves's Avatar
 
Join Date: Mar 2016
Location: Paran
Posts: 456
Reputation: 25
Default Re: Life

Veja se algum FS ou Include de cinto.
__________________

CRIMINAL LIFE RPG - Imagens
Felipealves is offline   Reply With Quote
Old 10/08/2019, 03:27 AM   #6
iPhonee
Little Clucker
 
iPhonee's Avatar
 
Join Date: Jul 2019
Location: Brasil
Posts: 39
Reputation: 5
Default Re: Life

No nenhum deles! H algo semelhante tambm, quando eu dou vida todos, quem estar dentro do veiculo no ganha life e quando usa /reparar ele restaura a vida.

Ainda aguardo respostas!
__________________
https://discord.gg/bP25YQm
iPhonee is offline   Reply With Quote
Old 10/08/2019, 03:36 AM   #7
Felipealves
Huge Clucker
 
Felipealves's Avatar
 
Join Date: Mar 2016
Location: Paran
Posts: 456
Reputation: 25
Default Re: Life

Aguarda milagres n?

Que diabos de gamemode vc ta usando fi, da mais explicao, ta de sacanagem.
__________________

CRIMINAL LIFE RPG - Imagens
Felipealves is offline   Reply With Quote
Old 10/08/2019, 04:24 AM   #8
iPhonee
Little Clucker
 
iPhonee's Avatar
 
Join Date: Jul 2019
Location: Brasil
Posts: 39
Reputation: 5
Default Re: Life

Servidor Trucker, a unica explicao que perde vida depois que o veiculo sofre um dano, e quando o veiculo reparado a vida tambm regenerada.
__________________
https://discord.gg/bP25YQm
iPhonee is offline   Reply With Quote
Old 10/08/2019, 06:23 AM   #9
Felipealves
Huge Clucker
 
Felipealves's Avatar
 
Join Date: Mar 2016
Location: Paran
Posts: 456
Reputation: 25
Default Re: Life

Daahh, Procura por SetPlayerHealth, ou manda o donwload q vejo pra vc.
__________________

CRIMINAL LIFE RPG - Imagens
Felipealves is offline   Reply With Quote
Old 10/08/2019, 04:47 PM   #10
iPhonee
Little Clucker
 
iPhonee's Avatar
 
Join Date: Jul 2019
Location: Brasil
Posts: 39
Reputation: 5
Default Re: Life

Olha Downloads muito difcil de eu mandar, mas eu procurei por SetPlayerHealth, e encontrei um pouco sobre

Em public Speedometer_Update achei:
Quote:
SetPlayerHealth(playerid, vehiclehealth / 10.0);
e comando de dar vida todos temos:
Quote:
COMMAND:darvidatodos(playerid, params[])
{
new Name[24], Msg[256];
if (APlayerData[playerid][LoggedIn] == false) return 0;
if (APlayerData[playerid][PlayerLevel] < 3) return 0;
for (new i; i <= GetMaxPlayers(); i++)
if (IsPlayerConnected(i))
if (IsPlayerInAnyVehicle(i) == 0)
SetPlayerHealth(i, 100.0);
GetPlayerName(playerid, Name, sizeof(Name));
format(Msg, 256, "{a9c4e4}O {ffffff}%s %s{a9c4e4} deu vida mxima para todos do servidor.", AdminLevelName[APlayerData[playerid][PlayerLevel]], Name);
SendClientMessageToAll(0xffffffff, Msg);
return 1;
}
__________________
https://discord.gg/bP25YQm
iPhonee is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] Life Command Engine [LIFE:CMD] Kazon Plugin Development 40 16/04/2015 12:32 AM
[HELP]Battery Life and Engine Life system Mavis100 Scripting Help 1 17/05/2014 11:58 AM
[Plugin] Life Command Engine [LIFE:CMD] Kazon Релизы/Releases 22 19/03/2014 09:20 AM
[GameMode] [GameMode] Brasil Game of Life + San Andreas New Life Kalega Gamemode Scripts 25 09/10/2011 05:22 AM


All times are GMT. The time now is 06:37 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.