06.06.2015, 10:37
The line 7777 is in:
And I already posted the output of crashdetect above..
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9 && GetPlayerTeam(playerid) != GetPlayerTeam(issuerid) && Freemod[playerid] == 0 && OnDuty[playerid] == 0)
{
SetPlayerHealth(playerid, 0.0);
if(Headshotdone[playerid] == 0)
{
new killedname[MAX_PLAYER_NAME], killername[MAX_PLAYER_NAME], Message[128];
GetPlayerName(playerid, killedname, MAX_PLAYER_NAME);
GetPlayerName(issuerid, killername, MAX_PLAYER_NAME);
format(Message, sizeof(Message), "%s (%d) Has Been Killed By A Headshot From %s (%d)!", killedname, playerid, killername, issuerid);
SendClientMessageToAll(0x00FBFFFF, Message);
format(Message, sizeof(Message), "You Have Been Killed By A Headshot From %s (%d)!", killername, issuerid);
SendClientMessage(playerid, 0xFF0000AA, Message);
format(Message, sizeof(Message), "Congratulations! You Have Killed %s (%d) By A Headshot! Received Extra 2K!", killedname, playerid);
SendClientMessage(issuerid, 0xFFEE00FF, Message);
F_GivePlayerMoney(issuerid, 2000);
GameTextForPlayer(issuerid, "~r~Headshot", 5000, 4);
GameTextForPlayer(playerid, "~r~Killed By Headshot", 5000, 3);
}
Headshotdone[playerid] = 1;
} // 7777 Line here
if(issuerid != INVALID_PLAYER_ID && Freemod[issuerid] == 0 && GetPlayerTeam(playerid) != GetPlayerTeam(issuerid) && OnDuty[playerid] == 0)
{
PlayerPlaySound(issuerid, 17802, 0, 0, 0);
}
return 1;
}