Bug? PlayCrimeReportForPlayer
#1

Hello, on the Wiki it says to use 'PlayCrimeReportForPlayer(playerid,INVALID_PLAYER_ID,crimeid);' so the suspect doesn't hear the radio, but when i use this, it doesnt even send it to the playerid. When I change it to 'PlayCrimeReportForPlayer(playerid,suspect,crimeid );' it works but I dont want the suspect to hear it.
Reply
#2

Try
pawn Код:
PlayCrimeReportForPlayer(INVALID_PLAYER_ID,playerid,soundid);
Reply
#3

Well the wiki is incorrect in that case. You can't report a crime without a suspect player. The suspect never hears the radio unless you also send it to them.
Reply
#4

Ok, so how do I make it so it will only send it to the cop, not the suspect? Will this work:

Код:
for(new p = 0; p < MAX_PLAYERS; p++)
{
  if(IsPlayerConnected(p) && Logged[p] && Faction[p] == FACTION_COP)
  {
     SendClientMessage(p,COLOUR_BLUE,string);
     PlayCrimeReportForPlayer(p, p, 3);
  }
}
Reply
#5

Quote:
Originally Posted by AlecRae
Ok, so how do I make it so it will only send it to the cop, not the suspect? Will this work:

Код:
for(new p = 0; p < MAX_PLAYERS; p++)
{
  if(IsPlayerConnected(p) && Logged[p] && Faction[p] == FACTION_COP)
  {
     SendClientMessage(p,COLOUR_BLUE,string);
     PlayCrimeReportForPlayer(p, p, 3);
  }
}
I don't think so..

P = Cop Faction
You report on a cop?


PlayCrimeReportForPlayer(p, p, 3);








Sorry if I am wrong.

Reply
#6

A crime report is a report about a crime involving a suspect. You can't report a crime unless there is a suspect to report.

Код:
PlayCrimeReportForPlayer(p, p, 3);
You are saying the cop player and the suspect player are the same. So going by that code, a cop would get a crime report about themselves commiting a crime.
Reply
#7

Quote:
Originally Posted by Kye
A crime report is a report about a crime involving a suspect. You can't report a crime unless there is a suspect to report.

Код:
PlayCrimeReportForPlayer(p, p, 3);
You are saying the cop player and the suspect player are the same. So going by that code, a cop would get a crime report about themselves commiting a crime.
I am right ^_^


Example:
pawn Код:
PlayCrimeReportForPlayer(p,(SuspectID),3);

Reply
#8

Ok, i understand this now but will PlayCrimeReportForPlayer(p,(SuspectID),3); make the suspectid hear the radio?
Reply
#9

No,

I just gave you an example how to use it. Not hear the radio
Because you post incorrect code.


And dont forget "(SuspectID)" Have to be replaced.
Here an example:
PlayCrimeReportForPlayer(p, playerid, 3);
Reply
#10

Quote:
Originally Posted by AlecRae
Ok, i understand this now but will PlayCrimeReportForPlayer(p,(SuspectID),3); make the suspectid hear the radio?
https://sampwiki.blast.hk/wiki/PlayCrimeReportForPlayer
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)