[Pomoc] Spawn

Započeo MEMOREX™️, Jun 13, 2013, 13:47:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: od 0.
Detaljan opis problema: Kad se Loginam, baca me na selo te nije mi ni dalo Skin nit mi uklonio text draw te isto SCM nije dosla...
Dio skripte:
Dialog Login:

if(dialogid == D_LOGIN)
    {
    if(!response) return SetTimerEx("KickTimer",100, false, "i", playerid);
    if(response)
    {
    new string[300];
    if(strlen(inputtext) >= 5 && strlen(inputtext) <= 25)
    {
    if(strcmp(PlayerInfo[playerid][pPass], inputtext) == 0)
    {
        INI_ParseFile(Korisnici(playerid), "UcitavanjeIgraca", .bExtra = true, .extra = playerid);
UlogovanProvjera[playerid] = 1;
PrviSpawn[playerid] = true;
        GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
        SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
        SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
        PosFunkcija(playerid);
if(fexist(BanPath(playerid)))
{
INI_ParseFile(BanPath(playerid), "LoadBan_%s", .bExtra = true, .extra = playerid);
if(BanInfo[playerid][bBanDani] > 0)
{
new dani, god, mje;
getdate(god, mje, dani);
if(BanInfo[playerid][bBanDani] > dani)
{
if(BanInfo[playerid][bBanMesec] == mje)
{
SCM(playerid, -1, "__________________BAN________________");
SCMF(playerid, -1, "ADMIN: %s", BanInfo[playerid][bBanAdmin]);
SCMF(playerid, -1, "RAZLOG: %s", BanInfo[playerid][bBanRazlog]);
SCMF(playerid, -1, "VREME DO UNBANA: %d/%d/%d", BanInfo[playerid][bBanDani], mje, god);
SCM(playerid, -1, "FORUM: www.streets-creed.info");
SCM(playerid, -1, "_____________________________________");
SetTimerEx("KickTimer",100, false, "i", playerid);
}
if(BanInfo[playerid][bBanMesec] > mje)
{
SCM(playerid, -1, "__________________BAN________________");
SCMF(playerid, -1, "ADMIN: %s", BanInfo[playerid][bBanAdmin]);
SCMF(playerid, -1, "RAZLOG: %s", BanInfo[playerid][bBanRazlog]);
SCMF(playerid, -1, "VREME DO UNBANA: %d/%d/%d", BanInfo[playerid][bBanDani], BanInfo[playerid][bBanMesec], god);
SCM(playerid, -1, "FORUM: www.streets-creed.info");
SCM(playerid, -1, "_____________________________________");
SetTimerEx("KickTimer",100, false, "i", playerid);
}
if(BanInfo[playerid][bBanGodina] > god)
{
SCM(playerid, -1, "__________________BAN________________");
SCMF(playerid, -1, "ADMIN: %s", BanInfo[playerid][bBanAdmin]);
SCMF(playerid, -1, "RAZLOG: %s", BanInfo[playerid][bBanRazlog]);
SCMF(playerid, -1, "VREME DO UNBANA: %d/%d/%d", BanInfo[playerid][bBanDani], BanInfo[playerid][bBanMesec], BanInfo[playerid][bBanGodina]);
SCM(playerid, -1, "FORUM: www.streets-creed.info");
SCM(playerid, -1, "_____________________________________");
SetTimerEx("KickTimer",100, false, "i", playerid);
}

}
}
}
        SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 1654.0858,-1658.1671,22.5156,178.6959, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
    else
    {
        PLogin[playerid] --;
            format(string, sizeof(string), "{FFFFFF}Pogresan unos lozinke:\n\n \
                    \t - Molimo vas da unesete ispravnu lozinku\n \
                    \t - Imate jos {D98719}%d{FFFFFF} pokusaja u protivnom bit ce te kick-ani.\n",PLogin[playerid]);
        SPD(playerid, D_LOGIN, DIALOG_STYLE_PASSWORD, "{F81414}SERVER - {C0C0C0}POGRESAN PASSWORD", string, "Login", "Izlaz");
        if(PLogin[playerid] == 0) { SCM(playerid,-1,"{6EF83C}[INFO] | {C0C0C0}Kikovani ste zbog previse unosa pogresne lozinke!"); SetTimerEx("KickTimer",100, false, "i", playerid); }
    }
    }
    else
    {
  PLogin[playerid] --;
    format(string, sizeof(string), "{FFFFFF}Pogresan unos lozinke:\n\n \
      \t - Lozinka mora imat minimalno 5 znakaova ,a maxilano 25 znaka\n \
        \t - Imate jos {D98719}%d{FFFFFF} pokusaja u protivnom bit ce te kick-ani.\n",PLogin[playerid]);
        SPD(playerid, D_LOGIN, DIALOG_STYLE_PASSWORD, "{F81414}SERVER - {C0C0C0}POGRESAN PASSWORD", string, "Login", "Izlaz");
        if(PLogin[playerid] == 0) { SCM(playerid,-1,"{6EF83C}[INFO] | {C0C0C0}Kikovani ste zbog previse unosa pogresne lozinke!"); SetTimerEx("KickTimer",100, false, "i", playerid); }
    }
}
    }

OnPlayerSpawn:
public OnPlayerSpawn(playerid)
{
if(UlogovanProvjera[playerid] == 0) { SCM(playerid, -1, "{6EF83C}[INFO] | {C0C0C0}Server zahtijeva login prije spawnanja!"); SetTimerEx("KickTimer",100, false, "i", playerid); }
for(new id = 1; id < sizeof(VInfo); id++)
{
if(VInfo[id][hSpawned] == 1)
{
if(VInfo[id][hZakljucan] == 1) return LockCar(VInfo[id][ownedvehicle]);
else return UnLockCar(VInfo[id][ownedvehicle]);
}
}
if(PrviSpawn[playerid] == true)
    {
gladtimer[playerid] = SetTimerEx("Glad",Min(3),true,"d",playerid);
zedtimer[playerid] = SetTimerEx("Zed",Min(2),true,"d",playerid);
        format(cmdstr, sizeof(cmdstr), "{F81414}Dobrodosao/la {C3C3C3}%s {F81414}na nas server, lijepo se provedi i zabavi.", GetName(playerid));
        SCM(playerid, -1, cmdstr);
        SCM(playerid, -1, "{F81414}Tvoja statistika ukratko:");
        format(cmdstr, sizeof(cmdstr), "{C3C3C3}Level: [{F81414}%d{C3C3C3}] | Respect: [{F81414}%d/%d{C3C3C3}] | Novac: [{F81414}%d{C3C3C3}]",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],PlayerInfo[playerid][pLevel] * 2, PlayerInfo[playerid][pCash]);
        SCM(playerid, -1, cmdstr);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
        SetPlayerColor(playerid, -1);
        SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    PrviSpawn[playerid] = false;
    for(new s = 0; s < 8; s++)
{
TextDrawHideForPlayer(playerid, CONNECT[s]);
}
TextDrawShowForPlayer(playerid, Poruke0);
TextDrawShowForPlayer(playerid, Poruke1);
TextDrawShowForPlayer(playerid, Poruke2);
TextDrawShowForPlayer(playerid, Datum0);
TextDrawShowForPlayer(playerid, Vrijeme0);
TextDrawShowForPlayer(playerid, Logo0);
TextDrawShowForPlayer(playerid, Logo1);
PlayerTextDrawHide(playerid, ZED1[playerid]);
PlayerTextDrawHide(playerid, GLAD1[playerid]);
format(cmdstr,sizeof(cmdstr),"ZED: ~w~%d%",PlayerInfo[playerid][pZed]);
PlayerTextDrawSetString(playerid,ZED1[playerid],cmdstr);
format(cmdstr,sizeof(cmdstr),"GLAD: ~w~%d%",PlayerInfo[playerid][pGlad]);
PlayerTextDrawSetString(playerid,GLAD1[playerid],cmdstr);
StopAudioStreamForPlayer(playerid);
}
SpawnPlayerEx(playerid);
if(Speced[playerid] == 1)
{
    foreach(new i : Player)
    {
        if(gSpectateID[i] == playerid) return PlayerSpectatePlayer(i, playerid);
    }
}
if(ReconON[playerid] == 1)
{
SetPlayerInterior(playerid,GetPlayerInterior(playerid));
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid));
    SetPlayerPos(playerid, ReconDest[playerid][0],ReconDest[playerid][1],ReconDest[playerid][2]);
    LoadWeapons(playerid);
    hidereconstats(playerid);
ReconON[playerid] = 0;
Speced[gSpectateID[playerid]] = 0;
return 1;
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): Netreba.

EDIT: Te mi jos nerade neke funkcije , npr: PutPlayerInVehicle, GetPlayerKeys ....
Poslednja Izmena: Jun 13, 2013, 13:51:37 POSLE PODNE od Memorex
Skriptam za pare