18.12.2015, 08:15
Quote:
and how to make if enemy player shoot him with sniper send massage sniper!!.
|
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) {
if(GetPlayerTeam(playerid) == GetPlayerTeam(damagedid)) {
SendClientMessage(playerid,COLOR_RED,"Hold your fire");
}
if(GetPlayerWeapon(playerid) == 34) {
SendClientMessage(damagedid,COLOR_RED,"You have been shot by a sniper");
}
return true;
}