Calling a function once only
Moderator: Cheaters
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Calling a function once only
In JJ's CP there is the command -hear. that shows you what everyone is writing.
Now if 2 players write it. you see it 2/4 times.
Now I want to make it automticly work. So insted of udg_hear (the group that adds the player into so he can see the "hidden" chat) I changed it to CHEATER (so your automaticly inside this player group when you activate cheats) and I placed "Call (Talk)" (the function that enables the "hidden" chat to be "reveald"). Tho again when my friend activates the cheats. We see everything everyone write x2/4 times.
So is there a way to call the Talk function once? and ONLY once?
Now if 2 players write it. you see it 2/4 times.
Now I want to make it automticly work. So insted of udg_hear (the group that adds the player into so he can see the "hidden" chat) I changed it to CHEATER (so your automaticly inside this player group when you activate cheats) and I placed "Call (Talk)" (the function that enables the "hidden" chat to be "reveald"). Tho again when my friend activates the cheats. We see everything everyone write x2/4 times.
So is there a way to call the Talk function once? and ONLY once?
-
- Forum Staff
- Posts: 811
- Joined: January 1st, 2008, 12:58 am
Re: Calling a function once only
(From was I can decipher from this ancient block of text)
The globals are colliding, just make it into a group array like this.
The globals are colliding, just make it into a group array like this.
Code: Select all
set udg_hear[1+GetTriggerPlayer()] = udg_hear[1+GetTriggerPlayer()] ....etc
Wanna learn to hack maps? --> Guide
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Calling a function once only
Well I don't think that the force matters that much.
I just deleted udg_hear and replaced it with CHEATRZ (or how ever that cheaters group is called)
the problem is making "Call (Talk)" only be balled ONCE! and ONCE only
I just deleted udg_hear and replaced it with CHEATRZ (or how ever that cheaters group is called)
the problem is making "Call (Talk)" only be balled ONCE! and ONCE only
-
- Forum Fanatic
- Posts: 311
- Joined: October 26th, 2009, 10:22 pm
- Title: mib^
Re: Calling a function once only
sometimes with JJ's cp when i do hear or whatever the command was
i saw 4 times the text! but only i activated cheats...
never figured out why it happens
i saw 4 times the text! but only i activated cheats...
never figured out why it happens
Spoiler:
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: Calling a function once only
xDDD woot for necrooooo ^^
naw, jk.....i found this and saw it unanswered o.o so....jic anyone still needs it
Put the call talk() in the function main so its called only once, when the game is initialized
:DDD
naw, jk.....i found this and saw it unanswered o.o so....jic anyone still needs it
Put the call talk() in the function main so its called only once, when the game is initialized
:DDD
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Calling a function once only
This question is kinda "last decade" dont you think? I asked this when I was a beginner, now I know like a thousend ways to do so.
But thanks for the answer I guess
But thanks for the answer I guess
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: Calling a function once only
lol o.o a thousand dam....
i could only think of 5-6 >.<
neway....like i said.....for "anyone" that still needs it
never no o.o some random troll coulda wanted to know xP
i could only think of 5-6 >.<
neway....like i said.....for "anyone" that still needs it
never no o.o some random troll coulda wanted to know xP