Help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (
/showthread.php?tid=147008)
Help -
ViruZZzZ_ChiLLL - 10.05.2010
Okay, so I've
forgot how to make a player wanted when he kills 3 players or
at least 1 player for that matter.
Re: Help -
Grim_ - 10.05.2010
What do you mean? Using SetPlayerWantedLevel?
Re: Help -
ViruZZzZ_ChiLLL - 10.05.2010
Quote:
Originally Posted by _Xerxes_
What do you mean? Using SetPlayerWantedLevel?
|
Yes, when he kills at least 1 player and I forgot how to do that
Re: Help -
Grim_ - 10.05.2010
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
}
?
Re: Help -
ViruZZzZ_ChiLLL - 10.05.2010
Quote:
Originally Posted by Grim_
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1); }
?
|
Will that give a player A who has killed a player B 1 wanted level/star?
Offtopic : Why did you changed your name??
Re: Help -
Grim_ - 10.05.2010
Yes, and because I hate keeping the same name for to long
EDIT:
pawn Код:
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
Small error I made, use this line instead. (Just changed 'playerid' to 'killerid')