Author Topic: Help  (Read 1362 times)

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Help
« 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



sasha19323

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +25/-24
    • View Profile
Re: Help
« Reply #1 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) );
}
}

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 526
  • Karma: +27/-17
    • View Profile
Re: Help
« Reply #2 on: August 07, 2013, 05:56:43 pm »
I think I can restart GTA3 within 5 seconds. And this solution is plain stupid. Sorry.

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Help
« Reply #3 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
« Last Edit: August 08, 2013, 12:05:54 am by Mido_Pop »



 

© Liberty Unleashed Team.