SA-MP Forums

Go Back   SA-MP Forums > SA-MP > News and Updates

Reply
 
Thread Tools Display Modes
Old 04/02/2013, 10:56 AM   #11
raider19rus
Huge Clucker
 
Join Date: Apr 2012
Posts: 201
Reputation: 22
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Great!
raider19rus is offline   Reply With Quote
Old 04/02/2013, 11:08 AM   #12
newbienoob
High-roller
 
newbienoob's Avatar
 
Join Date: Jan 2012
Location: Follow the moaning coming from your parents' bedroom
Posts: 1,579
Reputation: 265
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Fix the sync problems. By the way, please allow us to use all keyboard characters(for username).
__________________
Help me, please /a chat
newbienoob is offline   Reply With Quote
Old 04/02/2013, 11:09 AM   #13
Black Wolf
Gangsta
 
Join Date: Mar 2009
Location: On the bed with your sister.
Posts: 520
Reputation: 166
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Thanks Kalcor!
Black Wolf is offline   Reply With Quote
Old 04/02/2013, 11:17 AM   #14
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Location: Oblivion
Posts: 707
Reputation: 2434
Flowers Re: SA-MP 0.3x R1-2 client/server update (optional)

Quote:
Originally Posted by DrSlett View Post
Good work!

PHP Code:
public OnPlayerConnect(playerid)
{
    
SendClientMessage(playerid, -1"TEST"); // not shown :(
    
Kick(playerid);
    return 
1;

please fix it
That never worked reliably.

Code:
forward KickPublic(playerid);
public KickPublic(playerid) { Kick(playerid); }

KickWithMessage(playerid, message[])
{
	SendClientMessage(playerid, 0xFF4444FF, message);
	SetTimerEx("KickPublic", 1000, 0, "d", playerid);
}

Put that in your script. Now use KickWithMessage(playerid, "Bye!"); instead of SendClientMessage, Kick.
Kalcor is offline   Reply With Quote
Old 04/02/2013, 11:21 AM   #15
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,199
Reputation: 169
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Great,thanks!
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 04/02/2013, 11:23 AM   #16
Odedara
Big Clucker
 
Odedara's Avatar
 
Join Date: Feb 2013
Location: Earth
Posts: 96
Reputation: 5
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Great,
Odedara is offline   Reply With Quote
Old 04/02/2013, 11:25 AM   #17
zgintasz
Huge Clucker
 
Join Date: Oct 2011
Posts: 380
Reputation: 11
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Quote:
Originally Posted by Kalcor View Post
That never worked reliably.

Code:
forward KickPublic(playerid);
public KickPublic(playerid) { Kick(playerid); }

KickWithMessage(playerid, message[])
{
	SendClientMessage(playerid, 0xFF4444FF, message);
	SetTimerEx("KickPublic", 1000, 0, "d", playerid);
}

Put that in your script. Now use KickWithMessage(playerid, "Bye!"); instead of SendClientMessage, Kick.
why can't you just fix it in client/server code? There are many bugs and we are tired of making workarounds for every bug.
zgintasz is offline   Reply With Quote
Old 04/02/2013, 11:25 AM   #18
Dimetrius
Little Clucker
 
Dimetrius's Avatar
 
Join Date: Jun 2012
Location: Russia
Posts: 19
Reputation: 2
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Guys pls fix the freeze of client after pressing "Connect"! I wanna play!!!!!!!
Dimetrius is offline   Reply With Quote
Old 04/02/2013, 11:26 AM   #19
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,833
Reputation: 230
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Thanks alot for the update!
davve95 is offline   Reply With Quote
Old 04/02/2013, 11:29 AM   #20
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Location: Oblivion
Posts: 707
Reputation: 2434
Default Re: SA-MP 0.3x R1-2 client/server update (optional)

Quote:
Originally Posted by zgintasz View Post
why can't you just fix it in client/server code? There are many bugs and we are tired of making workarounds for every bug.
It's not a bug. It's intended behaviour. Kick() will cancel all pending packets and ignore any further messages from the player.

This had to be done for security reasons.
Kalcor is offline   Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you update you SA-MP server? Shawn_Raws Server Support 2 10/10/2012 02:53 AM
SA-MP 0.3d R2 client/server update (optional) Kalcor News and Updates 173 09/10/2012 03:51 PM
SA-MP 0.3c R3 client update (minor/optional) Kalcor News and Updates 171 28/10/2011 11:17 AM
SA-MP 0.3b R3 client update (minor/optional) SA-MP News and Updates 92 06/01/2011 06:51 PM
SA-MP 0.3b R2 client/server update (optional) SA-MP News and Updates 38 02/01/2011 06:18 PM


All times are GMT. The time now is 07:29 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.