[Pomoc]Nakon svake smrti mi se pojavljuje Spawn ekran

Započeo marsmarin, Maj 18, 2011, 19:00:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:CommunityRP
Detaljan opis problema:Kad se ubije neki igrac ili ga neko ubije uglavnom kad umre pojavljuje se onaj pocetni ekran gdje su na dnu ekrana one dvije strelice i kraj njih pise Spawn.Probao sam trazit problem i po kordinatima znaci kad mi se pokaze ta slika da upisem /save i onda da trazim te kordinate u skripti ali mi nije nista naslo.
Dio skripte:Neznam sto da stavim
Neke slike/video za lakse dobivanje pomoci(neobavezno):Evo slike što mi se prikaže nakon smrti http://imageshack.us/photo/my-images/860/samp053r.png/
<center></center>

daj OnPlayerDeath
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Evo OnPlayerDeath

public OnPlayerDeath(playerid, killerid, reason)
{
new name[MAX_PLAYER_NAME];
new string[256];
//new dmessage[128];
//new deathreason[20];
new playercash;
new victimteam;
new Float:px,Float:py,Float:pz;
new killerteam;

victimteam = gTeam[playerid];
killerteam = gTeam[killerid];
gPlayerSpawned[playerid] = 0;
GetPlayerName(playerid, name, sizeof(name));
PlayerInfo[playerid][pLocal] = 255;
GetPlayerPos(playerid, px, py, pz);
if(killerid != 255)
{
if(GetPlayerState(killerid) == 2)
{
SendClientMessage(killerid, COLOR_YELLOW, "DriveBy Ubojstvo!");
return 1;
}
}
if(reason == 38)
{
new kstring[128];
new kickname[MAX_PLAYER_NAME];
if(IsPlayerConnected(killerid))
{
GetPlayerName(killerid, kickname, sizeof(kickname));
format(string, 256, "AdmWarning: [%d]%s je ubio igraca sa minigunom, budite sigurni da nije lazno ubijanje.",killerid,kickname);
ABroadCast(COLOR_YELLOW,string,1);
printf("%s", kstring);
}
}
if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller,  COLOR_GRAD2, "   The line just went dead....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
SetPlayerWantedLevel(playerid, 0);
if(PlayerPaintballing[playerid] != 0)
{
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
        new killer[MAX_PLAYER_NAME];
        PaintballWinner = killerid;
        PaintballWinnerKills = PlayerPaintballKills[killerid];
        GetPlayerName(killerid, killer, sizeof(killer));
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(PlayerPaintballing[i] != 0)
                {
                    format(string, sizeof(string), "* %s is in the lead with %d Kills.",killer,PaintballWinnerKills);
SendClientMessage(i, COLOR_WHITE, string);
                }
            }
        }
    }
    return 1;
}
if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
{
    if(IsPlayerConnected(killerid))
    {
        if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
        {
            new killer[MAX_PLAYER_NAME];
            new dier[MAX_PLAYER_NAME];
            GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
            format(string, sizeof(string), "* %s has performed a Character Kill on you, you aren't able to play with this Character anymore.",killer);
            SendClientMessage(playerid, COLOR_LIGHTRED, string);
            format(string, sizeof(string), "** %s has Character Killed %s **",killer,dier);
            CKLog(string);
            PlayerInfo[playerid][pCK] = 1;
            if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
            else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
            if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
            else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
            KickPlayer[playerid] = 1;
        }
    }
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
    if(IsPlayerConnected(killerid))
    {
    if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
    {
        if(GoChase[killerid] == playerid)
        {
            ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}
if(victimteam >= 4)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
new slice = 100; //$100
playercash = GetPlayerMoney(playerid);
if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; } //+ 2 wanted points
if(SafeTime[playerid] <= 0)
{
if(gTeam[killerid] != gTeam[playerid])
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
PlayerInfo[playerid][pKills]--;
}
}
/*if (strlen(deathreason) > 0)// patch
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal
{
format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason);
}
else
{
format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice);
}

}
else
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
{
format(string, sizeof(string), ".: %s murdered %s :.", killer, name);
}
else
{
format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice);
}
}*/
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
{
slice = 0;
}
if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
{
slice = 0;
}
if (playercash > 0)
{
GivePlayerMoney(playerid, -slice);
}
else
{
slice = slice+500;
}
GivePlayerMoney(killerid, slice);
//GameTextForPlayer(playerid, dmessage, 5000, 2);
PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
if (((gTeam[killerid]) == 3) && reason != 49)
{
SetPlayerCriminal(killerid,255, "First Degree Murder");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
}
else if (victimteam == 2)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Cop kill
PlayerInfo[playerid][pKills]--;
if (gTeam[killerid] == 2)//cops kill cop
{
//format(string,128,".: Oficer %s murdered Oficer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
GivePlayerMoney(killerid, -suecost);
GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered Oficer %s (%s) :.",killer,name,deathreason);
    }
if (gTeam[killerid] >= 3)
{
    WantedPoints[killerid] += 2; //+ 2 wanted points
if(reason != 49)
{
SetPlayerCriminal(killerid,255, "Prvo ubojstvo");
}
else if (reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
WantedPoints[killerid]+=2;
SetPlayerWantedLevel(killerid, 2);
}
//BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 3)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
    if(WantedLevel[playerid] < 1)
    {
//format(string,128,".: Oficer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
GivePlayerMoney(killerid, -suecost);
GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
WantedPoints[killerid] += 2;
SetPlayerWantedLevel(killerid, 2);
    }
if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Prvo ubojstvo");
}
else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
    //BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 1)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
//format(string,128,".: Oficer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
GivePlayerMoney(killerid, -suecost);
GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
else if ((gTeam[killerid]) == 1)//med kill civ
{
//format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
GivePlayerMoney(killerid, -suecost);
GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
    }
if (((gTeam[killerid]) == 4) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Prvo Ubojstvo");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
    //BroadCast(COLOR_RED, string);
}
}
if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
{
    SetPlayerFree(playerid,killerid, "Got Killed");
}
killerid = INVALID_PLAYER_ID;
SetPlayerColor(playerid,COLOR_GRAD2);
return 1;
}
<center></center>

Moze biti vise razloga mozda je nesto u onplayerrequest clas itd
Poslednja Izmena: Maj 19, 2011, 14:01:34 POSLE PODNE od _MosT_WanteD_
LOL

poznaticovik

Jednostavan i kratak odgovor -

Mod je zbugan.

Uzmi original GF i vidi hoće li biti s njime problema.

Citat: _MosT_WanteD_ poslato Maj 19, 2011, 13:59:35 POSLE PODNE
Moze biti vise razloga mozda je nesto u onplayerrequest clas itd

Obriso sam sve sto pise u OnPlayerRequestClass zato jer mi je tamo bilo ono biranje(oces bit lider,civil itd) kao sto bude na pocetku u nekim gf-ovima.Tako da tamo samo pise

public OnPlayerRequestClass(playerid, classid)
{
}


Sto bi jos moglo bit reci.Gledo sam vec pod OnPlayerSpawn i SetPlayerSpawn i nevidim nista sumljivo.Recite mi vi neki gf samo da ima napravljen login i register sistem u dialogu.Pod to se pod razumijeva biranje jesi musko ili zensko,koliko imas godina itd.Napravio bi ja sam to ali nikako da shvatim dini i file.
<center></center>

Dodaj pod OnPlayerRequestClass

SpawnPlayer(playerid);

i isto dodaj pod OnPlayerDeath

kat5

Mod ti je zbugan,skini novi..

EDIT: Preporučavam ti neki kao cyber/streetstories..
Poslednja Izmena: Maj 19, 2011, 19:41:52 POSLE PODNE od メαяƒαメυѕ™

Citat: bake_pg poslato Maj 19, 2011, 19:21:42 POSLE PODNE
Dodaj pod OnPlayerRequestClass

SpawnPlayer(playerid);

i isto dodaj pod OnPlayerDeath

Pod OnPlayerDeath da dodam na kraju znaci da mi nije u nekoj zagradi osim u OnPlayerDeath ili moram dodat u neku posebnu zagradu npr

dal moram dodat ovako


public OnPlayerDeath(playerid, killerid, reason)
{
SpawnPlayer(playerid);
}


ili ovako u neku posebnu zagradu pod OnPlayerDeath


public OnPlayerDeath(playerid, killerid, reason)

if(PlayerInfo[playerid][pHeadValue] > 0)
{
    if(IsPlayerConnected(killerid))
    {
    if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
    {
       SpawnPlayer(playerid);
    }
}
}
<center></center>

omg, dodas ga iznad return 1;
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

kat5

Citat: [AG] System32 poslato Maj 20, 2011, 12:57:01 POSLE PODNE
omg, dodas ga iznad return 1;
hhahaha..Nije to cjela skripta što mu je on dao..Imaš ti još dole,za wanted,teamove....

Citat: ï¾'αяÆ'αï¾'Ï...Ñ•â,,¢ poslato Maj 20, 2011, 13:10:14 POSLE PODNE
Citat: [AG] System32 poslato Maj 20, 2011, 12:57:01 POSLE PODNE
omg, dodas ga iznad return 1;
hhahaha..Nije to cjela skripta što mu je on dao..Imaš ti još dole,za wanted,teamove....
kad ide
return 1;
}
doda iznad return




Mod : Bez vrijeÄ'anja , posljednja opomena !
Poslednja Izmena: Maj 20, 2011, 13:16:55 POSLE PODNE od [H] Matt
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Hvala puno moze lock.Hvala svima na pomoci.Sad se smijem sam sebi kako nisam mogo zakljucit da je u tome problem.
<center></center>