13.01.2011, 13:23
You can use OnPlayerShootPlayer by wups.
https://sampforum.blast.hk/showthread.php?tid=195439
And do something like that:
https://sampforum.blast.hk/showthread.php?tid=195439
And do something like that:
pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
{
if(GetPlayerWeapon(shooter) == 23)
{
new name[MAX_PLAYER_NAME],msg[80];
GetPlayerName(shooter,name,sizeof(name));
GetPlayerName(target,name,sizeof(name));
GameTextForPlayer(target, "You have been tazed by a cop!", 3000, 3);
ApplyAnimation(target, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0, 1);
format(msg,sizeof(msg),"* %s tazed you and did %.1f damage!",name,damage);
SendClientMessage(target,0x33AA33AA,msg);
format(msg,sizeof(msg),"* You tazed %s and did %.1f damage!",name,damage);
SendClientMessage(shooter,0x33AA33AA,msg);
return 1;
}
return 1;
}