Author Topic: Any way to make this like samp  (Read 3268 times)

0 Members and 1 Guest are viewing this topic.

Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Any way to make this like samp
« 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 "
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline Morphine

  • Made Man
  • ***
  • Posts: 109
    • View Profile
Re: Any way to make this like samp
« Reply #1 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.
« Last Edit: February 25, 2012, 06:43:01 pm by Morphine »

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Any way to make this like samp
« Reply #2 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.
Do not PM me for support.




Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: Any way to make this like samp
« Reply #3 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
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Any way to make this like samp
« Reply #4 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.
Do not PM me for support.




Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: Any way to make this like samp
« Reply #5 on: February 26, 2012, 03:34:03 pm »
Well so much thanks...
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________