[HELP] Little Problem
#1

Hello!

I'm using ladmin admin system and I made this:

pawn Код:
if(PlayerInfo[playerid][Level] >= 1)
    {
        new string[150], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(string,sizeof(string),"%s: {FFFFFF}%s", name, text);
        SetPlayerColor(playerid, SendClientMessageToAll(0xAAFFCC00, string));
        return 0;
    }
This is the problem I think:

pawn Код:
SetPlayerColor(playerid, SendClientMessageToAll(0xAAFFCC00, string));
The color 0xAAFFCC00 is lightblue. When an admin speaks in chat, then his chat color is lightblue, but. When I klick TAB, then it is black. I want that the chat and name color is the same. How to fix that?

And I want that the admins are invisible in minimap.

Thank you for your help! +rep
Reply
#2

pawn Код:
if(PlayerInfo[playerid][Level] >= 1)
    {
        new string[150], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(string,sizeof(string),"%s: {FFFFFF}%s", name, text);
        SetPlayerColor(playerid, 0xAAFFCC00);
        return 0;
    }
Reply
#3

Some dialog problem too. I'm using this:

pawn Код:
if(dialogid == DM)
    {
    if(response)
    {
    if(listitem == 0) //CS
    {
    if(IsInDM[playerid] ==1)
    {
    SendClientMessage(playerid, COLOR_RED, "ERROR: {FFFFFF}You can not use commands in DM use /kill");
    return 1;
    }
    SetCameraBehindPlayer(playerid);
    ResetPlayerWeapons(playerid);
    SetPlayerVirtualWorld(playerid,5);
    new CSS[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(11);
    GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
    if (RandomSpawn == 0)
    {
    SetPlayerPos(playerid, 30.3971,1569.4806,12.7960);
    SetPlayerFacingAngle(playerid, 179.3254);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,285);
    }
    if (RandomSpawn == 1)
    {
    SetPlayerPos(playerid, -6.7110,1562.5524,12.7900);
    SetPlayerFacingAngle(playerid, 52.7610);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,292);
    }
    if (RandomSpawn == 2)
    {
    SetPlayerPos(playerid, -25.0410,1552.8302,12.7900);
    SetPlayerFacingAngle(playerid, 46.7841);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,285);
    }
    if (RandomSpawn == 3)
    {
    SetPlayerPos(playerid, -41.1229,1514.2462,12.7900);
    SetPlayerFacingAngle(playerid, 331.2935);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,292);
    }
    if (RandomSpawn == 4)
    {
    SetPlayerPos(playerid, -26.2702,1491.1162,12.7900);
    SetPlayerFacingAngle(playerid, 222.2524);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,285);
    }
    if (RandomSpawn == 5)
    {
    SetPlayerPos(playerid, -0.6597,1493.4347,12.7900);
    SetPlayerFacingAngle(playerid, 331.2935);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,292);
    }
    if (RandomSpawn == 6)
    {
    SetPlayerPos(playerid, -6.8291,1506.0853,12.7900);
    SetPlayerFacingAngle(playerid, 222.2524);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,285);
    }
    if (RandomSpawn == 7)
    {
    SetPlayerPos(playerid, 31.0777,1496.0863,12.7900);
    SetPlayerFacingAngle(playerid, 222.2524);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,292);
    }
    if (RandomSpawn == 8)
    {
    SetPlayerPos(playerid, 51.3692,1530.6277,12.7960);
    SetPlayerFacingAngle(playerid, 52.7610);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,285);
    }
    if (RandomSpawn == 9)
    {
    SetPlayerPos(playerid, 15.4309,1530.8241,12.7900);
    SetPlayerFacingAngle(playerid, 46.7841);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,292);
    }
    if (RandomSpawn == 10)
    {
    SetPlayerPos(playerid, 8.5201,1549.0991,12.7960);
    SetPlayerFacingAngle(playerid, 331.2935);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,285);
    }
    GivePlayerWeapon(playerid, 24, 9999);
    GivePlayerWeapon(playerid, 30, 9999);
    GivePlayerWeapon(playerid,34,9999);
    GivePlayerWeapon(playerid, 16, 9999);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    IsInDM[playerid] = 1;
    SendClientMessage(playerid, COLOR_BLUE, "Welcome to Counter Strike DM");
    format(CSS, sizeof(CSS), "[Teleport] %s has teleported to Counter Strike DM /dm", playerName);
    SendClientMessageToAll(COLOR_LIGHTBLUE, CSS);
    toggoto[playerid] = 1;
    }
When the player is in DM, then how to set player markers off. I tried some things but I failed.

And when the player is not in DM then the player Markers are on again!
Reply
#4

LimitPlayerMarkerRadius
Reply
#5

OMG. Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)