![]() |
sendpm() parameters?
How could I send a players account within the sendpm(), like sendpm("hello", player.account)? Is there anything like setpmparams()?
|
PHP Code:
|
I know of that but what I wanted was something like I type something in a gui, the text will be sent serverside and than to the player who is supposed to get the PM (like findplayer(params[1]).sendpm(params[2]) for example).
When the player get´s the PM it will open a GUI with the text in it (custom window, not the default by Graal). Yet when a PM get´s sent with the default system I can check who has sent the PM. PHP Code:
|
You can't send PMs from any player other than the NPC-server. It sounds like what you're doing can be done with the PM GUI controls (GuiPMCtrl, GuiPMEditCtrl), though.
|
Any other solution I could use?
|
Maybe having a class joined to the player like:
PHP Code:
PHP Code:
|
What are you trying to achieve? If you just want to send messages you can do this easily using triggers. If you're trying to use the PM system, then there's no other way.
|
Basicly I want to try getting a similar PM system like on the iServers. So far it´s working fine, when I´m sending PMs with the normal system (f7) I can get the text and stuff. But I also want to add (like on the iServers) such a message button to a custom profile system so I can PM a player by clicking on him and messaging him (without using the f7/custom system)
|
Can the send pm function send messages from other players? or only the npcserver?
|
Quote:
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 04:09 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.