15.02.2010, 03:00
hi can someone help me on putting a 3d label on top of the player when loggin
like on my gamemode is about gangwarz and i want to put a label in top of every player with the color and name of the gang like this
with this example
if someone can help me on makin this for me so every player will login with the gang that he is in on top of his head i will apreciate it cuz ma pano skillz suck
like on my gamemode is about gangwarz and i want to put a label in top of every player with the color and name of the gang like this
pawn Код:
public OnPlayerSpawn(playerid)
{
new rand = random( 5 );
SetPlayerInterior( playerid, 0 );
SetPlayerToTeamColor( playerid );
with this example
pawn Код:
new Text3D:label[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
label[playerid] = Create3DTextLabel("vagos gangmember!",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(label[playerid]);
return 1;
}