[POMOC] Spawn

19. Jul 2012.
825
pregleda
14
postova
Edinblack1994
3
Wheel Man
19. Jul 2012.
Skripta koju koristim: RPG/DM Mod
Detaljan opis problema: Znaci kad udjem u account upisem password ono mene izbaci gore iznad ballas baze i letim tj padam dole. Kordinate su mi normalne ali opet isto.
Dio skripte: dole
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://i.imgur.com/PYeQU.png
public OnPlayerSpawn(playerid)
{
//------------------------------------------------------------------------------
        InitLockDoors(playerid);
        STDPlayer = 0;
        if(IsPlayerNPC(playerid)) return 1;
//------------------------------------------------------------------------------

        if(PlayerInfo == 0 || PlayerInfo == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1715.8232,-1931.6327,13.5680);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo = 0;
        return 1;
    }
if (gTeam == 4) //medic / criminal reset team
        {
                gTeam = 3;
        }
        if(gPlayerLogged == 0)
        {
        SendClientMessage(playerid, COLOR_LIGHTRED, "**Moras se logirati prije spawna **");
        KickPlayer = 1;
        }
        if(gTeam == 11 && PlayerInfo < 1)
        {
            MedicBill = 0;
            new rand = random(sizeof(CIV));
                SendClientMessage(playerid, COLOR_LIGHTRED, "Ti nisi jedan lider ti si ponovo civil !");
                SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
                PlayerInfo = CIV;
                SpawnPlayer(playerid);
        }
        if(gTeam == 5)
        {
            if(PlayerInfo < 1)
            {
                MedicBill = 0;
                new rand = random(sizeof(CIV));
                        SendClientMessage(playerid, COLOR_LIGHTRED, "Nisi clan Family-e, sada si Civil !");
            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, "You are not a Member of this Agency, you are now a Civilian !");
            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, "You haven't applied for being an Officer / FBI / National Guard, you are now a Civilian !");
                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); }
        SetPlayerWeapons(playerid);
        SetPlayerSpawn(playerid);
        SetPlayerToTeamColor(playerid);
        for(new i = 0; i < sizeof(Turfs); i++)
        {
            GangZoneShowForPlayer(playerid, i, TurfInfo);
        }
        return 1;
}

public CKLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("ck.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public PayLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("pay.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public KickLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("kick.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public BanLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("ban.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public AdmWarnLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("admwarn.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}
CadrRa
5
Kingpin
19. Jul 2012.
Mozda ti koordinate nisu ok,ali meni ovaj code izgleda sasvim dobro...

        if(PlayerInfo == 0 || PlayerInfo == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid, 1715.8232,-1931.6327,13.5680);
    SetPlayerFacingAngle(playerid, 180);
    PlayerInfo = 0;
        return 1;
          }
Don Eagle
4
Made Man
19. Jul 2012.
Kada pada sa neba u kojoj si organizaciji , i posalji mi taj deo od te org gde ti propada.
Edinblack1994
3
Wheel Man
19. Jul 2012.
civil sam tu
Deleted User
Obrisan korisnik
19. Jul 2012.
To sam ja bolan, Ryan posta, al nema veze. Rekao sam mu da to uradi ...

Ubačene su i kordinate sa org spawnove, i sve su radile do sada, ne znam što se zeznulo, sad dali je nešto kod OnPlayerDeath/Spawn/Login ne znam, znači nešto ne valja, upišem password i igrač leti iznad Ballas baze, a ja civil ? Kakve veze ima Ballas baza sa civilima.
Edinblack1994
3
Wheel Man
19. Jul 2012.
Ovako mi je jedan napiso.

Citat:

Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito
CadrRa
5
Kingpin
19. Jul 2012.
Quote from July 19, 2012, 6:36 pm:
Ovako mi je jedan napiso.

Citat:

Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito

Mislim da taj nema pojma.
Edinblack1994
3
Wheel Man
19. Jul 2012.
Quote from July 19, 2012, 6:36 pm:
Ovako mi je jedan napiso.

Citat:

Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito

Mislim da taj nema pojma.

Mislim i ja.

Pitam se, kakave veze ima objekti sa spawnom ?
Edinblack1994
3
Wheel Man
19. Jul 2012.
Sorry za DP. Moze li iko pomoci - vazno je.

Probo sam ovo.
replace
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);

u ovo :
SetSpawnInfo(playerid, gTeam, CIV,1715.8232,-1931.6327,13.5680, 180,0,0,0,0,0,0);


Ali opet nece.
CadrRa
5
Kingpin
19. Jul 2012.
Quote from July 19, 2012, 7:13 pm:
Sorry za DP. Moze li iko pomoci - vazno je.

Probo sam ovo.
replace
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);

u ovo :
SetSpawnInfo(playerid, gTeam, CIV,1715.8232,-1931.6327,13.5680, 180,0,0,0,0,0,0);


Ali opet nece.

stavi skroz neke lijeve koordinate spawna i vidi da li radi,daj vamo OnPlayerSpawn
Edinblack1994
3
Wheel Man
19. Jul 2012.
OnPlayerSpawn.
public OnPlayerSpawn(playerid)
{
//------------------------------------------------------------------------------
        InitLockDoors(playerid);
        STDPlayer = 0;
        if(IsPlayerNPC(playerid)) return 1;
//------------------------------------------------------------------------------

            SetPlayerInterior(playerid,0);//setting interior for a player that doesn't match any criteria below
            SetPlayerPos(playerid, 1715.8232,-1931.6327,13.5680); //setting position for a player that doesn't match any criteria below
            SetPlayerFacingAngle(playerid, 180);//setting angle for a player that doesn't match any criteria below

        if(PlayerInfo == 0 || PlayerInfo == 0)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid, 1715.8232,-1931.6327,13.5680);
            SetPlayerFacingAngle(playerid, 180);
            PlayerInfo = 0;
            return 1;
        }
        if (gTeam == 4) //medic / criminal reset team
        {
                gTeam = 3;
        }
        if(gPlayerLogged == 0)
        {
        SendClientMessage(playerid, COLOR_LIGHTRED, "**Moras se logirati prije spawna **");
        KickPlayer = 1;
        }
        if(gTeam == 11 && PlayerInfo < 1)
        {
            MedicBill = 0;
            new rand = random(sizeof(CIV));
                SendClientMessage(playerid, COLOR_LIGHTRED, "Ti nisi jedan lider ti si ponovo civil !");
                SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
                PlayerInfo = CIV;
                SpawnPlayer(playerid);
        }
        if(gTeam == 5)
        {
            if(PlayerInfo < 1)
            {
                MedicBill = 0;
                new rand = random(sizeof(CIV));
                        SendClientMessage(playerid, COLOR_LIGHTRED, "Nisi clan Family-e, sada si Civil !");
            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, "You are not a Member of this Agency, you are now a Civilian !");
            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, "You haven't applied for being an Officer / FBI / National Guard, you are now a Civilian !");
                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); }
        SetPlayerWeapons(playerid);
        SetPlayerSpawn(playerid);
        SetPlayerToTeamColor(playerid);
        for(new i = 0; i < sizeof(Turfs); i++)
        {
            GangZoneShowForPlayer(playerid, i, TurfInfo);
        }
        return 1;
}

public CKLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("ck.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public PayLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("pay.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public KickLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("kick.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public BanLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("ban.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}

public AdmWarnLog(string[])
{
        new entry;
        format(entry, sizeof(entry), "%s\n",string);
        new File:hFile;
        hFile = fopen("admwarn.log", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
}
CadrRa
5
Kingpin
19. Jul 2012.
Hajde stavi ovako za civile
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469); //ovo je na aerodromu,vidi da li ce da ti radi
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
Deleted User
Obrisan korisnik
19. Jul 2012.
Quote from July 19, 2012, 8:54 pm:
Hajde stavi ovako za civile
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469); //ovo je na aerodromu,vidi da li ce da ti radi
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
Ne može brate, opet je sve isto ...
Edinblack1994
3
Wheel Man
19. Jul 2012.
Rjeseno.

Hvala svima.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha