PDA

View Full Version : Message problem.


Laure
07/05/2014, 08:57 AM
I've got a message return problem in my script it should return a message on pressing esc on the login menu and kick the player but it just kicks but doesnt show the message.

{
SendClientMessage(playerid, COLOR_WHITE, "Unitech Gaming: You choosed to quit the server.");
Kick(playerid);
return 1;
}

PS: When i keep return 1; above kick it sends the message but gives a warning while compiling.

Nathan_Taylor
07/05/2014, 09:00 AM
What warning does it give?

Roel
07/05/2014, 09:00 AM
Yes, you will have to set a timer on the kick for like 500 ms.
Because the player gets disconnected before the message gets to him, see it like a bug.

Laure
07/05/2014, 09:04 AM
I totally got you Roel, thanks.