Player(x) = crash?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Anarki
Member
Posts: 51
Joined: April 29th, 2007, 12:19 pm

Player(x) = crash?

Post by Anarki »

"call Player(0)"

That should crash red, right?
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Player(x) = crash?

Post by Ozzapoo »

Uh... If you added that to a script WC3 would just error because Player() isn't a function.

What you want is:

Code: Select all

function SendCrash takes player p returns nothing
if GetLocalPlayer()==p then
call ExecuteFunc("estserfserf")
endif
endfunction
And then to crash someone, just do:

Code: Select all

call SendCrash(Player(x))
Replace x with the player number.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
Anarki
Member
Posts: 51
Joined: April 29th, 2007, 12:19 pm

Re: Player(x) = crash?

Post by Anarki »

constant native Player takes integer number returns player

But you're way looks like it will work. Thanks.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Player(x) = crash?

Post by Ozzapoo »

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.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
Anarki
Member
Posts: 51
Joined: April 29th, 2007, 12:19 pm

Re: Player(x) = crash?

Post by Anarki »

In Island Defense, that is how they do their secret -crash command, by calling Player(victim).
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: Player(x) = crash?

Post by initialD »

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