23.02.2013, 08:42
Add this at the top of your script(under a_samp)
pawn Код:
#include <a_npc>
pawn Код:
public OnPlayerTargetPlayer(playerid,newtarget,oldtarget)
{
new string[128];
if(newtarget != INVALID_PLAYER_ID && IsPlayerConnected(newtarget) && IsPlayerNPC(newtarget) && GetPlayerWeapon(playerid) >= 22 && GetPlayerWeapon(playerid) <= 38)
{
ApplyAnimation(newtarget,"PED","handsup",4.1,0,1,1,1,1);
PauseRecordingPlayback(newtarget); // line 3792
SetTimer("npcresume", 10000, false); // line 3793
format(string, sizeof(string), "Faff: Calm Down pink nigga Before i kill ya doggy!"); // line 3794
SendNearbyMessage(playerid, 10, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
}
}