GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: Monster2211 - 2013. június 01. - 09:34:45

Cím: Sorompó fs
Írta: Monster2211 - 2013. június 01. - 09:34:45
Helló itt a sorompó scriptem már próbáltam move object és set obeject rottal is de nem nyílik ki úgy ahogy én szertném  úgy nyílik ki hogy egybõl fel aztán meg egybõl le.Ha valaki tudja hogy mi a gond kérem segitsen    :)
 
//Mod elején:
#include <a_samp>
#include zcmd
#include <fixchars>
#include sscanf2
new bool:gateopen;
new pdkapu;
forward GateCheck(playerid);
//Gamemode init alatt:
public OnGameModeInit()
{
pdkapu = CreateObject(968, 1702.3000488281, 348.29998779297, 29.299999237061, 0, 270, 0);
SetTimer(\"GateCheck\",5000, 1);
return 1;
}
public GateCheck(playerid)
{
  for(new i; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerInRangeOfPoint(i,2.0,1699,348.60,29.89))
    {
      if(gateopen == false)
      {
        SetObjectRot(pdkapu,0, 358, 0); // barrier closed after command
        gateopen = true;
      }
      return 1;
    }
  }
  if(gateopen == true)
  {
    SetObjectRot(pdkapu,0, 270, 0); // barrier closed after command
    gateopen = false;
  }
  return 1;
}
Cím: Sorompó fs
Írta: xD1999 - 2013. június 01. - 18:56:02
add ide a kinyitot és bezárt koordinátát!És megcsinálom