Author Topic: Distance  (Read 3060 times)

0 Members and 1 Guest are viewing this topic.

Offline kitt85711

  • Wiseguy
  • **
  • Posts: 72
    • View Profile
Distance
« on: September 03, 2011, 01:14:39 pm »
You know how if you say /c l or /c s or something like that there's like a distance to where you can only see them type that? How would I do that?

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Distance
« Reply #1 on: September 03, 2011, 03:46:21 pm »
Emmm...

Quote
distance to where you can only see

Draw distance ;s? If this, it's not for scripting.

Offline kitt85711

  • Wiseguy
  • **
  • Posts: 72
    • View Profile
Re: Distance
« Reply #2 on: September 03, 2011, 11:32:20 pm »
:/ you forgot the 'them type' its not draw distance its where you say like /c s hi guys!
Kittrell: Kittrell has shouted out: hi guys!

but when you shout the distance will be further. what I mean is you have to be a certain distance from a player to even see what they are saying in rpg form

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Distance
« Reply #3 on: September 04, 2011, 12:05:19 pm »
Oh that's... I think someone posted such a code already. Basically you have to disable chat (in pawn return 0?) and make a command, which cheks who is near the player and for those who are, sending them a pm.

yazeen

  • Guest
Re: Distance
« Reply #4 on: September 05, 2011, 02:54:28 pm »
You mean whisper ah? use GetDistanceBetweenplayers(plr1,plr2) function

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Distance
« Reply #5 on: September 05, 2011, 02:56:29 pm »
This code should be on the forum already, or in GUPS. There's a Squirrel example on the Squirrel forum which is essentially the same thing.
Do not PM me for support.