24.08.2013, 00:07
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
DMG[issuerid] += amount;
for(new i=0;i<MAX_PLAYERS;i++)
{
new Float:pos[3];
GetPlayerPos(i, pos[0], pos[1], pos[2]);
if(IsPlayerInRangeOfPoint(issuerid, 0.40, pos[0], pos[1], pos[2]) && pInfo[i][team] == pInfo[issuerid][team])
{
if(DMG[issuerid] > 30)
{
new Float:hp; hp = GetPlayerHealth(playerid, hp);
if(hp < 1)
{
new string[65];
format(string, sizeof(string), "[ASSIST KILL] You've helped your team to kill %s, You gain +1 kill and $5000", pInfo[playerid][pname]);
SendClientMessage(issuerid, 0xFF00FF, string);
pInfo[issuerid][kills]++;
SetPlayerMoney(issuerid, GetPlayerMoney(issuerid) +5000);
}
}
}
}
return 1;
}
By "doesn't do anything" i mean, the issuerid, doesn't get the message :/.