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

Subplugin Submission [ZP] Zombie Class: Quark [Update: v1.2]


Post New Thread Reply   
 
Thread Tools Display Modes
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 02-04-2011 , 18:38   Re: [ZP] Zombie Class: Quark (Can Put the Trap)
Reply With Quote #21

Quote:
Originally Posted by yokomo View Post
use vars g_maxplayer

PHP Code:
new g_maxplayer

public plugin_init()
{
    
g_maxplayer get_maxplayers()
}

public 
zp_round_end()
{
    for (new 
id=1id<=g_maxplayerid++)
    {
        if (!
is_user_connected(id)) continue;
        
        
player_trapped[id] = false
    
}

Should do that in round start. Server may have use sv_restart(round) and i don't think zp_round_ended(not zp_round_end lol) will be called. I think you can use arrayset to set the bool. Don't have to loop the whole thing.

Just an example how to use arrayset

PHP Code:
new bool:boolean[33]

register_event("HLTV""event_new_round""a""1=0""2=0")

public 
event_new_round()
{
    
arrayset(booleanfalse32)

You get the idea right?

Last edited by Excalibur.007; 02-04-2011 at 18:47.
Excalibur.007 is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 02-04-2011 , 19:59   Re: [ZP] Zombie Class: Quark (Can Put the Trap)
Reply With Quote #22

PHP Code:
public zp_round_end() 
- Not Work :-w
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 02-04-2011 , 20:17   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #23

lol, looks funny. you could better make sandworm from HL 1. ^.^
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 02-05-2011 , 01:02   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #24

I can't finish this.
It had some error. and i can't fix
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-05-2011 , 08:17   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #25

Quote:
Originally Posted by Fry! View Post
lol, looks funny. you could better make sandworm from HL 1. ^.^
so fry is back now eh? xD
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 02-17-2011 , 18:12   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #26

No one can fix the error
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
molotovas
Senior Member
Join Date: Jan 2008
Old 02-18-2011 , 02:36   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #27

nice idea, it would be great if someone fix it
molotovas is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 02-18-2011 , 05:34   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #28

Oh
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
pRoxxxDD
Junior Member
Join Date: Feb 2011
Location: Ukraine
Old 02-19-2011 , 04:45   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #29

PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""spawn_post"1)
}

public 
spawn_post(id)
{
    if(
is_user_alive(id))
    {
         
player_trapped[id] = false
         
    
}


or
PHP Code:
new maxplayers
public plugin_init() {
    
register_logevent("remove_trap"2"0=World triggered""1=Round_Start")
    
register_logevent("remove_trap"2"0=World triggered""1=Round_End")
    
maxplayers get_maxplayers()
}

public 
remove_trap()
{
    static 
i
    
for(0<= maxplayersi++)
    {
        if(!
is_user_connected(i))
        continue
        
        
player_trapped[i] = false
    
}


Last edited by pRoxxxDD; 02-19-2011 at 05:29.
pRoxxxDD is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 02-20-2011 , 02:01   Re: [ZP] Zombie Class: Quark (Can Put the Trap)(UnFinished + Some Error)
Reply With Quote #30

oh thank
-------------------
Update v1.2

- Fix Drop Button
- Fix the Trap remove when round end

Last edited by dias; 02-20-2011 at 02:05.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
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 13:50.


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