13.12.2013, 17:00
Quote:
Ok,but shouldnt i add the var of the Police (if police = 2 they will see it?)
|
By the way, in-case you didn't notice, i updated it.
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID) // If not self-inflicted
{
new
infoString[128],
weaponName[24],
victimName[MAX_PLAYER_NAME],
attackerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, victimName, sizeof (victimName));
GetPlayerName(issuerid, attackerName, sizeof (attackerName));
format(infoString, sizeof(infoString), "[DISPATCH] - %s has attacked %s | weapon: %s | damage: %.0f |", attackerName, victimName, weaponName, amount);
//Command that will send the message to the cops, for an ex: SendMessageToCops, or w.e you have!
SetPlayerWantedLevel(issuerid, GetPlayerWantedLevel(issuerid) +1); //This will set the players(attackers, issuers) wanted level to +1, when he has attacked somebody
}
return 1;
}
Is the "var of the Police" the thing ,that allows cops to see the message? For an example - Cop Radio, Robberies etc..?