Raised This Month: $51 Target: $400
 12% 

Help / Support [Solver][ Thank's To aliedmodders


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 10-09-2015 , 15:28   [Solver][ Thank's To aliedmodders
Reply With Quote #1

Solver
sorry for my bad english
__________________

Last edited by amir saiaoud; 10-16-2015 at 15:19.
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-09-2015 , 18:20   Re: [Req ] Make Randomly nemesis
Reply With Quote #2

use the admin menu and chose start game mode... >.>
Depresie is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-10-2015 , 01:07   Re: [Req ] Make Randomly nemesis
Reply With Quote #3

Zp version?
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 10-10-2015 , 07:21   Re: [Req ] Make Randomly nemesis
Reply With Quote #4

ZPA
__________________
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-10-2015 , 08:18   Re: [Req ] Make Randomly nemesis
Reply With Quote #5

Great i searched over google no one has made it

I will do it once i get home so gimme one hour
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 10-10-2015 , 08:37   Re: [Req ] Make Randomly nemesis
Reply With Quote #6

okay bro
__________________
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-10-2015 , 11:54   Re: [Req ] Make Randomly nemesis
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <zombie_plague_advance>

#define PLUGIN "[ZP] Random Nemesis"
#define VERSION "1.0"
#define AUTHOR "Chuha"

new g_MaxPlayers
new g_endround

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /nemesis""cmd_nemesis")
    
g_MaxPlayers get_maxplayers()
}

public 
cmd_nemesis(id)
{
    
// Get alive players count
    
static iPlayersnum
    iPlayersnum 
fnGetAlive()

    new 
random fnGetRandomAlive(random_num(1iPlayersnum))

    if (
zp_has_round_started() == || g_endround)
        {
            
client_print(idprint_chat"[ZP] You can't start Nemesis round now!")
            return 
PLUGIN_HANDLED
        
}

    
zp_make_user_nemesis(random)
    
client_print(idprint_chat"[ZP] You have started Nemesis round!")

    return 
PLUGIN_CONTINUE
}

public 
event_round_start()
{
    
g_endround false
}


public 
logevent_round_end()
{
    
g_endround true
}

// Get Alive Count -returns alive players number
stock fnGetAlive()
{
    new 
iAliveid
    
    
for (id 1id <= g_MaxPlayersid++)
    {
        if (
is_user_alive(id))
            
iAlive++
    }
    
    return 
iAlive;
}

// Get Random Alive -returns index of alive player number target_index
stock fnGetRandomAlive(target_index)
{
    new 
iAliveid
    
    
for (id 1id <= g_MaxPlayersid++)
    {
        if (
is_user_alive(id))
            
iAlive++
        
        if (
iAlive == target_index)
            return 
id;
    }
    
    return -
1;


Last edited by Chihuahuax; 10-10-2015 at 11:56.
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-10-2015 , 14:32   Re: [Req ] Make Randomly nemesis
Reply With Quote #8

why to do it ? isnt there an option to start a game mode in the ZPA admin menu?
on zp 5.0 i have a menu to start game modes, and if i start nemesis game mode, it will choose a random player
Depresie is offline
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 10-10-2015 , 16:21   Re: [Req ] Make Randomly nemesis
Reply With Quote #9

thanks Chihuahuax
__________________

Last edited by amir saiaoud; 10-10-2015 at 16:22.
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Old 10-10-2015, 16:22
amir saiaoud
This message has been deleted by amir saiaoud.
dr hicham
Senior Member
Join Date: Sep 2015
Location: Morocco
Old 10-10-2015 , 16:23   Re: [Req ] Make Randomly nemesis
Reply With Quote #10

Nice Plugin Chihuahuax
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
dr hicham is offline
Old 10-10-2015, 16:48
amir saiaoud
This message has been deleted by amir saiaoud.
Old 10-10-2015, 16:51
amir saiaoud
This message has been deleted by amir saiaoud.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode