Author |
Message |
Kliff Novice

Age:41 Gender: Joined: Mar 28 2003 Posts: 36 Location: United States Offline
|
Posted: Fri May 23, 2003 5:16 pm Post subject: No flags in the safe zone please :P |
 |
|
|
|
Are there any plugins that would spec a player or nuet flags of whoever brought flags in a safe zone? Anything like that? |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Fri May 23, 2003 11:48 pm Post subject: |
 |
|
|
|
if (p->flags > 0 && p->safty == true)
sendPrivate(p,"*setship");
i forget whether the p->safety is bool or int, but you can figure that out.
As for p->flags, if there isnt such a thing ( i wouldnt know, never needed to know) just tag them at the EVENT_FlagGrab
ScottMitch has a done all the work on that for a OF bot, kept very acurate count of flaggers, as the former flag data for the killed flagger is lost in EVENT_PlayerDeath.
But assuming your not a script whore like the rest of use, you want a quick and dirty? ill write as soon as you say yes. (i am that much of a loser) _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Sat May 24, 2003 11:54 am Post subject: |
 |
|
|
|
will do fine
Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... |
|
Back to top |
|
 |
Kliff Novice

Age:41 Gender: Joined: Mar 28 2003 Posts: 36 Location: United States Offline
|
Posted: Sat May 24, 2003 4:49 pm Post subject: |
 |
|
|
|
Yes very correct, i dunno what the hell that is just yet . I would much appreciate it (Yes) |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Sun May 25, 2003 8:58 pm Post subject: |
 |
|
|
|
Kliff wrote: | Yes very correct, i dunno what the hell that is just yet . I would much appreciate it (Yes) | Want the nerd explanation or the really gummed-down one? |
|
Back to top |
|
 |
Kliff Novice

Age:41 Gender: Joined: Mar 28 2003 Posts: 36 Location: United States Offline
|
Posted: Sun May 25, 2003 9:09 pm Post subject: |
 |
|
|
|
How about both? I dunno really much of anything with programming just yet |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Mon May 26, 2003 1:56 pm Post subject: |
 |
|
|
|
Does this help?
if (p->safety)
is the same as
if (p->safety == true) //true is anything but 0 (usually 1)
Also
if (!p->safety)
is the same as
if (p->safety == false) //false is always 0 |
|
Back to top |
|
 |
Rubu Newbie
Age:41 Gender: Joined: May 24 2003 Posts: 3 Location: United States Offline
|
Posted: Mon May 26, 2003 9:56 pm Post subject: |
 |
|
|
|
I dont know any of that  |
|
Back to top |
|
 |
Kliff Novice

Age:41 Gender: Joined: Mar 28 2003 Posts: 36 Location: United States Offline
|
Posted: Tue May 27, 2003 5:20 pm Post subject: |
 |
|
|
|
(Rubu)  |
|
Back to top |
|
 |
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: Tue May 27, 2003 9:01 pm Post subject: |
 |
|
|
|
do you know C++???? _________________ Signatures just seem so quaint. |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Thu May 29, 2003 8:31 pm Post subject: |
 |
|
|
|
Cripes. "p" is a pointer.
Its set up thusly "Player *p"
the safty "class?" (I forget what the hell the parts of classes are called) is boolen (true or flase) i believe. Either that or int (0 or non-0).
flags is an int that counts the number of flags on that player. if its 0, then the conditional will resolve false (ie: the if statement ill not be true), therfore making it not catch if p has no flags.
Go read a book. |
|
Back to top |
|
 |
|