- 0
Problema heal
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
danut
SAlut SAMP.
Am un bug la heal, cand trag in cineva scade si creste la loc.
Am mai reparat bugul asta, am adaugat functia OnPlayerGiveDamage, dar nu o mai gasesc.
O fi de la OnPlayerTakeDamage?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid == INVALID_PLAYER_ID)
{
RealHealth[playerid] -= amount;
SetPlayerHealthEx(playerid,RealHealth[playerid]);
}
if(issuerid != INVALID_PLAYER_ID)
{
SetPlayerHealthEx(playerid,RealHealth[playerid]);
if(GetPlayerCameraMode(issuerid) != 53 || !IsPlayerConnected(issuerid)) return 1;
if(weaponid == 24 || weaponid == 25)
{
{
new targetplayer = GetPlayerTargetPlayer(issuerid);
if(targetplayer == INVALID_PLAYER_ID)
{
new name[50];
new string[256];
GetPlayerName(issuerid,name,50);
format(string,256,"AdmWarning: %s (%d) might be using joypad (/recon %d)",name,issuerid,issuerid);
ABroadCast(COLOR_LIGHTRED,string,1);
return 1;
}
}
}
}
return 1;
}
4 answers to this question
Recommended Posts