[POMOC] /gotoxyz Komanda !


Započeo [Banana$]ReadMe.txt, Maj 03, 2011, 19:21:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Wild Wild West OWAA (Moj GameMode od nule)
Detaljan opis problema: Trebam komandu (npr. /gotoxyz [koordinati]) da kad netko upise
"/gotoxyz 2457.731689,-1054.671875,59.959186"
Da ga teleportira do koordinata "2457.731689,-1054.671875,59.959186"

Dio skripte: /-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/


Mozete li pomoc?
hakler xD


Ravens editaj ako ti pase
Kod: c
dcmd_xgoto(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 5)
	{
		new Float:x, Float:y, Float:z;
		new string[100];
		if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
		else
		{
		    if(IsPlayerInAnyVehicle(playerid))
		    {
		        SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
			}
			else
			{
		    	SafeSetPlayerPos(playerid, x, y, z);
			}
		    format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
		    SendClientMessage(playerid, 0xBBBBBBAA, string);
	 	}
	}
 	return 1;
}
Poslednja Izmena: Maj 03, 2011, 19:37:00 POSLE PODNE od $--L84S--$

Citat: ♪♪Kruno1407ッ poslato Maj 03, 2011, 19:27:44 POSLE PODNE
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven :D

Fala skinio sam idem pogledat
hakler xD

Citat: [Banana$]ReadMe.txt poslato Maj 03, 2011, 19:28:12 POSLE PODNE
Citat: ♪♪Kruno1407ッ poslato Maj 03, 2011, 19:27:44 POSLE PODNE
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven :D

Fala skinio sam idem pogledat
Evo nemoras trazit
Citat: $--L84S--$ poslato Maj 03, 2011, 19:27:59 POSLE PODNE
Kod: c
dcmd_xgoto(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 5)
	{
		new Float:x, Float:y, Float:z;
		new string[100];
		if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
		else
		{
		    if(IsPlayerInAnyVehicle(playerid))
		    {
		        SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
			}
			else
			{
		    	SafeSetPlayerPos(playerid, x, y, z);
			}
		    format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
		    SendClientMessage(playerid, 0xBBBBBBAA, string);
	 	}
	}
 	return 1;
}


Citat: $--L84S--$ poslato Maj 03, 2011, 19:28:45 POSLE PODNE
Citat: [Banana$]ReadMe.txt poslato Maj 03, 2011, 19:28:12 POSLE PODNE
Citat: ♪♪Kruno1407ッ poslato Maj 03, 2011, 19:27:44 POSLE PODNE
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven :D

Fala skinio sam idem pogledat
Evo nemoras trazit
Citat: $--L84S--$ poslato Maj 03, 2011, 19:27:59 POSLE PODNE
Kod: c
dcmd_xgoto(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 5)
	{
		new Float:x, Float:y, Float:z;
		new string[100];
		if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
		else
		{
		    if(IsPlayerInAnyVehicle(playerid))
		    {
		        SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
			}
			else
			{
		    	SafeSetPlayerPos(playerid, x, y, z);
			}
		    format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
		    SendClientMessage(playerid, 0xBBBBBBAA, string);
	 	}
	}
 	return 1;
}


E JBG-a KAD ME JE*E DCMD....
Mozes li stavit u ono obicno:

Kod: c
if(strcmp(cmd, "/xgoto", true) == 0)


??????
hakler xD

Kod: c
if(strcmp(cmd, "/xgoto", true) == 0)  

{
   if(PlayerInfo[playerid][pAdmin] >= 5)
   {
      new Float:x, Float:y, Float:z;
      new string[100];
      if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "KoriÅ¡tenje: \"/xgoto <X Float> <Y Float> <Z Float>\"");
      else
      {
          if(IsPlayerInAnyVehicle(playerid))
          {
              SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
         }
         else
         {
             SafeSetPlayerPos(playerid, x, y, z);
         }
          format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
          SendClientMessage(playerid, 0xBBBBBBAA, string);
       }
   }
    return 1;
}

so hard? Btw. moras imati sscanf
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √