SA-MP Forums Archive
WANTED level - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: WANTED level (/showthread.php?tid=403744)



WANTED level - Er@x3r - 31.12.2012

how can i make if i shoot a cop to get 2 WANTED levels?


Re: WANTED level - Konstantinos - 31.12.2012

pawn Код:
public OnPlayerGiveDamage( playerid, damagedid, Float: amount, weaponid )
{
    if( IsCop( damagedid ) SetPlayerWantedLevel( playerid, 2 );
    return 1;
}
IsCop is optional, replace it with your variable/function.


Re: WANTED level - Er@x3r - 31.12.2012

ty +rep