CreateDynamic3DTextLabel help!
#1

How could I make it so a faction such as
pawn Код:
PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11
Only see

pawn Код:
CreateDynamic3DTextLabel
Like restricting it to where only a faction can view it under a command ?
Reply
#2

Anyone ?
Reply
#3

Use conditional statement.
Reply
#4

I want to make a command that assigns a text above someones head. This will be used for a military faciton. Let's stay the military leader wants to assign someone of the name of "Tango 2-6" so like /callsign PLAYERID Tango 2-6 so once he does that a CreateDynamic3DTextLabel will come up above that players head with a distance that is pretty large so say people in planes and stuff can see it. BUT only people in this faction can see it. Is that possible ?
Reply
#5

Anyone ?
Reply
#6

just use CreatePlayer3DTextLabel if you don't want it to be shown to all players.


Код:
for(new i; i<MAX_PLAYERS; i++)
{
     if(IsPlayerConnected(i))
     {
        if(PlayerTeam[i] == PlayerTeam[playerid] && playerid != i)
        {
            CreatePlayer3DTextLabel(i, "Hai, I'm a super captain", 0xFF3399AA, 0.0, 0..0, 0.8, 220.0, playerid, INVALID_VEHICLE_ID, 1)
        }
    }
}
Reply
#7

What's wrong with this ?
pawn Код:
CMD:callsign(playerid, params[])
{
    new string[128], player, callsign;
    if(sscanf(params, "uc", playa, callsign))
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "USAGE: /callsign [playerid] [callsign]");
        return 1;
    }
    if (PlayerInfo[playerid][pAdmin] >= 4) {
            for(new i; i<MAX_PLAYERS; i++)
            {
                 if(IsPlayerConnected(i))
                 {
                    if(IsACop[i] == IsACop[playerid] && playerid != i)
                    {
                        CreatePlayer3DTextLabel(i, callsign, 0xFF3399AA, 0.0, 0..0, 0.8, 220.0, playerid, INVALID_VEHICLE_ID, 1)
                    }
                }
            }
        }
        else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
    }
    else {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    }
    return 1;
}
Reply
#8

Anyone ?
Reply
#9

Can someone help me
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)