Bug? PlayCrimeReportForPlayer -
Alec24 - 06.09.2009
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.
Re: Bug? PlayCrimeReportForPlayer -
MenaceX^ - 06.09.2009
Try
pawn Код:
PlayCrimeReportForPlayer(INVALID_PLAYER_ID,playerid,soundid);
Re: Bug? PlayCrimeReportForPlayer -
Kalcor - 06.09.2009
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.
Re: Bug? PlayCrimeReportForPlayer -
Alec24 - 06.09.2009
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);
}
}
Re: Bug? PlayCrimeReportForPlayer -
_Ben_[Fux-c.co.il RP] - 06.09.2009
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.
Re: Bug? PlayCrimeReportForPlayer -
Kalcor - 06.09.2009
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.
Re: Bug? PlayCrimeReportForPlayer -
_Ben_[Fux-c.co.il RP] - 06.09.2009
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);
Re: Bug? PlayCrimeReportForPlayer -
Alec24 - 06.09.2009
Ok, i understand this now but will PlayCrimeReportForPlayer(p,(SuspectID),3); make the suspectid hear the radio?
Re: Bug? PlayCrimeReportForPlayer -
_Ben_[Fux-c.co.il RP] - 06.09.2009
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);
Re: Bug? PlayCrimeReportForPlayer -
dugi - 06.09.2009
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