Plugin or public such as "OnPlayerFullyConnect" -
Luicy. - 20.05.2016
Is there something named OnPlayerFullyConnect, such as:
PHP Code:
public OnPlayerFullyConnect(playerid)
{
for(new i = 0; i < 20; i++)
{
SendClientMessage(playerid, -1, "");
}
return 1;
}
If you didn't understand my point:
Affter player connected,
there comes a text saying "Connected to: **HOSTNAME**", And sometimes it delays, So if I use the code above in onplayerconnect, it wont clear the chat fully.
Is it possible to fix that? How?
Re: Plugin or public such as "OnPlayerFullyConnect" -
denNorske - 20.05.2016
Nope, the Hostname message is handled by the client as far as I knows, I bet you have to live with it - or set a timer could work?
Re: Plugin or public such as "OnPlayerFullyConnect" -
Luicy. - 20.05.2016
Is there something like OnPlayerReceiveText then?
Re: Plugin or public such as "OnPlayerFullyConnect" -
denNorske - 20.05.2016
The server is not the one sending the message.
The client itself informs you that it's "connecting" and that it has "connected" - A function in your script wouldn't recognize it.
Therefore it's impossible to avoid.
Re: Plugin or public such as "OnPlayerFullyConnect" -
Luicy. - 20.05.2016
Okay, so I'm using a timer with a Loading screen looking like this:
http://imgur.com/GA2q4xe
(This is not advertising since the server isn't open.)
Here's the textdraws for anyone who want:
http://pastebin.com/dSxPL80w
Warning: Might not fit every screen, To fix this, Edit the width and length. Thanks denorske.
- Repped.
Re: Plugin or public such as "OnPlayerFullyConnect" -
BiosMarcel - 20.05.2016
You could clear the text at
PHP Code:
public onPlayerClassRequest
.