PlayCrimeReportForPlayer

From SA-MP Wiki

Jump to: navigation, search

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.


Parameters:
(playerid, suspectid, crimeid)
playeridThe player you want to hear the report.
suspectidThe suspect ID which commited the crime.
crimeidThe 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.

Personal tools