Raised This Month: $ Target: $400
 0% 

Showing results 1 to 13 of 13
Search took 0.00 seconds.
Search: Posts Made By: epix
Forum: Scripting Help 05-06-2011, 21:04
Replies: 6
Views: 6,192
Posted By epix
Re: How to hook round start/end

Apparently there was another register_event that wasn't correct which made these fail as well. Thanks ConnorMcLeod for testing this non the less!
Also thanks for the restart event SonicSonedit,...
Forum: Scripting Help 05-06-2011, 15:03
Replies: 6
Views: 6,192
Posted By epix
[solved] How to hook round start/end

Found some examples but they don't seem to work =/
Apparantly some people use HLTV msg for this?


// Round start
register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
// or...
Forum: Scripting Help 05-06-2011, 12:52
Replies: 3
Views: 1,446
Posted By epix
Re: Force user to join team automatically

Thanks, was just looking into that plugin myself. I'm now looking how I can integrate this in my own plugin. Might need more help later. Thanks anyway for now :)
Forum: Scripting Help 05-06-2011, 06:07
Replies: 22
Views: 8,392
Posted By epix
Re: Protect private amxx plugin

I think you better create a new topic for that question
Forum: Scripting Help 05-05-2011, 19:51
Replies: 22
Views: 8,392
Posted By epix
Re: Protect private amxx plugin

Yes, the disassembler will not stop or even recognize the set_fail_state, since it doesn't execute the code.
Forum: Scripting Help 05-05-2011, 19:18
Replies: 3
Views: 1,446
Posted By epix
Force user to join team automatically

I'm looking for a way to let a user join a team automatically.
I tried something like this:

public client_putinserver(id) {
cs_set_user_team(id, CS_TEAM_T, CS_T_TERROR)
}

but it doesn't...
Forum: Scripting Help 05-05-2011, 18:21
Replies: 5
Views: 5,989
Posted By epix
Re: Pass multiple parameters to set_task

Thanks Bugsy! Great example :)
Forum: Scripting Help 05-05-2011, 04:18
Replies: 5
Views: 5,989
Posted By epix
Re: Pass multiple parameters to set_task

Thanks for your reply. However I was wondering if this is possible when one of the needed parameters is a string..

In your example, why is task_id an argument of "function" ?
Forum: Scripting Help 05-04-2011, 18:12
Replies: 5
Views: 5,989
Posted By epix
Pass multiple parameters to set_task

If I had some function like this:


public testFunc(id, someString[]) {
// Dummy
}
then how could I do something like this:


public delayTestFunc(id, someString[]) {
Forum: Scripting Help 05-03-2011, 18:23
Replies: 4
Views: 1,568
Posted By epix
Re: set_task issue

Thanks! Passing the string length to set_task fixed it :)
Forum: Scripting Help 05-03-2011, 17:35
Replies: 4
Views: 1,212
Posted By epix
Re: Bomb help

I'd do something like this to find the right player, not sure how to make him drop it.

public getBombPlayer() {
new Players[32]
new playerCount, i
get_players(Players,...
Forum: Scripting Help 05-03-2011, 17:26
Replies: 4
Views: 1,568
Posted By epix
Re: set_task issue

Yes ok, I get that. But the server_cmd actualy does exist, it's just not my function. I was thinking a possible workaround would be something like this:


public lo3() {
server_cmd("say <...
Forum: Scripting Help 05-03-2011, 17:13
Replies: 4
Views: 1,568
Posted By epix
set_task issue

Hi, I'm trying to make a simple lo3 script.

I got something like this:

public lo3() {
server_cmd("say < LIVE ON 3 RESTARTS >")
set_task(1.0, "server_cmd", TASKID_LO3, "say < RESTART 1...
Showing results 1 to 13 of 13

 
Forum Jump

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


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