OnPlayerDeath problem
#1

Код:
if(gTeam[killerid] == 2 && WantedLevel[playerid] > 0)
	{
			    		new nams[MAX_PLAYER_NAME];
	                    new pd[MAX_PLAYER_NAME];
	                    GetPlayerName(playerid, nams, sizeof(nams));
    					GetPlayerName(killerid, pd, sizeof(pd));
				    	if(PlayerInfo[killerid][pMember] == 1)
				        {
        				format(string, sizeof(string), "***[SUSPECT] Officer {FFFFFF}%s{33CCFF} killed suspect {FFFFFF}%s {33CCFF}having Wanted {FFFFFF}%d{33CCFF}.***", pd,nams,WantedLevel[playerid]);
						SendRadioMessage(1, COLOR_LIGHTBLUE, string);
						SendRadioMessage(2, COLOR_LIGHTBLUE, string);
						SendRadioMessage(3, COLOR_LIGHTBLUE, string);
						SuspectK[killerid]++;
						}
      					if(PlayerInfo[killerid][pMember] == 2)
				        {
				        format(string, sizeof(string), "***[SUSPECT] Agent {FFFFFF}%s {33CCFF}killed suspect {FFFFFF}%s {33CCFF}having Wanted {FFFFFF}%d{33CCFF}.***", pd,nams,WantedLevel[playerid]);
						SendRadioMessage(1, COLOR_LIGHTBLUE, string);
						SendRadioMessage(2, COLOR_LIGHTBLUE, string);
						SendRadioMessage(3, COLOR_LIGHTBLUE, string);
						SuspectK[killerid]++;
						}
      					if(PlayerInfo[killerid][pMember] == 3)
				        {
				        format(string, sizeof(string), "***[SUSPECT] Soldier {FFFFFF}%s {33CCFF}killed suspect {FFFFFF}%s {33CCFF}having Wanted {FFFFFF}%d{33CCFF}.***", pd,nams,WantedLevel[playerid]);
						SendRadioMessage(1, COLOR_LIGHTBLUE, string);
						SendRadioMessage(2, COLOR_LIGHTBLUE, string);
						SendRadioMessage(3, COLOR_LIGHTBLUE, string);
						SuspectK[killerid]++;
						}
      					if(PlayerInfo[killerid][pLeader] == 1)
				        {
				        format(string, sizeof(string), "***[SUSPECT] PD Leader {FFFFFF}%s {33CCFF}killed suspect {FFFFFF}%s {33CCFF}having Wanted {FFFFFF}%d{33CCFF}.***", pd,nams,WantedLevel[playerid]);
						SendRadioMessage(1, COLOR_LIGHTBLUE, string);
						SendRadioMessage(2, COLOR_LIGHTBLUE, string);
						SendRadioMessage(3, COLOR_LIGHTBLUE, string);
						SuspectK[killerid]++;
						}
 						if(PlayerInfo[killerid][pLeader] == 2)
				        {
				        format(string, sizeof(string), "***[SUSPECT] FBI Leader {FFFFFF}%s {33CCFF}killed suspect {FFFFFF}%s {33CCFF}having Wanted {FFFFFF}%d{33CCFF}.***", pd,nams,WantedLevel[playerid]);
						SendRadioMessage(1, COLOR_LIGHTBLUE, string);
						SendRadioMessage(2, COLOR_LIGHTBLUE, string);
						SendRadioMessage(3, COLOR_LIGHTBLUE, string);
						SuspectK[killerid]++;
						}
 						if(PlayerInfo[killerid][pLeader] == 3)
				        {
				        format(string, sizeof(string), "***[SUSPECT] NG Leader {FFFFFF}%s {33CCFF}killed suspect {FFFFFF}%s {33CCFF}having Wanted {FFFFFF}%d{33CCFF}.***", pd,nams,WantedLevel[playerid]);
						SendRadioMessage(1, COLOR_LIGHTBLUE, string);
						SendRadioMessage(2, COLOR_LIGHTBLUE, string);
						SendRadioMessage(3, COLOR_LIGHTBLUE, string);
						SuspectK[killerid]++;
						}
			return 1;
			}
This is the code if a player with Wanted is killed by a cop WantedLevel represents the code for the player who's having wanted gTeam = Cop .. it's not working , is not writing anything
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)