-
public OnPlayerText(playerid, text[])
{
SearchCode(text); // сканируем на наличие BB-code
SendClientMessageToAll(-1, text); // отправляем отредактированный текст
return false;
}
stock SearchCode(text[], color = 0xFFFFFFFF)
{
new f1 = strfind(text,"[id:") + 4, f2 = strfind(text[f1],"]"), numid[4];
if(3 < f1 && 0 < f2 < 4)
{
strmid(numid, text, f1, f1 + f2);
if(IsPlayerConnected((numid[0] = strval(numid))))
format(text[f1 - 4], -1, "{85caea}%s{%06x}%s", pName(numid[0]), color >>> 8, text[f1 + f2 + 1]);
}
}
-
TextDrawShowForPlayer(playerid, Textdraw[0]);
-
You forgot the RCON command!
-
CMD:kill(playerid, params[])
-
-
(p.s. только включил комп, даже пробела нет :D)
-
-
PlayerInfo[i][pConnectTime] += 1;
-
stock ProxDetectorNew(Float: range, playerid, string[], color = -1)
{
new
Float: x,
Float: y,
Float: z,
i = GetMaxPlayers(),
world = GetPlayerVirtualWorld(playerid);
GetPlayerPos(playerid, x, y, z);
do
{
if(0 == IsPlayerConnected(--i)
|| world != GetPlayerVirtualWorld(i)
|| GetPlayerDistanceFromPoint(i, x, y, z) > range)
continue;
SendClientMessage(i, color, string);
}
while(i > 0);
return 1;
}
-
#include "../src/lib/Pawn.CMD.inc"