Jump to content

Problema GPS


Daedric-Fox

Recommended Posts

Am o problema cu un gps pe dialog, daca vreau sa inched caseta da server closed conections dcccc?

#define DIALOG_GPSXX 1000
public onplayercommandtext

if(strcmp(cmd, "/gps", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
	    ShowPlayerDialog(playerid, DIALOG_GPSXX, DIALOG_STYLE_LIST, "{0060C7}Locatii", "1.24/7\n2.Spawn\n3.Primarie\n4.Politie\n5.Scoala de soferi\n6.Talcioc\n7.Spital\n8.Pay&Spray\n9.Benzinarie\n10.CNN LS\n11.RentCar LS", "Alege", "Inchide");
		}
		return 1;
	}
public OnDialogReponse

if(dialogid == DIALOG_GPSXX)
	{
		if(response)
		{
  			if(listitem == 0)
	    	{
      			SetPlayerCheckpoint(playerid, 1832.3695,-1842.4321,13.5781, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre 25/7, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 1)
	    	{
      			SetPlayerCheckpoint(playerid, 1742.3102,-1864.4612,13.5738, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Spawn, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 2)
	    	{
      			SetPlayerCheckpoint(playerid, 1481.6260,-1769.6552,18.7958, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Primarie, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 3)
	    	{
      			SetPlayerCheckpoint(playerid, 1552.7009,-1674.8562,16.1953, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Politie, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 4)
	    	{
      			SetPlayerCheckpoint(playerid, 1411.9652,-1701.6555,13.5395, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Scoala de Soferi, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 5)
	    	{
      			SetPlayerCheckpoint(playerid, 1125.5698,-1378.6404,13.8525, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Talcioc, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 6)
	    	{
      			SetPlayerCheckpoint(playerid, 1173.2520,-1323.0513,15.3943, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Spital, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 7)
	    	{
      			SetPlayerCheckpoint(playerid, 1026.5667,-1032.5708,31.5558, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Pay&Spray, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 8)
	    	{
      			SetPlayerCheckpoint(playerid, 998.7628,-932.5042,41.9068, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre Benzinarie, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 9)
	    	{
      			SetPlayerCheckpoint(playerid, 847.0415,-1042.5847,25.5017, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre CNN LS, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 10)
	    	{
      			SetPlayerCheckpoint(playerid, 562.4542,-1288.9203,17.2482, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre RentCar LS, mergi la punctul rosu de pe harta !");
			}
			if(listitem == 11)
	    	{
      			SetPlayerCheckpoint(playerid, 562.4542,-1288.9203,17.2482, 3);
	        	SendClientMessage(playerid, COLOR_BLUE, "Ai activat GPS-ul catre RentCar LS, mergi la punctul rosu de pe harta !");
			}
		}
	}

OnPlayerEnterCheckpoint

	if PlayerToPoint(5,1832.3695,-1842.4321,13.5781)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
 	if PlayerToPoint(5,1742.3102,-1864.4612,13.5738)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,1481.6260,-1769.6552,18.7958)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,1552.7009,-1674.8562,16.1953)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,1411.9652,-1701.6555,13.5395)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,1125.5698,-1378.6404,13.8525)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,1173.2520,-1323.0513,15.3943)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,1026.5667,-1032.5708,31.5558)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,998.7628,-932.5042,41.9068)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,847.0415,-1042.5847,25.5017)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}
	if PlayerToPoint(5,562.4542,-1288.9203,17.2482)
	*then
	{
	    DisablePlayerCheckpoint(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "Ai ajuns la destinatie, GPS-ul a fost dezactivat!");
	}

 

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

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.