Liberty Unleashed

Scripting => Script Help => Topic started by: Mido_Pop on August 07, 2013, 02:47:11 pm

Title: Help
Post 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
Title: Re: Help
Post by: sasha19323 on August 07, 2013, 04:03:20 pm
Here's my solution.
Code: ("Server-side") [Select]
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) );
}
}
Title: Re: Help
Post by: Thijn on August 07, 2013, 05:56:43 pm
I think I can restart GTA3 within 5 seconds. And this solution is plain stupid. Sorry.
Title: Re: Help
Post by: Mido_Pop on August 07, 2013, 06:33:42 pm
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