need help for 3d text label - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help for 3d text label (
/showthread.php?tid=260037)
need help for 3d text label -
Amine_Mejrhirrou - 07.06.2011
any idea for how can i make 3d txt label for all the players ( "Zombie" for the zombie team and "Human" for the human team)
Respuesta: need help for 3d text label -
Lunnatiicz - 07.06.2011
You can do a loop, or excepctions :B
example
pawn Код:
if (TeamZombie[playerid] == 1)
{
Create3DTextLabel(...)
} else if (TeamHuman[playerid] == 2) {
Create3dTextLabel(..)
}
Re : Respuesta: need help for 3d text label -
Amine_Mejrhirrou - 07.06.2011
Quote:
Originally Posted by Lunnatiicz
You can do a loop, or excepctions :B
example
pawn Код:
if (TeamZombie[playerid] == 1) { Create3DTextLabel(...) } else if (TeamHuman[playerid] == 2) { Create3dTextLabel(..) }
|
ooo caus i was thinking that i must use something like that
Код:
for (new i = 0; i < MAX_PLAYERS; i++)
Re: Re : Respuesta: need help for 3d text label -
DRIFT_HUNTER - 07.06.2011
Quote:
Originally Posted by Amine_Mejrhirrou
ooo caus i was thinking that i must use something like that
Код:
for (new i = 0; i < MAX_PLAYERS; i++)
|
No you just can create and attach 3D Text at player spawn
And i suggest you to delete it on player death cos player can use F4 and it will bug a bit(multiple 3D Texts for one player)
Re : need help for 3d text label -
Amine_Mejrhirrou - 08.06.2011
that's my script and i don't know why it's not working... any sugestion
Код:
new Text3D:label[MAX_PLAYERS];
Код:
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(label[playerid]);
return 1;
}
Код:
public OnPlayerSpawn(playerid)
{
Delete3DTextLabel(label[playerid]);
if(team[playerid] == 1)
{
label[playerid] = Create3DTextLabel("Human",0xAA3333AA, 0, 0, 0, 40, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
if(team[playerid] == 2)
{
label[playerid] = Create3DTextLabel("Zombie",0xAA3333AA, 0, 0, 0, 40, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
if(team[playerid] == 3)
{
label[playerid] = Create3DTextLabel("Zombie",0xAA3333AA, 0, 0, 0, 40, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
return 1;
}
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
Delete3DTextLabel(label[playerid]);
}
Re : need help for 3d text label -
Amine_Mejrhirrou - 08.06.2011
update ...
guys pleas help
Re : need help for 3d text label -
Amine_Mejrhirrou - 09.06.2011
sory for the again but pleas help me
" the problem is that the only one player has the tag" pleas help