07.08.2017, 22:01
(
Последний раз редактировалось vegaltasendai; 07.08.2017 в 22:01.
Причина: error
)
I have problem with this script sends messages to all, I want to just send the player to harm the actor
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamageActor
This line Gives messages to everyone and chat
SendClientMessageToAll(0xFFFFFFFF, string);
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamageActor
Код:
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart) { new string[128], attacker[MAX_PLAYER_NAME]; new weaponname[24]; GetPlayerName(playerid, attacker, sizeof (attacker)); GetWeaponName(weaponid, weaponname, sizeof (weaponname)); format(string, sizeof(string), "%s has made %.0f damage to actor id %d, weapon: %s", attacker, amount, damaged_actorid, weaponname); SendClientMessageToAll(0xFFFFFFFF, string); return 1; }
SendClientMessageToAll(0xFFFFFFFF, string);