- 0
Problema heal
-
Similar Content
-
- 1 reply
- 119 views
-
- 2 answers
- 936 views
-
Problema turf
By Soryn.,
- 3 answers
- 481 views
-
- 0 replies
- 209 views
-
- 2 replies
- 399 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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;
}
Link to comment
Share on other sites
4 answers to this question
Recommended Posts