Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: DilsonTB on February 25, 2012, 06:18:24 pm

Title: Any way to make this like samp
Post by: DilsonTB on February 25, 2012, 06:18:24 pm
Any way to make that if you talk with Global Chat (" T "),  I just want that player cant talk with " T "
If i write something i would like Server to send a Message: "You cant Talk".

I just want to make a Local Chat with " T "
Title: Re: Any way to make this like samp
Post by: Morphine on February 25, 2012, 06:40:59 pm
Well I don't know how this can be done in PAWN but I'll tell you what I think it works like in Squirrel.

You set a false return value if a player enters text in onPlayerChat ( I don't know what native that is in PAWN ) and then you just give the user a private message saying "You can not talk." I haven't tested this but I've seen this on a friend's server.

I guess translate.stormeus.com can translate that into PAWNography for you.
Title: Re: Any way to make this like samp
Post by: stormeus on February 25, 2012, 09:38:33 pm
Pawn does not support muting players to any degree at the moment. In Squirrel, you would set player.IsMuted to true as soon as they join the server, then use onPlayerChat (which still gets called when a player is muted) to send local chat messages.

However, you would need to establish a more scripted mute system, because real muting (player.IsMuted) is useless now.
Title: Re: Any way to make this like samp
Post by: DilsonTB on February 25, 2012, 11:16:47 pm
I would like you to try to help me to return that chat.... I tried and search in samp server and it doesnt have any returning value... So i dont understand how do they did it Lol.. It so weird..

I think in PAWN we can do it, so i will be continue trying things
Title: Re: Any way to make this like samp
Post by: stormeus on February 26, 2012, 12:34:34 am
Returning a value in OnPlayerText will have no effect in Pawn. I don't think it has any effect in Squirrel yet either. Muting in SA:MP is simply returning 0 in OnPlayerText.

This is changed and fixed as of 0.4 only.
Title: Re: Any way to make this like samp
Post by: DilsonTB on February 26, 2012, 03:34:03 pm
Well so much thanks...