[ Ajuda ] Spawn Moradores
#5

Quote:
Originally Posted by [LF]PlaYer
Посмотреть сообщение
Dini й so por enquanto '-'

OnPlayerSpawn: // SetSpawnInfo nгo й uma callback O_O'
pawn Код:
public OnPlayerSpawn(playerid)
{
    LogarProf(playerid);
    TextDrawShowForPlayer(playerid,UPRelogio[playerid]);
    TextDrawHideForPlayer(playerid, TEXT0);
    TextDrawHideForPlayer(playerid, TEXT1);
    TextDrawHideForPlayer(playerid, TEXT2);
    TextDrawHideForPlayer(playerid, TEXT3);
    TextDrawHideForPlayer(playerid, TEXT4);
    TextDrawHideForPlayer(playerid, ImagemConnect);
    GangZoneShowForPlayer(playerid, favela, Amarelo);
    GangZoneShowForPlayer(playerid, areadmlv, Branco);
    emcasa[playerid] = 0;
    minUP[playerid] = dini_Int(file, "Relogioupm");
    segUP[playerid] = dini_Int(file, "Relogioups");
    TempoExp[playerid] = 0;
    if (Preso[playerid] == 0)
    {
        Preso[playerid] = 0;
    }
    if (Preso[playerid] == 1)
    {
        if (IsAdmin[playerid] > 0)
        {
            Preso[playerid] = 0;
        }
        if (GetPlayerWantedLevel(playerid) == 1)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 120000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 2)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 240000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 3)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 480000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 4)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 600000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 5)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 720000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 6)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 840000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
    }
    return 1;
}
Ah й, esqueci LOL;

Tenta:
pawn Код:
public OnPlayerSpawn(playerid)
{
    LogarProf(playerid);
    TextDrawShowForPlayer(playerid,UPRelogio[playerid]);
    TextDrawHideForPlayer(playerid, TEXT0);
    TextDrawHideForPlayer(playerid, TEXT1);
    TextDrawHideForPlayer(playerid, TEXT2);
    TextDrawHideForPlayer(playerid, TEXT3);
    TextDrawHideForPlayer(playerid, TEXT4);
    TextDrawHideForPlayer(playerid, ImagemConnect);
    GangZoneShowForPlayer(playerid, favela, Amarelo);
    GangZoneShowForPlayer(playerid, areadmlv, Branco);
    emcasa[playerid] = 0;
    minUP[playerid] = dini_Int(file, "Relogioupm");
    segUP[playerid] = dini_Int(file, "Relogioups");
    TempoExp[playerid] = 0;
    if (Preso[playerid] == 0)
    {
        Preso[playerid] = 0;
    }
    if (Preso[playerid] == 1)
    {
        if (IsAdmin[playerid] > 0)
        {
            Preso[playerid] = 0;
        }
        if (GetPlayerWantedLevel(playerid) == 1)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 120000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 2)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 240000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 3)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 480000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 4)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 600000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 5)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 720000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        else if (GetPlayerWantedLevel(playerid) == 6)
        {
            SetPlayerInterior(playerid, 6);
            Preso[playerid] = 1;
            GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
            SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
            TempoPreso[playerid] = SetTimerEx("Liberar", 840000, false, "i", playerid);
            ResetPlayerWeapons(playerid);
        }
        if (CheckCasas(playerid) > 0)// || IsMorador(playerid) == 1)
        {
            CasaX[playerid] = dini_Int(conta, "CasaX");
            CasaY[playerid] = dini_Int(conta, "CasaY");
            CasaZ[playerid] = dini_Int(conta, "CasaZ");
            SetPlayerPos(playerid, CasaX[playerid], CasaY[playerid], CasaZ[playerid]);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[ Ajuda ] Spawn Moradores - by dPlaYer_ - 08.05.2012, 18:13
Re: [ Ajuda ] Spawn Moradores - by CidadeNovaRP - 08.05.2012, 21:30
Re: [ Ajuda ] Spawn Moradores - by AmericanStyle'™ - 08.05.2012, 22:18
Re: [ Ajuda ] Spawn Moradores - by dPlaYer_ - 08.05.2012, 22:49
Re: [ Ajuda ] Spawn Moradores - by CidadeNovaRP - 08.05.2012, 22:54

Forum Jump:


Users browsing this thread: 1 Guest(s)