Help about wanted players - 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 about wanted players (
/showthread.php?tid=145729)
Help about wanted players -
ViruZZzZ_ChiLLL - 03.05.2010
Question:
How can I make a player receive more money if he kills a wanted player?
Example:
Wanted lvl. 1 - $1000
Wanted lvl. 2 - $2000
You get the idea 
________
Suzuki grand vitara specifications
Re: Help about wanted players -
FUNExtreme - 03.05.2010
What you need is
OnPlayerDeath
GetPlayerWantedLevel
GivePlayerMoney
I think that you could do this one by yourself, no?
Re: Help about wanted players -
aircombat - 03.05.2010
Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(GetPlayerWantedLevel(playerid) == 1)
{
GivePlayerMoney(killerid,1000);
}
else if(GetPlayerWantedLevel(playerid) == 2)
{
GivePlayerMoney(killerid,2000);
}
return 1;
}
Re: Help about wanted players -
[XST]O_x - 03.05.2010
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if (GetPlayerWantedLevel(playerid) == 1)
{
GivePlayerMoney(killerid,1000);
}
if (GetPlayerWantedLevel(playerid) == 2)
{
GivePlayerMoney(killerid,2000);
}
return 1;
}
just made this i think it works,try
Edit: lol sorry when i saw the topic i clicked on "Replay" and minimized the browser and went to pawn,now i see Etch ❽ H posted first :/
Sorry
Re: Help about wanted players -
ViruZZzZ_ChiLLL - 03.05.2010
Quote:
Originally Posted by FUNExtreme
What you need is
OnPlayerDeath
GetPlayerWantedLevel
GivePlayerMoney
I think that you could do this one by yourself, no?
|
Well yeah, but sometimes the most simplest things is the ones I forget easily
Quote:
Originally Posted by O_x
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
if (GetPlayerWantedLevel(playerid) == 1) { GivePlayerMoney(killerid,1000); } if (GetPlayerWantedLevel(playerid) == 2) { GivePlayerMoney(killerid,2000); } return 1; }
just made this i think it works,try 
|
Quote:
Originally Posted by Etch ? H
Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(GetPlayerWantedLevel(playerid) == 1)
{
GivePlayerMoney(killerid,1000);
}
else if(GetPlayerWantedLevel(playerid) == 2)
{
GivePlayerMoney(killerid,2000);
}
return 1;
}
|
Yes, these should be it

Thanks

________
Suzuki dr-z250