15.05.2011, 21:48
pawn Код:
if(strcmp(cmd, "/me", true) == 0)
{
if(IsLogged[playerid] == 1)
{
new pname[24], str[128];
GetPlayerName(playerid, pname, 24);
if(PlayerInfo[playerid][MaskOn] == 1)
{
format(str, sizeof(str), "Stranger %s", str);
}
else
{
format(str, sizeof(str), "%s %s", pname, str);
}
ProxDetector(10.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
}
else
{
SendClientMessage(playerid, COLOR_ERRORRED, "SERVER: You need to be logged in to use this command!");
}
}