PDA

View Full Version : How?


Man43
14/07/2018, 10:44 PM
Can someone send to me a tutoiral of When someone be arrested or ticket send the message to ALL POLICE I mean example: [POLICE TEAM]: %s has been arrested by FBI %s [I need a police team message's] When someone be ticket or arrested like that how?

RedRex
14/07/2018, 10:53 PM
Here you go I hope if u mean that.

Under command: you want

format(string, sizeof(string), "[ARRESTED]: %s [%d] has been arrested by %s [%d]", name,player,targetname,targetid);
CopRadio(BLUE, string);

stock CopRadio(color,const string[])
{
foreach(new i : Player)
{
if(GetPlayerState(i) != PLAYER_STATE_NONE)
{
if(GetTeam{i} == CLASS_COPS || GetTeam{i} == CLASS_CIA || GetTeam{i} == CLASS_FBI || GetTeam{i} == CLASS_ARMY)
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}

Man43
14/07/2018, 11:03 PM
Thank you :). I've editing it and it's worked :)