help command not work
#1

no error but in game not show a 3d text :/
Код:
	if(strcmp(cmdtext, "/admin_on", true) == 0) {
 		if(IsPlayerAdmin(playerid))
  	label[playerid] = Create3DTextLabel(">>>ADMIN<<<",0x33CCFFAA,30.0,40.0,50.0,40.0,0);
  	 	Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
  	return 1;
 	}
Reply
#2

any 1?
Reply
#3

U dont see Attach3DTextLabelToPlayer but other players
Reply
#4

and how to show for me? and all
Reply
#5

Quote:
Originally Posted by gigi1223
and how to show for me? and all
Impossible to see your own 3d text label, only others see it
Reply
#6

are you sure?
Reply
#7

U can use something like this but i dont think its a good way xD
Код:
if(!strcmp(cmdtext, "/admin_on", true) && IsPlayerAdmin(playerid)) {
	return Attach(playerid);
}

forward Attach(p);
public Attach(p)
{
	new Float:Pos[3];
	if(IsPlayerConnected(p)) {
		GetPlayerPos(p,Pos[0],Pos[1],Pos[2]);
		Delete3DTextLabel(label[p]);
		label[p] = Create3DTextLabel(">>>ADMIN<<<",0x33CCFFAA,Pos[0],Pos[1],Pos[2]+1.0,40.0,0);
	}else return Delete3DTextLabel(label[p]),true;
	SetTimerEx("Attach",500,false,"d",p);
	return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)