Jump to content
  • 0

cum dispare numele playerului


KisKos

Question

6 answers to this question

Recommended Posts

:]] De ce spuneti ca e imposibil? Totul e posibil pana la un moment dat.

Incearca asta :) /nton sa activezi si /ntoff sa dezactivezi.

if(strcmp(cmdtext, "/nton", true)==0)
	{
   	   	SendClientMessage(playerid, COLOR_YELLOW, "{00AA00}SERVER: {FFFFFF}Nametags are {00FF00}enabled. {FFFFFF}To disable use {999999}/ntoff ");
    	PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0);
		for(new i = 0; i < MAX_PLAYERS; i ++)
		{
	    	ShowPlayerNameTagForPlayer(playerid, i, 1);
		}
		return 1;
	}

    if(strcmp(cmdtext, "/ntoff", true)==0)
	{
		SendClientMessage(playerid, COLOR_YELLOW, "{00AA00}SERVER: {FFFFFF}Nametags are {FF0000}disabled.");
    	PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
		for(new i = 0; i < MAX_PLAYERS; i ++)
		{
	    	ShowPlayerNameTagForPlayer(playerid, i, 0);
		}
		return 1;
	}

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

mersi dar eu voiam altceva... sa arate numele playerilor fara sa bag comanda, pur si simplu cand ma duc langa un player sa ii arate numele deasupra capului, dar ca ma departez la o anumita distanta, sa dispara numele.

EDIT: Am gasit ceea ce ma interesa. Pentru cei ce mai doriti asta, functia este:

SetNameTagDrawDistance(20.0);
unde
 (20.0) 

este distanta maxima de la care puteti vedea numele playerului. Aceasta functie o puneti sub public OnGameModeInit, iar 20.0 o modificati cu cat doriti.

Bafta. T/c

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.