need help for 3d text label
#5

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]);
}
Reply


Messages In This Thread
need help for 3d text label - by Amine_Mejrhirrou - 07.06.2011, 03:24
Respuesta: need help for 3d text label - by Lunnatiicz - 07.06.2011, 03:49
Re : Respuesta: need help for 3d text label - by Amine_Mejrhirrou - 07.06.2011, 11:07
Re: Re : Respuesta: need help for 3d text label - by DRIFT_HUNTER - 07.06.2011, 11:30
Re : need help for 3d text label - by Amine_Mejrhirrou - 08.06.2011, 17:17
Re : need help for 3d text label - by Amine_Mejrhirrou - 08.06.2011, 20:30
Re : need help for 3d text label - by Amine_Mejrhirrou - 09.06.2011, 14:59

Forum Jump:


Users browsing this thread: 3 Guest(s)