[HELP] -
c0GI - 08.02.2012
Hy boys! I realy need a help with Creating a 3d text to player!!! I'm put in my script that if a player admin, on player spawn to set 3d text [ OSC ], and I'm put it under public OnPlayerSpawn()!!! But I have a problem. The 3dtext was attached suscesfuly, but if I go little away, the 3dtext of player will be show where is the playername!!!
But If I stand next to the player the 3dtext will be show normaly(how i set on x,y,z pos on Create3DTextForPlayer)
PLEASE HELP ME!!!
Re: [HELP] -
c0GI - 08.02.2012
Ouu, I was forgot to put a script:
I was puted this under public OnPlayerSpawn()
Код:
// ------------------[ OSC ] label for admins ----------------------
if(PlayerInfo[playerid][pAdmin] == 1339)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.26);
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.26);
}
if(PlayerInfo[playerid][pAdmin] == 4)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.26);
}
if(PlayerInfo[playerid][pAdmin] == 3)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.26);
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.26);
}
Who will help me!!! I will give them a Reputation
Re: [HELP] -
c0GI - 08.02.2012
Can anyone help me?? or on this forum don't have a good scripters
hehe
Re: [HELP] -
Champ - 08.02.2012
pawn Код:
// ------------------[ OSC ] label for admins ----------------------
if(PlayerInfo[playerid][pAdmin] == 1339)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.7);
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.7);
}
if(PlayerInfo[playerid][pAdmin] == 4)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.7);
}
if(PlayerInfo[playerid][pAdmin] == 3)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.7);
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
OSCLabel[playerid] = Create3DTextLabel("[ OSC ]",0x000000FF,0,20,0,21,0,1);
Attach3DTextLabelToPlayer(OSCLabel[playerid], playerid, 0.0,0.0,0.7);
}
try this hope it will help you