Raised This Month: $ Target: $400
 0% 

de_office (Lazy)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 18:30   de_office (Lazy)
Reply With Quote #1

This plugin was originally made by Lazy for amx

This plugin make cs_office to de_office. It takes out all the hostages and put a bomb site. The bomb can be planted at either one of the hostage rescue centers there used to be...

Requires Engine module to work

Note: does NOT work on cz

CVars: sv_de_office < 1 / 0 >

Here it IS!!!!

Code:
/********************************* * de_office * * 2003 - Lazy < <a href="mailto:[email protected]">[email protected]</a> > * * Gameplay change for the map cs_office, terrorists must plant the bomb * at either one of the hostage rescue points. * * New CVars: sv_de_office < 1 / 0 > * * Notes : Requires Engine module to work * * Changelog: *   1.2:        -Fixed for cz * *   1.1:    -Fixed to find_ent_by_class *               -Took out include xtrafun *               -Fixed string * *   1.0:        -First Release *********************************/ #include <amxmodx> #include <engine>
Attached Files
File Type: sma Get Plugin or Get Source (de_office.sma - 1199 views - 2.4 KB)
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Ingram
Veteran Member
Join Date: May 2004
Old 07-10-2004 , 18:46  
Reply With Quote #2

don't use the xtrafun module, use find_ent_by_class in engine instead

also for line 83,
entity_set_string(iIndex, iKey, const szNewVal[])
don't put the 512 in, you don't need to specify the length
Ingram is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 19:06  
Reply With Quote #3

i did what u said and go this 4 errors...
Quote:
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

de_office.sma(64) : error 017: undefined symbol "classname"
de_office.sma(82) : error 017: undefined symbol "iIndex"
de_office.sma(82) : error 029: invalid expression, assumed zero
de_office.sma(93) : error 017: undefined symbol "classname"

4 Errors.
Press any key to continue . . .
Attached Files
File Type: sma Get Plugin or Get Source (de_office.sma - 881 views - 2.2 KB)
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Ingram
Veteran Member
Join Date: May 2004
Old 07-10-2004 , 19:15  
Reply With Quote #4

lol
i = find_ent_by_class( i, classname, "func_hostage_rescue" )
should be
i = find_ent_by_class( i, "func_hostage_rescue" )

entity_set_string(iIndex, iKey, const szNewVal[])
u weren't supposed to put that, i was just showing u the command. You had it right before, u just gotta take out the , 512.
Ingram is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 19:24  
Reply With Quote #5

Quote:
* Changelog:
* 1.1: -Fixed to find_ent_by_class
* -Took out include xtrafun
* -Fixed string
*
* 1.0: -First Release
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Meatwad
Senior Member
Join Date: Jul 2004
Location: New york, LI
Old 07-10-2004 , 23:01  
Reply With Quote #6

Now, here is a wild stab for cs_office_cz support. I dont know much of any SMALL, so bare with me here.
Attached Files
File Type: sma Get Plugin or Get Source (de_office.sma - 994 views - 2.3 KB)
__________________
http://googlefoundfunniest.ytmnd.com/

If you like Aqua Teen Hunger Force, then paste this onto your forehead. (Laugh out loud.)

Admin Weapons II
Meatwad is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 23:31  
Reply With Quote #7

can sumone test this on cz and cs please.... both maps for both mods would be good. Use Meatwads if u can. Can u test it meatwad please as well...
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Ingram
Veteran Member
Join Date: May 2004
Old 07-11-2004 , 01:02  
Reply With Quote #8

Code:
if ( equali( map, "cs_office" ) )
if ( equali( map, "cs_office_cz" ) )
{
	set_cvar_num( "mp_c4timer", 30 )
	SpawnMapItems( )
}
else
{
	pause( "a" )
}
i haven't tried to compile it, but this could be a problem, do u mean to use something like
if ( equali( map, "cs_office" ) || equali( map, "cs_office_cz" ))
?
Ingram is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-11-2004 , 08:53  
Reply With Quote #9

i have no idea what he did.... but i just tried this plugin in game... seems im getting an error on my cs listen server of the function 'remove_entity'

This is the version that i posted at top. Anyone else encounter the problem. I would like to see if this works for sumone without listen server... cuz they suck
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Meatwad
Senior Member
Join Date: Jul 2004
Location: New york, LI
Old 07-11-2004 , 13:05  
Reply With Quote #10

Quote:
Originally Posted by JJkiller
I haven't tried to compile it, but this could be a problem, do u mean to use something like
if ( equali( map, "cs_office" ) || equali( map, "cs_office_cz" ))
?
Could work, let me try it out.
__________________
http://googlefoundfunniest.ytmnd.com/

If you like Aqua Teen Hunger Force, then paste this onto your forehead. (Laugh out loud.)

Admin Weapons II
Meatwad is offline
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 05:06.


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