Jump to content
  • 0

pomoc [Help] Líná brána


Guest Kocourek

Dotaz

ahojky udělal sem si Adminostrov2 By kocourek, mam tam pár kktin jako třeba brána na runwayi atd.. ale je tu aj lína brána plz help:

 

v pawnu mam

 

if(strcmp("/bdown", cmdtext, true) == 0)
{
  if(IsPlayerAdmin(playerid))
  {
  MoveObject(lolak, -2988.885,210.745,18.954,5);
  MoveObject(entrance, -3001.351,210.728,18.979,5);
  SendClientMessage(playerid, 0xAAAAAAAA, "Kocourek: Otevrel si hlavni branu.");
  }
  else
  {
  return SendClientMessage(playerid,0xFF0000AA,"Server: Unknown Command");
  }
  return 1;
}

if(strcmp("/bup", cmdtext, true) == 0)
{
  if(IsPlayerAdmin(playerid))
  {
  MoveObject(lolak, -2988.885,210.745,18.954,5);
  MoveObject(entrance, -3001.364,210.721,24.475,5);
  SendClientMessage(playerid, 0xAAAAAAAA, "Kocourek: zavrel si hlavni branu.");
  }
  else
  {
  return SendClientMessage(playerid,0xFF0000AA,"Server: Unknown Command");
  }
  return 1;
}

 

ta brána ''entrance'' sjede dolu na přikaz /bdown ale když napíšu /bup zůstane dole :-D plz pomocte protože je to ''lína brana'' a nak mi nejezdí a je to součástí všeho..

Link to comment
Share on other sites

9 odpovědí na tuto otázku

Recommended Posts

  • 0

nwm co tam mas spatne,pac ja jsem jeste branu nedelal :rap: :d ale skus si to dat na hamachi,muze to byt i lagovanim serveru....Skus to na hamachi a napis,nebo skusime to spolu napis na ICq 375-218-957 ;) ;)

Link to comment
Share on other sites

  • 0
FreeWall":ps5r5joj]za 1. zkontroluj si souřadnice bran a za 2. lol :d
else

{

return SendClientMessage(playerid,0xFF0000AA,"[Server: Unknown Command");

}

xD já to chtěl trošku skurvit, stejně se to píše v červenym xD

Link to comment
Share on other sites

  • 0

breaku, když napišu /bdown, tak to sjede, ale /bup nejde, zůstane tam, prostě jakoby se rozbila, to nemuže bejt souřadnice když se liši od te jedny, id objektu taky ne, protože sem nic neměnil

Link to comment
Share on other sites

  • 0

//Adminisle2 by Kocourek, please dont delete it, it's just for you!
#include 

new garage2;
new garage1;
new lolak;
new entrance;
new leti;
new pada;
new binec;
new venek;
new runway;
#define COLOR_BLUE 0x0000BBAA

#pragma tabsize 0

public OnFilterScriptInit()
{
lolak = CreateObject(980,-2988.860,210.770,24.428,0.0,0.0,-90.000); // closed 1 gate
entrance = CreateObject(980,-3001.364,210.721,24.475,0.0,0.0,-90.000); // Close 2 gate
return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp("/bdown", cmdtext, true) == 0)
{
  if(IsPlayerAdmin(playerid))
  {
  MoveObject(lolak, -2988.885, 210.745, 18.954, 5);
  MoveObject(entrance, -3001.351, 210.728, 18.979, 5);
  SendClientMessage(playerid, 0xAAAAAAAA, "Kocourek: Otevrel si hlavni branu.");
  }
  else
  {
  return SendClientMessage(playerid,0xFF0000AA,"Server: Unknown Command");
  }
  return 1;
}

if(strcmp("/bup", cmdtext, true) == 0)
{
  if(IsPlayerAdmin(playerid))
  {
  MoveObject(lolak, -2988.885,210.745,18.954,5);
  MoveObject(entrance, -3001.364,210.721,24.475,5);
  SendClientMessage(playerid, 0xAAAAAAAA, "Kocourek: zavrel si hlavni branu.");
  }
  else
  {
  return SendClientMessage(playerid,0xFF0000AA,"Server: Unknown Command");
  }
  return 1;
}

 

trošku skráceny no co mam dělat :) jestly chceš pošlu ti ho na icq nebo skype nebo doprdele..

Link to comment
Share on other sites

  • 0

omg ještě že sme ti všichni říkali ať si zkontroluješ souřadnice viď ? u 1. příkazu máš MoveObject(lolak, -2988.885, 210.745, 18.954, 5); a u 2. příkazu to samý MoveObject(lolak, -2988.885, 210.745, 18.954, 5); - u druhýho příkazu dej místo toho tuto :

MoveObject(lolak, -2988.860,210.770,24.428, 5);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...