14.06.2014, 09:29
OnPlayerDeath you
And include for you:pastebin.com/AYxq3pTw
And include for you:pastebin.com/AYxq3pTw
pawn Код:
#include <OPSP> // add to top
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if(gTeam[Shooter] == gTeam[Target])
{
new msg[128],name1[24],name2[24];
GetPlayerName(Shooter,name1,24);
GetPlayerName(Target,name2,24);
format(msg,sizeof(msg)," *You %s cant shoot teammate%s!",name1,name2);
SendClientMessageToAll(0xFFFFFFFF,msg);
return 1;
}