public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
GetPlayerName(playerid, victim, sizeof (victim));
GetPlayerName(issuerid, attacker, sizeof (attacker));
if(weaponid == 22) SetPlayerHealth(playerid, 40);
if(weaponid == 23) SetPlayerHealth(playerid, 40);
if(weaponid == 24) SetPlayerHealth(playerid, 58);
if(weaponid == 25) SetPlayerHealth(playerid, 80);
if(weaponid == 26) SetPlayerHealth(playerid, 80);
if(weaponid == 27) SetPlayerHealth(playerid, 80);
if(weaponid == 28) SetPlayerHealth(playerid, 61);
if(weaponid == 29) SetPlayerHealth(playerid, 64);
if(weaponid == 30) SetPlayerHealth(playerid, 70);
if(weaponid == 31) SetPlayerHealth(playerid, 73);
if(weaponid == 32) SetPlayerHealth(playerid, 64);
if(weaponid == 33) SetPlayerHealth(playerid, 68);
if(weaponid == 34) SetPlayerHealth(playerid, 88);
format(string, sizeof(string),"%s выстрелил в %s.", attacker,victim );
ProxDetector(20.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME], Float:php;
GetPlayerName(playerid, victim, sizeof (victim));
GetPlayerName(issuerid, attacker, sizeof (attacker));
GetPlayerHealth(playerid, php);
if(weaponid == 22) SetPlayerHealth(playerid, php-40);
if(weaponid == 23) SetPlayerHealth(playerid, php-40);
if(weaponid == 24) SetPlayerHealth(playerid, php-58);
if(weaponid == 25) SetPlayerHealth(playerid, php-80);
if(weaponid == 26) SetPlayerHealth(playerid, php-80);
if(weaponid == 27) SetPlayerHealth(playerid, php-80);
if(weaponid == 28) SetPlayerHealth(playerid, php-61);
if(weaponid == 29) SetPlayerHealth(playerid, php-64);
if(weaponid == 30) SetPlayerHealth(playerid, php-70);
if(weaponid == 31) SetPlayerHealth(playerid, php-73);
if(weaponid == 32) SetPlayerHealth(playerid, php-64);
if(weaponid == 33) SetPlayerHealth(playerid, php-68);
if(weaponid == 34) SetPlayerHealth(playerid, php-88);
else return 1;
format(string, sizeof(string),"%s выстрелил в %s.", attacker,victim );
ProxDetector(20.0, playerid, string, COLOR_PURPLE);
}
return 1;
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); |
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL_E,COLOR_PURPLE); |
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL_E,COLOR_PURPLE);