wc3edit.net

United Warcraft 3 map hacking!
It is currently January 6th, 2009, 11:22 am

 

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Player(x) = crash?
PostPosted: October 16th, 2008, 6:01 am 
Offline
Member

Joined: April 29th, 2007, 12:19 pm
Posts: 41
"call Player(0)"

That should crash red, right?


Top
 Profile  
 
 Post subject: Re: Player(x) = crash?
PostPosted: October 16th, 2008, 6:38 am 
Offline
The Flying Cow!
User avatar

Joined: November 2nd, 2007, 10:34 pm
Posts: 1523
Location: Melbourne
Title: Uberfast Hacker
Uh... If you added that to a script WC3 would just error because Player() isn't a function.

What you want is:

Code:
function SendCrash takes player p returns nothing
if GetLocalPlayer()==p then
call ExecuteFunc("estserfserf")
endif
endfunction


And then to crash someone, just do:

Code:
call SendCrash(Player(x))


Replace x with the player number.

_________________
Experience is not what happens to you; it's what you do with what happens to you. - Aldous Huxley


Top
 Profile  
 
 Post subject: Re: Player(x) = crash?
PostPosted: October 16th, 2008, 6:58 am 
Offline
Member

Joined: April 29th, 2007, 12:19 pm
Posts: 41
constant native Player takes integer number returns player

But you're way looks like it will work. Thanks.


Top
 Profile  
 
 Post subject: Re: Player(x) = crash?
PostPosted: October 16th, 2008, 7:15 am 
Offline
The Flying Cow!
User avatar

Joined: November 2nd, 2007, 10:34 pm
Posts: 1523
Location: Melbourne
Title: Uberfast Hacker
Anarki wrote:
constant native Player takes integer number returns player

But you're way looks like it will work. Thanks.

Oh.. In that case it is, but I don't think it would crash the player just like that.

_________________
Experience is not what happens to you; it's what you do with what happens to you. - Aldous Huxley


Top
 Profile  
 
 Post subject: Re: Player(x) = crash?
PostPosted: October 16th, 2008, 8:14 am 
Offline
Member

Joined: April 29th, 2007, 12:19 pm
Posts: 41
In Island Defense, that is how they do their secret -crash command, by calling Player(victim).


Top
 Profile  
 
 Post subject: Re: Player(x) = crash?
PostPosted: October 20th, 2008, 4:45 am 
Offline
Super Moderator
User avatar

Joined: June 8th, 2007, 5:08 am
Posts: 996
Location: Malaysia
Title: Not a Hacker
calling player(0) will not descyn player 0!
the answer is already in the FAQ topic. Search a bit you will get it.
It will be either calling player(integer lesser than 0, ie -1, -2) or player(integer greater than 16, ie. 17, 18etc.).
w/e

_________________
ImageImageImage


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)