ZP mod
Results 1 to 9 of 9

Thread: ZP mod

  1. #1

    Default ZP mod

    Da li znate kako da u zombie plague modu igrac koji bude prvi zombie da ga vrati na spawn ?

  2. #2
    Junior Member Array
    Join Date
    Jul 2016
    Location
    Macedonia
    Karma
    0

    Default

    PHP Code:
    #include < amxmodx >
    #include < hamsandwich >
    #include < zombieplague >

    public plugin_init( )
    register_plugin"Respawn First ZM""1.0""DoNii" );

    public 
    zp_user_infected_postid )
    {
        if( 
    zp_get_user_first_zombieid ) )
        {
            
    ExecuteHamHam_CS_RoundRespawnid );
        }


  3. #3

    Default

    Quote Originally Posted by doni1337 View Post
    PHP Code:
    #include < amxmodx >
    #include < hamsandwich >
    #include < zombieplague >

    public plugin_init( )
    register_plugin"Respawn First ZM""1.0""DoNii" );

    public 
    zp_user_infected_postid )
    {
        if( 
    zp_get_user_first_zombieid ) )
        {
            
    ExecuteHamHam_CS_RoundRespawnid );
        }

    Hvala ti puno,treba mi jos jedna stvar.
    Kad sam zombie i kad skocim i drzim crtl odbaci me daleko,zna neko kako to da iskljucim ?
    Kao jetpack na cod modu ?

  4. #4
    Banovani spamer Array
    Join Date
    Nov 2013
    Location
    Vladimirci
    Age
    19
    Karma
    0

    Default

    Quote Originally Posted by PitacIspitivac View Post
    Hvala ti puno,treba mi jos jedna stvar.
    Kad sam zombie i kad skocim i drzim crtl odbaci me daleko,zna neko kako to da iskljucim ?
    Kao jetpack na cod modu ?
    zombieplague.cfg
    zp_leap_zombies 1 ---> stavi ovako zp_leap_zombies 0

  5. #5

    Default

    Reseno,hvala ti

    Kako u zombie plague modu 4.3 fix5a da stavim da na normalnoj infekciji zarazi 4 random igraca a ne samo jednog ?

  6. #6

    Default

    Quote Originally Posted by PitacIspitivac View Post
    Reseno,hvala ti

    Kako u zombie plague modu 4.3 fix5a da stavim da na normalnoj infekciji zarazi 4 random igraca a ne samo jednog ?
    Bump...

  7. #7

    Default

    Quote Originally Posted by PitacIspitivac View Post
    Reseno,hvala ti

    Kako u zombie plague modu 4.3 fix5a da stavim da na normalnoj infekciji zarazi 4 random igraca a ne samo jednog ?
    Bumpp

  8. #8

    Default

    Quote Originally Posted by PitacIspitivac View Post
    Bumpp
    Uspeo sam nekako da sredim ali imam jedan problem
    Primer 10 igraca ima na serveru 5 odma postane zm a ostalih 5 su humani
    Kako da sredim da svaki put uzme 3 random lika i da oni postanu zombie i kad postanu nek se vrate na spawn i onda tek krenu ?
    else
    {
    // Single Infection Mode
    g_lastmode = MODE_INFECTION

    // Turn player into the first zombie
    // iMaxZombies is rounded up, in case there aren't enough players
    iMaxZombies = floatround((iPlayersnum-(get_pcvar_num(cvar_plaguenemnum)+get_pcvar_num(cv ar_plaguesurvnum)))*get_pcvar_float(cvar_plaguerat io), floatround_ceil)
    iZombies = 0

    // Randomly turn iMaxZombies players into zombies
    while (iZombies < iMaxZombies)
    {
    // Keep looping through all players
    if (++id > g_maxplayers) id = 1

    // Dead or already a zombie or survivor
    if (!g_isalive[id] || g_zombie[id] || g_survivor[id])
    continue;

    // Random chance
    if (random_num(0, 1))
    {
    // Turn into a zombie
    zombieme(id, 0, 0, 1, 0)
    iZombies++
    }
    }
    }
    Mislim da je ovde problem al nez dal smem da je zakucam na 3 i da li bi to radilo ?
    iMaxZombies = floatround((iPlayersnum-(get_pcvar_num(cvar_plaguenemnum)+get_pcvar_num(cv ar_plaguesurvnum)))*get_pcvar_float(cvar_plaguerat io), floatround_ceil)
    Ovako
    iMaxZombies = 3
    Last edited by PitacIspitivac; 11-01-2018 at 22:08.

  9. #9

    Default

    Quote Originally Posted by PitacIspitivac View Post
    Uspeo sam nekako da sredim ali imam jedan problem
    Primer 10 igraca ima na serveru 5 odma postane zm a ostalih 5 su humani
    Kako da sredim da svaki put uzme 3 random lika i da oni postanu zombie i kad postanu nek se vrate na spawn i onda tek krenu ?
    else
    {
    // Single Infection Mode
    g_lastmode = MODE_INFECTION

    // Turn player into the first zombie
    // iMaxZombies is rounded up, in case there aren't enough players
    iMaxZombies = floatround((iPlayersnum-(get_pcvar_num(cvar_plaguenemnum)+get_pcvar_num(cv ar_plaguesurvnum)))*get_pcvar_float(cvar_plaguerat io), floatround_ceil)
    iZombies = 0

    // Randomly turn iMaxZombies players into zombies
    while (iZombies < iMaxZombies)
    {
    // Keep looping through all players
    if (++id > g_maxplayers) id = 1

    // Dead or already a zombie or survivor
    if (!g_isalive[id] || g_zombie[id] || g_survivor[id])
    continue;

    // Random chance
    if (random_num(0, 1))
    {
    // Turn into a zombie
    zombieme(id, 0, 0, 1, 0)
    iZombies++
    }
    }
    }
    Mislim da je ovde problem al nez dal smem da je zakucam na 3 i da li bi to radilo ?
    iMaxZombies = floatround((iPlayersnum-(get_pcvar_num(cvar_plaguenemnum)+get_pcvar_num(cv ar_plaguesurvnum)))*get_pcvar_float(cvar_plaguerat io), floatround_ceil)
    Ovako
    iMaxZombies = 3
    Nekako sam sklepao
    Radi kako treba
    Hvala

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •