[FilterScript] Simple AFK Systems With Reason..!
#1

SIMPLE afk systems by me ..
the reason is up of your player head!!

pawn Код:
#include <a_samp>
#include <streamer>
#include <zcmd>
new Text3D:jaja[MAX_PLAYERS] , daadetext3d[MAX_PLAYERS] , textjaja[MAX_PLAYERS][128];
CMD:afk(playerid,params[])
{
  if(isnull(params)) return SendClientMessage( playerid, -1, "/afk [reason]" );
  if(daadetext3d[playerid] == 1)
  {
    new st[128];
    format(st,sizeof(st),"Player Is AFK . REASON: %s",params);
    textjaja[playerid] = st;
    UpdateDynamic3DTextLabelText(jaja[playerid], 0x00FF40FF,st);
    format(st,sizeof(st),"you has afk with reason: %s use /back to back",params);
    SendClientMessage(playerid,-1,st);
    daadetext3d[playerid] = 1;
    TogglePlayerControllable(playerid,0);
  }
  else
  {
  new st[128];
  format(st,sizeof(st),"Player Is AFK . REASON: %s",params);
  textjaja[playerid] = st;
  jaja[playerid] = CreateDynamic3DTextLabel(st, 0x00FF40FF, 0, 0, 0.6, 50,playerid);
  format(st,sizeof(st),"you has afk with reason: %s use /back to back",params);
  SendClientMessage(playerid,-1,st);
  daadetext3d[playerid] = 1;
  TogglePlayerControllable(playerid,0);
  }
  return 1;
}
CMD:back(playerid,params[])
{
  TogglePlayerControllable(playerid,1);
  DestroyDynamic3DTextLabel(jaja[playerid]);
  daadetext3d[playerid] = 0;
  SendClientMessage(playerid,-1,"you has used /back");
  return 1;
}
public OnPlayerConnect(playerid)
{
    daadetext3d[playerid] = 0;
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    if(daadetext3d[playerid] == 1)
    {
      DestroyDynamic3DTextLabel(jaja[playerid]);
    }
    return 1;
}
NEW UPDATED!! V2
Link: http://forum.sa-mp.com/showthread.ph...97#post2380497
Reply


Messages In This Thread
Simple AFK Systems With Reason..! - by AnonymouseSAMP - 02.02.2013, 03:32
Re: Simple AFK Systems With Reason..! - by S4ba - 02.02.2013, 07:04
Re: Simple AFK Systems With Reason..! - by AnonymouseSAMP - 02.02.2013, 09:10
Re: Simple AFK Systems With Reason..! - by DaniceMcHarley - 02.02.2013, 13:46
Re: Simple AFK Systems With Reason..! - by AnonymouseSAMP - 02.02.2013, 21:37
Re: Simple AFK Systems With Reason..! - by coakiddo - 02.02.2013, 21:40
Re: Simple AFK Systems With Reason..! - by AnonymouseSAMP - 03.02.2013, 03:07
Re: Simple AFK Systems With Reason..! - by Unirom Shaw - 03.02.2013, 03:10
Re: Simple AFK Systems With Reason..! - by Alvon - 03.02.2013, 11:50
Re: Simple AFK Systems With Reason..! - by Stream - 03.02.2013, 18:00

Forum Jump:


Users browsing this thread: 2 Guest(s)