PlayCrimeReportForPlayer
From SA-MP Wiki
PlayCrimeReportForPlayer
Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.
This function plays a crime report for a player - similar to that of Single Player when CJ commits a crime.
(playerid, suspectid, crimeid)
| playerid | The player you want to hear the report. |
| suspectid | The suspect ID which commited the crime. |
| crimeid | The Crime ID |
This function does not return a specific value.
public OnPlayerCommandText(playerd, cmdtext[]) { if(!strcmp(cmdtext,"/suspect")) { PlayCrimeReportForPlayer(playerid,0,3); SendClientMessage(playerid,0xFFFFFFFF,"ID 0 is now a suspect."); return 1; } return 0; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- PlayerPlaySound: Play a sound for a player.
