neXt! CoMMunITy

Bine Ati Venit !

Va Rugam Sa :

- Va Inregistrati .
- Sa Respectati Regulamentul .
- Sa Aveti O Activitate Buna .
- Sa Aveti Un Comportament Civilizat .
- Si In Special Sa Stiti Ce Este Acela Un Forum .

Mai Sunt Si Alte Lucruri , Dar Lasam Asta Pe Mai Tarziu .

Cu Respect ,

neXt! CoMMuNITy

    zp_respawn plugins

    Distribuiţi
    avatar
    SiLenTruN
    Moderator
    Moderator

    Numarul mesajelor : 188
    Data de inscriere : 28/07/2009
    Localizare : Pe scaun in fata calculatorului
    Joburi/Distractii : Counte-Strike - PhotoShop - Fotbal
    Stare de spirit : Buna

    zp_respawn plugins

    Mesaj Scris de SiLenTruN la data de Mier Aug 05, 2009 7:34 pm

    Descriere:
    Acest plugin este folositor pentru modul zombie plague si zombie sworm
    , cu acest plugin instalat pe server veti avea respawn la zombie .

    Descarcare: http://www.netdrive.ws/161898.html

    Nume: zp_respawn
    Versiune: 3.24
    Code:

    Code:
    #include
    #include
    #include
    #include
    #include
    #include

    #define PLUGNAME "Swarm Round Respawning"
    #define AUTHOR "GeNEraLuL"
    #define VERSION "3.24"

    #define MAX_SPAWNS 60
    #define MAX_SPEAK 10

    new Float:ZPSRtime[33]
    new SOrigin[33][3];

    new Float:g_SpawnVecs[MAX_SPAWNS][3];
    new Float:g_SpawnAngles[MAX_SPAWNS][3];
    new Float:g_SpawnVAngles[MAX_SPAWNS][3];
    new g_TotalSpawns;

    new zp_SRRespawn, zp_SRRspawns, zp_SRRtime, zp_SRRmaxtime
    public plugin_init()
    {

    register_plugin(PLUGNAME, VERSION, AUTHOR)

    zp_SRRespawn = register_cvar("zp_SRRespawn", "1")
    zp_SRRspawns = register_cvar("zp_SRRspawns", "0")
    zp_SRRtime = register_cvar("zp_SRRtime", "10.0")
    zp_SRRmaxtime = register_cvar("zp_SRRmaxtime", "3.0")

    register_event("DeathMsg","DeathEvent","a")

    readSpawns()
    set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET);
    }

    readSpawns()
    {

    new Map[32], config[32], MapFile[64];

    get_mapname(Map, 31)
    get_configsdir(config, 31 )
    format(MapFile, 63, "%s\csdm\%s.spawns.cfg", config, Map);
    g_TotalSpawns = 0;

    if (file_exists(MapFile))
    {
    new Data[124], len;
    new line = 0;
    new pos[12][8];

    while(g_TotalSpawns < MAX_SPAWNS && (line = read_file(MapFile , line , Data , 123 , len) ) != 0 )
    {
    if (strlen(Data)<2 || Data[0] == '[')
    continue;


    parse(Data, pos[1], 7, pos[2], 7, pos[3], 7, pos[4], 7, pos[5],
    7, pos[6], 7, pos[7], 7, pos[8], 7, pos[9], 7, pos[10], 7);

    g_SpawnVecs[g_TotalSpawns][0] = str_to_float(pos[1]);
    g_SpawnVecs[g_TotalSpawns][1] = str_to_float(pos[2]);
    g_SpawnVecs[g_TotalSpawns][2] = str_to_float(pos[3]);

    g_SpawnAngles[g_TotalSpawns][0] = str_to_float(pos[4]);
    g_SpawnAngles[g_TotalSpawns][1] = str_to_float(pos[5]);
    g_SpawnAngles[g_TotalSpawns][2] = str_to_float(pos[6]);

    g_SpawnVAngles[g_TotalSpawns][0] = str_to_float(pos[7]);
    g_SpawnVAngles[g_TotalSpawns][1] = str_to_float(pos[8]);
    g_SpawnVAngles[g_TotalSpawns][2] = str_to_float(pos[9]);


    g_TotalSpawns++;
    }

    log_amx("Loaded %d spawn points for map %s.", g_TotalSpawns, Map)
    } else {
    log_amx("No spawn points file found (%s)", MapFile)
    }

    return 1;
    }

    public spawn_Preset(id)
    {
    if (g_TotalSpawns < 2)
    return PLUGIN_CONTINUE

    new list[MAX_SPAWNS];
    new num = 0;
    new final = -1;
    new total=0;
    new players[32], n, x = 0;
    new Float:loc[32][3], locnum

    get_players(players, num)
    for (new i=0; i

      Acum este: Mar Dec 18, 2018 3:42 am