Help about wanted players
#1

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
Reply
#2

What you need is

OnPlayerDeath
GetPlayerWantedLevel
GivePlayerMoney

I think that you could do this one by yourself, no?
Reply
#3

Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(GetPlayerWantedLevel(playerid) == 1)
{
GivePlayerMoney(killerid,1000);
}
else if(GetPlayerWantedLevel(playerid) == 2)
{
GivePlayerMoney(killerid,2000);
}
return 1;
}
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)