OnPlayerDeath Scenarios.
#9

Quote:
Originally Posted by yvoms
Посмотреть сообщение
thanks, now it works.
would this work?
Код:
			else if(GetPlayerWantedLevel(playerid) >= 6 && GetPlayerWantedLevel(playerid) <= 255)
			{
				new wantedp, rewardp;
				wantedp = GetPlayerWantedLevel(playerid);
				rewardp = GivePlayerMoney(playerid, wantedp *500);
				SetPlayerScore(killerid, GetPlayerScore(killerid)+5);
				SendClientMessage(killerid, COLOR_WHITE, "{FF0000}[Server]:{FFFFFF} You have killed a High suspect player, you got 10K and 5 Score.");
				GivePlayerMoney(killerid, rewardp +1000);
			}
Trying to get the players wantedlevel, wantedlevel X 500 = payment you receive for killing the criminal.
erm, i think i should work( but you need to format the message, and u are giving the money twice)
PHP код:
else if(GetPlayerWantedLevel(playerid) >= && GetPlayerWantedLevel(playerid) <= 255)
            {
                new 
wantedprewardp,string;
                
wantedp GetPlayerWantedLevel(playerid);
                
rewardp GivePlayerMoney(killeridwantedp *500);
                
SetPlayerScore(killeridGetPlayerScore(killerid)+5);
format(string,sizeof(string),"{FF0000}[Server]:{FFFFFF} You have killed a suspect of %i wanted level, you got $%i and 5 Score",wantedp,rewardp);
                
SendClientMessage(killeridCOLOR_WHITEstring);
            } 
Reply


Messages In This Thread
OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 21:38
Re: OnPlayerDeath Scenarios. - by Eth - 14.01.2016, 21:44
Re: OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 21:56
Re: OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 23:00
Re: OnPlayerDeath Scenarios. - by Eth - 14.01.2016, 23:24
Re: OnPlayerDeath Scenarios. - by yvoms - 14.01.2016, 23:30
Re: OnPlayerDeath Scenarios. - by Eth - 14.01.2016, 23:36
Re: OnPlayerDeath Scenarios. - by yvoms - 15.01.2016, 00:10
Re: OnPlayerDeath Scenarios. - by xTURBOx - 15.01.2016, 03:46
Re: OnPlayerDeath Scenarios. - by Pottus - 15.01.2016, 04:59

Forum Jump:


Users browsing this thread: 1 Guest(s)