Jump to content
  • 0

Cerere Ajutor text ro/eng


xt3z0ne

Question

Nick:Johnny

Problema:Pai mam pus sa fac un server de stunt dar vreau sal fac si Ro/Eng dar cand dau /kill nu apare text-u RO Ai murit sau Eng You died nush ce sai mai fac...

Erori / warnings:~~

Lini/script:

[pawn]

CMD:kill(playerid,params[])

{

    SetPlayerHealth(playerid,0);

    if(Limba[playerid] == 1)

    {

     

          SendClientMessage(playerid,-1,"{F5BD00}Ai murit");

    }

    if(Limba[playerid] == 0)

    {

          SendClientMessage(playerid,-1,"{F5BD00}You died");

    }

    return 1;

}

[/pawn]

Ai incercat sa rezolvi singur ?:Nu ca nush ce are..

Sunt un retardat

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

CMD:kill(playerid,params[])
{
     SetPlayerHealth(playerid,0);
	 switch( Limba[playerid] )
	 {
		case 0: SendClientMessage(playerid,-1,"{F5BD00}You died"); // Daca variabila limba este egala cu 0 ii va da sendclientmessage asta .
		case 1: SendClientMessage(playerid,-1,"{F5BD00}Ai murit"); // Daca variabila limba este egala cu 1 ii va da sendclientmessage asta .
	 }
     return 1;
}

Link to comment
Share on other sites

CMD:kill(playerid,params[])
{
     SetPlayerHealth(playerid,0);
	 switch( Limba[playerid] )
	 {
		case 0: SendClientMessage(playerid,-1,"{F5BD00}You died"); // Daca variabila limba este egala cu 0 ii va da sendclientmessage asta .
		case 1: SendClientMessage(playerid,-1,"{F5BD00}Ai murit"); // Daca variabila limba este egala cu 1 ii va da sendclientmessage asta .
	 }
     return 1;
}

Mersii chiar am vrut sa fac comenzile pe  switch dar nu prea am crezut.

Sunt un retardat

Link to comment
Share on other sites

T/C. Topic Solved.

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.