CreateDynamic3DTextLabel help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamic3DTextLabel help! (
/showthread.php?tid=315410)
CreateDynamic3DTextLabel help! -
ShawnMiller1337 - 03.02.2012
How could I make it so a faction such as
pawn Код:
PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11
Only see
Like restricting it to where only a faction can view it under a command ?
Re: CreateDynamic3DTextLabel help! -
ShawnMiller1337 - 03.02.2012
Anyone ?
Re: CreateDynamic3DTextLabel help! - T0pAz - 03.02.2012
Use
conditional statement.
Re: CreateDynamic3DTextLabel help! -
ShawnMiller1337 - 03.02.2012
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 ?
Re: CreateDynamic3DTextLabel help! -
ShawnMiller1337 - 03.02.2012
Anyone ?
Re: CreateDynamic3DTextLabel help! -
ғαιιοцт - 03.02.2012
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)
}
}
}
Re: CreateDynamic3DTextLabel help! -
ShawnMiller1337 - 03.02.2012
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;
}
Re: CreateDynamic3DTextLabel help! -
ShawnMiller1337 - 03.02.2012
Anyone ?
Re: CreateDynamic3DTextLabel help! -
ShawnMiller1337 - 03.02.2012
Can someone help me