[POMOC] /gotoxyz Komanda !

3. Maj 2011.
1,380
pregleda
7
postova
Rum-burek
3
Hustler
3. Maj 2011.
Skripta koju koristim: Wild Wild West OWAA (Moj GameMode od nule)
Detaljan opis problema: Trebam komandu (npr. /gotoxyz ) 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?
Kruno1407
4
Made Man
3. Maj 2011.
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄
Luis
5
Godfather
3. Maj 2011.
Ravens editaj ako ti pase
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto \"");
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;
}
Rum-burek
3
Hustler
3. Maj 2011.
♪♪Kruno1407ッ wrote on May 3, 2011, 5:27 pm:
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄


Fala skinio sam idem pogledat
Luis
5
Godfather
3. Maj 2011.
Quote from May 3, 2011, 5:27 pm:
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄


Fala skinio sam idem pogledat

Evo nemoras trazit
$--L84S--$ wrote on May 3, 2011, 5:27 pm:
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto \"");
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;
}
Rum-burek
3
Hustler
3. Maj 2011.
$--L84S--$ wrote on May 3, 2011, 5:27 pm:
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄


Fala skinio sam idem pogledat

Evo nemoras trazit
$--L84S--$ wrote on May 3, 2011, 5:27 pm:
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto \"");
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:

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

😕😕
Mr.Lowrey
5
Godfather
3. Maj 2011.
if(strcmp(cmd, "/xgoto", true) == 0) 

{
  if(PlayerInfo >= 5)
  {
      new Float:x, Float:y, Float:z;
      new string;
      if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "KoriÅ¡tenje: \"/xgoto \"");
      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

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha