Hi guys i have a question about cheatpacks , to activate the cheats you need to have one of the required names (name activator) or type a string activator or input a key combination
my question is is it possible to add 3 types of activators in one CP so you must activate them all to activate the cheats or if 3 is not possible then only 2 like name & key combination
and a little question about key combination is it possible to change the keys cause normal key combination is typed with arrow keys so instead of arrow keys can i change it to letters like MOFDECB ?
thanks in advice
question about CP required activators
Moderator: Cheaters
-
- Senior Member
- Posts: 123
- Joined: August 27th, 2010, 7:14 am
-
- Forum Staff
- Posts: 1470
- Joined: November 3rd, 2010, 10:48 am
- Title: Best Player
- Location: Singapore
Re: question about CP required activators
grimgrents wrote: my question is is it possible to add 3 types of activators in one CP, you must activate them all to activate the cheats or if 3 is not possible then only 2 like name & key combination
It's possible. Just add the if statement.
For JJ arrow activator:just an example how you can check 3 activators to activate, but has to be in sequence.[/color]Code: Select all
if GetPlayerName=="Apple"then if SubString(GetEventPlayerChatString(),0,8)=="-cheats "then if ActivateArrowActivator then
and a little question about key combination is it possible to change the keys cause normal key combination is typed with arrow keys so instead of arrow keys can i change it to letters like MOFDECB ?
Nope, so far do you see any game uses other keys?
thanks in advice
-
- Senior Member
- Posts: 123
- Joined: August 27th, 2010, 7:14 am
Re: question about CP required activators
thanks a lot for your help
someone can show me what lines i need to add in a JJCP to have these 3 required activators please ?
thanks in adivce
also a little question about custom ban
what lines i need to add to make the JJCP detect a specific username and kick him at start
someone can show me what lines i need to add in a JJCP to have these 3 required activators please ?
thanks in adivce
also a little question about custom ban
what lines i need to add to make the JJCP detect a specific username and kick him at start
-
- Forum Staff
- Posts: 1470
- Joined: November 3rd, 2010, 10:48 am
- Title: Best Player
- Location: Singapore
Re: question about CP required activators
I already have shown you how to do it, also we already have a ban topic.
Moved to trigger editing.
Moved to trigger editing.
-
- Senior Member
- Posts: 123
- Joined: August 27th, 2010, 7:14 am
Re: question about CP required activators
i need to add only these 3 lines in the jjcp arrow activator ? and where should i add them please under endglobals or globals or function main ?
-
- Forum Staff
- Posts: 1470
- Joined: November 3rd, 2010, 10:48 am
- Title: Best Player
- Location: Singapore
Re: question about CP required activators
I think you should just learn jass.
the first line, is obviously the name activator.
the second, detects the string player types from 0 to 8, which is -cheats<2x space>
the third line, just make a function which detects the key pressed, perhaps just by using the JJCP arrow activator will do.
If I'm not wrong it should all be under function CheatUse, sequence is important.
the first line, is obviously the name activator.
the second, detects the string player types from 0 to 8, which is -cheats<2x space>
the third line, just make a function which detects the key pressed, perhaps just by using the JJCP arrow activator will do.
If I'm not wrong it should all be under function CheatUse, sequence is important.