Jump to content
  • 0

Problema TextDraw


Sle|D

Question

Nick: Sle|D

Problema: Pai.. am facut un TD pentru, cand un jucator moare(am td nu imi ziceti de  Zamaroht si iPLEOMAX's..) si habar nu am cum sa fac sa apare, ce trebuie sa fac?.. + vreu sa schimb ale de jos playerul .. s-a dus la... Si la asta am td adica cum sa apare (umbra grosime si ale) dar nu stiu ce trebuie schimbat, la aste le la toate teleporturile pus deja  codu care trimite td.. doar sa schibam formatul daca intelege-ti.

Erori / warnings: nu

Lini/script: una de ex:[pawn]CMD:lv( playerid, params[ ] ) return NormalTele( playerid, "Las Venturas", "Las Venturas ~g~~h~- /lv", 2037.5223, 1517.9135, 10.4708, 2.6085, 2024.3549, 1544.8292, 10.8194, 275.2537, 0 );

Am cauta td cu numele "normaltele" dar nu gasesc..[/pawn]

Ai incercat sa rezolvi singur ?:am cauta dar nu stiu..

Poze:zu0nN6N.png <--- asta sa il schimba

feCx8Nf.png + cum pot face sa apar cati jucatori sunt la acele dm-uir..

MERSI, Sunt foarte noob. va rog sa aveti rabdare.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

Posteaza functia NormalTele .

[pawn]stock NormalTele( playerid, TeleName[ ], CMDName[ ], Float: VX, Float: VY, Float: VZ, Float: VA, Float: X, Float: Y, Float: Z, Float: A, interior, li_Virtual = 0 )

{

PlayerPlaySound( playerid, 1057, 0.0, 0.0, 10.0 );

if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )

{

SetVehiclePos( GetPlayerVehicleID( playerid ), VX, VY, VZ );

SetVehicleZAngle( GetPlayerVehicleID( playerid ), VA );

LinkVehicleToInterior( GetPlayerVehicleID( playerid ), interior );

SetCameraBehindPlayer( playerid );

}

else

{

SetPlayerPos( playerid, Float:X, Float:Y, Float:Z );

SetPlayerFacingAngle( playerid, Float:A );

SetPlayerInterior( playerid, interior );

}

PlayerInfo[ playerid ][ ActionID ] = 0;

TogglePlayerControllable( playerid, 1 );

    format( gsString, 256, "~r~~h~%s ~y~~h~a mers la ~b~~h~%s", PlayerName( playerid ), CMDName );

    ShowOnTextDraw( gsString );

   

format( gsString, 144, "~y~Teleportat la~n~~r~%s", TeleName );

Announce( playerid, gsString, 3000, 3 );

SetPlayerVirtualWorld( playerid, li_Virtual );

SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), li_Virtual );

return ( 1 );

}

stock PlayerTele( playerid, TeleName[ ], CMDName[ ], Float: X, Float: Y, Float: Z, Float: A, interior, Virtual_World = 0 )

{

SetPlayerPos( playerid, Float:X, Float:Y, Float:Z );

SetPlayerFacingAngle( playerid, Float:A );

SetPlayerInterior( playerid, interior );

PlayerPlaySound( playerid, 1057, 0.0, 0.0, 10.0 );

    format( gsString, 256, "~r~~h~%s ~y~~h~a mers la ~b~~h~%s", PlayerName( playerid ), CMDName );

    ShowOnTextDraw( gsString );

   

format( gsString, sizeof( gsString ), "~y~Teleportat la~n~~r~%s", TeleName );

Announce( playerid, gsString, 3000, 3 );

SetPlayerVirtualWorld( playerid, Virtual_World );

return ( 1 );

}[/pawn]

Doar astea am gasit..

Link to comment
Share on other sites

La linia

format( gsString, 256, "~r~~h~%s ~y~~h~a mers la ~b~~h~%s", PlayerName( playerid ), CMDName );

schimba textul "a mers la" cu ce vrei tu .

nu asta vroiam.. scz sigur nu m-am expriamt bine eu vreu sa schimb modelul. adica modelul nu-mi place e prea mic.. sa il schimb cu astea:

[pawn]TeleTD1 = TextDrawCreate(210.000000, 430.000000, "_");

TextDrawBackgroundColor(TeleTD1, 255);

TextDrawFont(TeleTD1, 1);

TextDrawLetterSize(TeleTD1, 0.200000, 1.000000);

TextDrawColor(TeleTD1, -1);

TextDrawSetOutline(TeleTD1, 1);

TextDrawSetProportional(TeleTD1, 1);

TeleTD2 = TextDrawCreate(210.000000, 420.000000, "_");

TextDrawBackgroundColor(TeleTD2, 255);

TextDrawFont(TeleTD2, 1);

TextDrawLetterSize(TeleTD2, 0.200000, 1.000000);

TextDrawColor(TeleTD2, -1);

TextDrawSetOutline(TeleTD2, 1);

TextDrawSetProportional(TeleTD2, 1);

TeleTD3 = TextDrawCreate(210.000000, 410.000000, "_");

TextDrawBackgroundColor(TeleTD3, 255);

TextDrawFont(TeleTD3, 1);

TextDrawLetterSize(TeleTD3, 0.200000, 1.000000);

TextDrawColor(TeleTD3, -1);

TextDrawSetOutline(TeleTD3, 1);

TextDrawSetProportional(TeleTD3, 1);

[/pawn]

dar nu gasesc la mine in gm ceva asemanator..

Link to comment
Share on other sites

Vezi pe la ShowOnTextDraw.

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Vezi pe la ShowOnTextDraw.

nu am gasit nimica legat de TD...

p.s la celelalte nu are nime idee? cum sa fac un td pentru cand cineva moare sa apara pe ecran ai murit si ceva mesaj intr-o boxa.. doar cum sa il adauga si sa raman pe ecran pana il spawneaza..

Link to comment
Share on other sites

Uite [pawn]{

    SendDeathMessage(killerid, playerid, reason);

    GameTextForPlayer(playerid, "~r~Ai murit !", 5000, 2);

    PlayerInfo[playerid][Deaths]++;

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

    if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)

{

    PlayerInfo[killerid][Kills]++;

}

return 1;

}[/pawn]

Pune asta la OnPlayerDeath , sper sa iti mearga .

Daca ma inrolati in razboi ma declar inapt caci nu vreau sa fiu erou intr-o tara te ca*at .

Link to comment
Share on other sites

Uite [pawn]{

    SendDeathMessage(killerid, playerid, reason);

    GameTextForPlayer(playerid, "~r~Ai murit !", 5000, 2);

    PlayerInfo[playerid][Deaths]++;

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

    if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)

{

    PlayerInfo[killerid][Kills]++;

}

return 1;

}[/pawn]

Pune asta la OnPlayerDeath , sper sa iti mearga .

Stiu dar asta e anounce.. eu am un textdrow si vreu sa il pun..

nime nu stie cum schimb td la teleporturi?

Link to comment
Share on other sites

Daca vrei sa apara TD-u cu teleport...ca cineva sa teleportat la dm-ul x trebuie sa creezi un alt stock , daca vrei sa-l modifici pe acesta unde este ... NormalTele( playerid, "Las Venturas", "Las Venturas ~g~~h~- /lv", modifici cu ce vrei tu in fine...TD-ul nu se numeste "NormalTele" se numeste TeleTD1 / 2 , specifica mai bine ce anume vrei sa faci si te voi rezolva:)

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Daca vrei sa apara TD-u cu teleport...ca cineva sa teleportat la dm-ul x trebuie sa creezi un alt stock , daca vrei sa-l modifici pe acesta unde este ... NormalTele( playerid, "Las Venturas", "Las Venturas ~g~~h~- /lv", modifici cu ce vrei tu in fine...TD-ul nu se numeste "NormalTele" se numeste TeleTD1 / 2 , specifica mai bine ce anume vrei sa faci si te voi rezolva:)

Mersi, sefu:D..

Sa mai explica odata eu am facut un td cu textul ai murit si o caseta neagra cum o adauga?, care ar fii forumla dupa care sa fac new.. timpul si aste..

p.s andy s-o suparat si nu mai o sa raspunda pe forum ca i-o dat vyorel warn pt id de mess in semndatura.

Link to comment
Share on other sites

acea "casuta neagra" este box :)o faci cu zamaroth editor ( scriptu' )

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

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.