Liberty Unleashed
Scripting => Script Help => Topic started by: Mido_Pop on August 07, 2013, 02:47:11 pm
-
I'm Tried To Make The The Object Appear To The Player When The Player Type /reconnect.
But I Failed To Make It Appear.
If Any One Have An Idea Please Tell me .
Sorry For Bad English ;D
Thanks
-
Here's my solution.
function onPlayerPart( player, reason )
{
KickTimer <- NewTimer("KickReconnectedPlr", 5000, 1, player.Name);
KickTimer.Start();
return 1;
}
function KickReconnectedPlr(name)
{
local plr = FindPlayer(name);
if (plr)
{
MessagePlayer("Please quit, and rejoin if you want to reconnect", plr)
SetCameraMatrix( plr, Vector(0, 2000, 0), Vector(0, 0, 0) );
}
}
-
I think I can restart GTA3 within 5 seconds. And this solution is plain stupid. Sorry.
-
Thijn You Are Right, sasha19323 Sorry But Timers Is So Bad Idea Because I Can Reconnect After 5Sec.
anyway I Made A Script To Kick The Player Who Typed Reconnect.
Thanks sasha19323 & Thijn