01.01.2017, 15:01
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/offduty", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid,0xFFFFFF,"You're now an off-duty cop.");
format(fstr, sizeof(fstr), "%s [%d] is now an off-duty cop.", GetName(playerid), playerid, GetName(targetid), targetid, reason);
SendClientMessageToAll(0xFF0000FF,fstr);
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/onduty", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid,0xFFFFFF,"You're now an on-duty cop.");
format(fstr, sizeof(fstr), "%s [%d] is now an on-duty cop.", GetName(playerid), playerid, GetName(targetid), targetid, reason);
SendClientMessageToAll(0xFF0000FF,fstr);
}
return 0;
}