Raised This Month: $ Target: $400
 0% 

Infinite roundtime, remove bombsites


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
4JOKE
Member
Join Date: Jan 2008
Old 12-21-2008 , 05:46   Re: Infinite roundtime, remove bombsites
Reply With Quote #3

hmm, I found some mistakes in your code.
1) To stop roundtimer, I have to destroy entity "func_bomb_target"
2) In destroy() you have to somewhere save max,minx,origin of all bombsites

Why I don't use fakemeta? Because I'm not so much skilled in amx, and my code is easier for me to understand.

So, these my code should be alright? (I wrote only scheme here) :
PHP Code:
new float:mins,maxs

destroy
() {
save mins,maxs of 1.Bombsite ("func_bomb_target")
destroy 1.bombsite
save mins
,maxs of 2.Bombsite ("func_bomb_target")
destroy 2.bombsite
}

create() {
create 1.bombsite ("func_bomb_target")
set mins,maxs to 1.bombsite which I saved
create 2.bombsite 
("func_bomb_target")
set mins,maxs to 1.bombsite which I saved

Is it alright ?
- because i don't know if I destroy "func_bomb_target", if I have to create "func_bomb_target" and also "info_bomb_target" ?
- because to stoptimer, I only need to destroy "func_bomb_target".

Last edited by 4JOKE; 12-21-2008 at 05:50.
4JOKE is offline
 



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 09:09.


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