Jump to content

Recommended Posts

Posted

[move][glow=green,2,300]Cum sa faci sa apara numele sub harta | by RazVan |[/glow][/move]

Descriere : Va voi arata cum sa creeati un textdraw care acesta contine cand sunteti online pe server va arata jos sub mapa numele tau .

1. Creeam linia :

new Text:Nume[MAX_PLAYERS];

2. Cauta in GM [Ctrl+F] linia :

//OnPlayerConnect

Dam putin mai jos gasim linia format(string, sizeof(string), "%s.ini", plname); si sub ea punem acest cod:

//-------------------------------------------

new pnamee[24];

GetPlayerName(playerid, pnamee, sizeof(pnamee));

Nume[playerid]= TextDrawCreate(28.000000,428.000000,pnamee);

TextDrawAlignment(Nume[playerid],0);

TextDrawBackgroundColor(Nume[playerid],0xffffffff);

TextDrawFont(Nume[playerid],1);

TextDrawLetterSize(Nume[playerid],0.799999,1.200000);

TextDrawColor(Nume[playerid],0x00ff0033);

TextDrawSetOutline(Nume[playerid],1);

TextDrawSetProportional(Nume[playerid],1);

TextDrawSetShadow(Nume[playerid],1);

TextDrawShowForPlayer(playerid,Nume[playerid]);

//-------------------------------------------

3. Cautam in GM[Ctrl+F] linia :

//OnPlayerDisconnect

Punem dupa ea :

TextDrawDestroy(Nume[playerid]);

Spor la munca ;) .. daca aveti prob. , nelamuriri postati aici !

[move][glow=red,2,300]Tutorial by RazVan[/glow][/move]

  • 2 weeks later...
Posted

Am reusit sa fac asta si dupa cand un player se conecteaza vede numele celor care sau conectat inainte... ce e de facut? Am facut exact ca acolo.

mai ai tu textdrawri care arata pe sv cand un player se conecteaza/deconecteaza.

Guest UnderCover
Posted

.. Eu am facut mai de mult chestia cu numele .. intro "casuta" . si la fiecare factiune arata culoarea ei ..

  • 2 weeks later...
  • 2 weeks later...
Posted

LaZ" post="35603" timestamp="1279095712"]

Ii destul de naspa sa creezi un textdraw de fiecare data cand un jucator se conecteaza.

Adik trb sa creez cate un textdraw pentru fiecare player in parte ? ?

Samp.OnlyPro.ro - RolePlay - Join Us !

Posted

Adik trb sa creez cate un textdraw pentru fiecare player in parte ? ?

Dupa cum a facut el, cand un jucator se conecteaza se creeaza un textdraw. Mai bine creezi atatea textdraw-uri cate sloturi are serverul tau. Daca cineva a facut ca el si are norocul sa intre peste 2048 de jucatori pe server, atunci va avea probleme.

Pe scurt, nu-i eficient sa faci textdraw-uri din OnPlayerConnect sau orice callback exceptand OnFilterScriptInit sau OnGameModeInit.

Posted

LaZ" post="37252" timestamp="1280937150"]

Dupa cum a facut el, cand un jucator se conecteaza se creeaza un textdraw. Mai bine creezi atatea textdraw-uri cate sloturi are serverul tau. Daca cineva a facut ca el si are norocul sa intre peste 2048 de jucatori pe server, atunci va avea probleme.

Pe scurt, nu-i eficient sa faci textdraw-uri din OnPlayerConnect sau orice callback exceptand OnFilterScriptInit sau OnGameModeInit.

Cred ca te-ai pierdut cu firea, nu au cum sa intre 2048 jucatori pe server..

  • 2 weeks later...
  • 3 months later...
  • 3 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.