Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: kitt85711 on September 03, 2011, 01:14:39 pm

Title: Distance
Post by: kitt85711 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?
Title: Re: Distance
Post by: [AoD]NC 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.
Title: Re: Distance
Post by: kitt85711 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
Title: Re: Distance
Post by: [AoD]NC 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.
Title: Re: Distance
Post by: yazeen on September 05, 2011, 02:54:28 pm
You mean whisper ah? use GetDistanceBetweenplayers(plr1,plr2) function
Title: Re: Distance
Post by: stormeus 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 (http://vcmp.liberty-unleashed.co.uk) which is essentially the same thing.