Jump to content
  • 0

Cum ac o comanda /exit ??plz help


Andr3y

Question

10 answers to this question

Recommended Posts

Poftim

	if(strcmp(cmdtext, "/exit", true) == 0)
    {
	   {
		 if PlayerToPoint(5,playerid,2152.2021,-1014.2098,62.8093)
		 *then
		 {
		   SetPlayerPos(playerid,773.579956,-77.096694,1000.655029);
		   SetPlayerInterior(playerid,7);
		   SendClientMessage(playerid,COLOR_1GREEN,"* Bun venit la sala! Aici iti poti imbunatatii puterea!");
		   return 1;
		 }
		}
	}

si in loc de coordonatele alea pui coordonatele tale

Link to comment
Share on other sites

Eu ti`as recomanda sa folosesti si && GetPlayerInterior ... pentru a fii sigur ca nu apar ceva probleme.

In caz ca ai si virtual world, ai putea si ala sa`l bagi: Spre exemplu:

Editez postul lui [email protected] pentru ca nu mai am chef sa fac altu.

[pawn]

if(strcmp(cmdtext, "/exit", true) == 0)

    {

  {

if( PlayerToPoint(5,playerid,2152.2021,-1014.2098,62.8093 && GetPlayerInterior == X && GetPlayerVirtualWorld == Y )

*then

{

  SetPlayerPos(playerid,773.579956,-77.096694,1000.655029);

  SetPlayerInterior(playerid,7);

  SendClientMessage(playerid,COLOR_1GREEN,"* Bun venit la sala! Aici iti poti imbunatatii puterea!");

  return 1;

}

}

}

[/pawn]

Unde, X si Y sunt INTERIORUL si VIRTUALWORLD`ul cladirii din care iesi.

Link to comment
Share on other sites

Eu ti`as recomanda sa folosesti si && GetPlayerInterior ... pentru a fii sigur ca nu apar ceva probleme.

In caz ca ai si virtual world, ai putea si ala sa`l bagi: Spre exemplu:

Editez postul lui [email protected] pentru ca nu mai am chef sa fac altu.

[pawn]

if(strcmp(cmdtext, "/exit", true) == 0)

    {

  {

if( PlayerToPoint(5,playerid,2152.2021,-1014.2098,62.8093 && GetPlayerInterior == X && GetPlayerVirtualWorld == Y )

*then

{

  SetPlayerPos(playerid,773.579956,-77.096694,1000.655029);

  SetPlayerInterior(playerid,7);

  SendClientMessage(playerid,COLOR_1GREEN,"* Bun venit la sala! Aici iti poti imbunatatii puterea!");

  return 1;

}

}

}

[/pawn]

Unde, X si Y sunt INTERIORUL si VIRTUALWORLD`ul cladirii din care iesi.

Poate cand da enter nu are "SetPlayerVirtual... etc" asa ca nare de ce sa puna " GetPlayerV...."

	if(strcmp(cmdtext, "/exit", true) == 0)
    {
	    if (PlayerToPoint(5, playerid, 227.1062,125.7774,1003.1243)) // coordonatele de unde vrei sa dai /exit!
		{
		    SetPlayerPos(playerid, 258.4353,90.5100,1002.4453); // uunde sa te spawneze dupa ce ai dat  /exit
		    SetPlayerInterior(playerid, 6); // interiorul cladiri sau ce ai tu.. daca nu ai interior pune " 0"
	            format(string, sizeof(string), "~w~Inside the ~w~LSPD"); // mesajul care vrei sa-l primesti cand dai /exit ... 
	            GameTextForPlayer(playerid, string, 1000, 1); // face parte de la mesaj
		    return 1;
		}
	}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

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