Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Zaključano

[Pomoc] Ne radi komanda Spawnchange

pre 12 godina
354
pregleda
7
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Djole_Johnson
Shot Caller
pre 12 godina
Skripta koju koristim: SE
Detaljan opis problema: ne radi komanda Spawnchange ja ukucam i pise da ce se spawnati u kuci ali nista
Dio skripte
           

Neke slike/video za lakse dobivanje pomoci
        if(strcmp(cmd, "/spawnchange", true) == 0)
{
if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo != 255)
        {
            if(Spectate != 255 && PlayerInfo < 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "  Ne mozes sad menjati spawn mesto !");
                return 1;
            }
            if(SpawnChange)
            {
                SendClientMessage(playerid, COLOR_GREY, "  Sada ces se spawnati na Spawnu/mafije/bande!");
                SpawnChange = 0;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "  Spawnat ces se u svojoj kuci!");
                SpawnChange = 1;
            }
        }
    }
    return 1;
}
ermin.a
Underboss
pre 12 godina
if(!strcmp(cmd, "/spawnchange", true))
{
  if(PlayerInfo != 255)
  {
      if(Spectate != 255 && PlayerInfo < 1)
        return SendClientMessage(playerid, COLOR_GREY, "  Ne mozes sad menjati spawn mesto !");
      else if(SpawnChange)
      {
        SendClientMessage(playerid, COLOR_GREY, "  Sada ces se spawnati na Spawnu/mafije/bande!");
        SpawnChange = 0;
return 1;
      }
      SendClientMessage(playerid, COLOR_GREY, "  Spawnat ces se u svojoj kuci!");
      SpawnChange = 1;
  }
  return 1;
}
Djole_Johnson
Shot Caller
pre 12 godina
Ubacio sam tvoju komandu ali opet isto,ja kucam Spawnchange pise da cu se spawnati u kuci a spawnam se u bazi.
SaVkE
Shot Caller
pre 12 godina
Probaj moje ali zameni tekst kako ti hoces :
	if(strcmp(cmd, "/spawnchange", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo != 255)
        {
if(Spectate != 255 && PlayerInfo < 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "  Sada posmatrate nekog, ne mozete sada promijeniti spawn !");
                return 1;
            }
            if(SpawnChange)
            {
                SendClientMessage(playerid, COLOR_GREY, "  Sada cete se spawnovati na vasem normalnom mestu !");
                SpawnChange = 0;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "  Spawnovacete se u vasoj kupljenoj/iznajmljenoj kuci !");
                SpawnChange = 1;
            }

    }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, " Ne posjedujete kupljenu/iznajmljenu kucu !");
            return 1;
        }
    }
    return 1;
    }
Djole_Johnson
Shot Caller
pre 12 godina
Ubacio sam i tvoju komandu ali opet isto..

Lenon trazim u modu "OnPlayerSpawn public" ali ne izbacuje nista
Djole_Johnson
Shot Caller
pre 12 godina
Hahaha 🙂🙂 evo nasao sam

evo sve do drugog Publica.
public OnPlayerSpawn(playerid)
{
////////////////////////////////////////////////////////////////////////////////
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
TextDrawHideForPlayer(playerid,SrwTxtDraw);
////////////////////////////////////////////////////////////////////////////////
AntiDeAMX();
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
TextDrawShowForPlayer(playerid,SrwTxtDraw);
TextDrawShowForPlayer(playerid,SrwTxtDraw);
TextDrawShowForPlayer(playerid,SrwTxtDraw);
TextDrawShowForPlayer(playerid,SrwTxtDraw);
////////////////////////////////////////////////////////////////////////////////
TextDrawShowForPlayer(playerid,SrwTxtDraw);
TextDrawShowForPlayer(playerid,SrwTxtDraw);
TextDrawShowForPlayer(playerid,SrwTxtDraw);
TextDrawShowForPlayer(playerid,SrwTxtDraw);
////////////////////////////////////////////////////////////////////////////////
TextDrawShowForPlayer(playerid,Sat);
////////////////////////////////////////////////////////////////////////////////
/*    if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
    {
        new npcname;
        GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
        if(!strcmp(npcname, "Bus_Driver0", true)) //Checking if the NPC's name is MyFirstNPC
        {
            JBC_PutPlayerInVehicle(playerid, NpcVozilo0, 0); //Putting the NPC into the vehicle we created for it.
            return 1;
        }
        if(!strcmp(npcname, "Bus_Driver1", true))
        {
            JBC_PutPlayerInVehicle(playerid, NpcVozilo1, 0);
            return 1;
        }
        return 1;
    }*/
InitLockDoors(playerid);
gTeam = PlayerInfo;
if (gTeam == 4)
{
gTeam = 3;
}
if(gPlayerLogged == 0 && IsPlayerNPC(playerid) != 1)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Ovaj server zahteva prvo da se prijavite pre spawnanja (Kikovan) **");
        KickPlayer = 1;
}

if(gTeam == 5)
{
    if(PlayerInfo < 1)
    {
        MedicBill = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan Organizacije, sada ste civil !");
PlayerInfo = 3;
gTeam = 3;
            SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
}
if(gTeam == 10)
{
    if(PlayerInfo != 8)
    {
        MedicBill = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan ove organizacije, sada ste civil !");
PlayerInfo = 3;
gTeam = 3;
            SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
}
if(gTeam == 2 && PlayerInfo > 3)
{
    MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste se prijavili za Policiju / FBI / SWAT, sada ste civil !");
PlayerInfo = 3;
gTeam = 3;
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}

if(PlayerInfo > 0) { SetPlayerSkin(playerid, PlayerInfo); }
else { SetPlayerSkin(playerid, PlayerInfo); }
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);
for(new i = 0; i < sizeof(Turfs); i++)
{
GangZoneShowForPlayer(playerid, i, TurfInfo);
    GangZoneShowForPlayer(playerid, crips, 0x2641FEAA);
GangZoneShowForPlayer(playerid, bloods, 0xAA3333AA);
if(gangzona == 0){GangZoneShowForPlayer(playerid,zona1,0xC0C0C096);}
else if(gangzona == 1){GangZoneShowForPlayer(playerid,zona1,0x2641FEAA);}
else if(gangzona == 2){GangZoneShowForPlayer(playerid, zona1, 0xAA3333AA);}
if(gangzona == 0){GangZoneShowForPlayer(playerid,zona2,0xC0C0C096);}
else if(gangzona == 1){GangZoneShowForPlayer(playerid,zona2,0x2641FEAA);}
else if(gangzona == 2){GangZoneShowForPlayer(playerid, zona2, 0xAA3333AA);}
if(gangzona == 0){GangZoneShowForPlayer(playerid,zona3,0xC0C0C096);}
else if(gangzona == 1){GangZoneShowForPlayer(playerid,zona3,0x2641FEAA);}
else if(gangzona == 2){GangZoneShowForPlayer(playerid, zona3, 0xAA3333AA);}
if(gangzona == 0){GangZoneShowForPlayer(playerid,zona4,0xC0C0C096);}
else if(gangzona == 1){GangZoneShowForPlayer(playerid,zona4,0x2641FEAA);}
else if(gangzona == 2){GangZoneShowForPlayer(playerid, zona4, 0xAA3333AA);}
if(gangzona == 0){GangZoneShowForPlayer(playerid,zona5,0xC0C0C096);}
else if(gangzona == 1){GangZoneShowForPlayer(playerid,zona5,0x2641FEAA);}
else if(gangzona == 2){GangZoneShowForPlayer(playerid, zona5, 0xAA3333AA);}
if(gangzona == 0){GangZoneShowForPlayer(playerid,zona6,0xC0C0C096);}
else if(gangzona == 1){GangZoneShowForPlayer(playerid,zona6,0x2641FEAA);}
else if(gangzona == 2){GangZoneShowForPlayer(playerid, zona6, 0xAA3333AA);}
        return 1;
}

return 1;
}
Djole_Johnson
Shot Caller
pre 12 godina
Ja da znam rjesit ja nebi pitao.
No.2 govorite nebuloze da nezz koristi "Search" problem je bio što sam fulao u slovu al hay ne bitno.
Ocetel rec il ne.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava