PDA

View Full Version : [Include] [INC] Torran's AFK System


Torran
05/05/2010, 12:22 PM
What is it?
An include AFK system

Who made it?
Torran

How do i install?
Download the Include, Put it in "server dir/pawno/include",
Make sure you have the ZCMD include, That is needed
Open up your gamemode/filterscript, Add below your includes#include <afk>
Add this in OnPlayerConnectafk_OnPlayerConnect(playerid);
Add this in OnPlayerDisconnectafk_OnPlayerDisconnect(playerid) ;
Goto your OnPlayerText callback, It should return 1, Change that 1 to: afk_OnPlayerText(playerid, text);
Your callback should now look something like this: public OnPlayerText(playerid, text[])
{
return afk_OnPlayerText(playerid, text);
}

What are the commands?
/afk & /back

What are the features?
Freezes player when goes AFK & adds a label above the players head indicating hes AFK
Also sends a message to all players telling them that the player is AFK

Where is the download?
http://pastebin.com/6MxiqXWn

I know theres alot of AFK systems atm but i did not see one thats a include

[MWR]Blood
05/05/2010, 01:47 PM
Nice work!

johnnyc
05/05/2010, 01:56 PM
Dude you are doing great job !! Keep it up

Zh3r0
05/05/2010, 02:25 PM
Tough there are TONS of afk systems, this one is just nice!!

ps, wht was zcmd used? for badassnes or it was actually needed?

Torran
05/05/2010, 02:44 PM
Tough there are TONS of afk systems, this one is just nice!!

ps, wht was zcmd used? for badassnes or it was actually needed?


ZCMD include is needed in order for /afk and /back to work

xxmitsu
05/05/2010, 03:33 PM
Lol, this looks almost the same as mine (with 3dtextlabels)


Anyway, good work.

Zh3r0
05/05/2010, 03:52 PM
Lol, this looks almost the same as mine (with 3dtextlabels)


Anyway, good work.

Like someone like Joe is gonna copy someone like you...

shady91
05/05/2010, 03:55 PM
Lol, this looks almost the same as mine (with 3dtextlabels)


Anyway, good work.

Like someone like Joe is gonna copy someone like you...
Why not? Joe isn't exactly a top scripter form post/topic's I've seen (Very big post hunter/ topic creator)

But for the include simple but nice. ;)

ColdXX
05/05/2010, 04:09 PM
Nice dude keep up!!!
*ColdXX will use this!

xxmitsu
05/05/2010, 04:32 PM
Lol, this looks almost the same as mine (with 3dtextlabels)


Anyway, good work.

Like someone like Joe is gonna copy someone like you...


Chill man, I haven't blamed anyone.

Calgon
05/05/2010, 04:40 PM
This is more of a filterscript than an include...

Torran
05/05/2010, 04:45 PM
]
This is more of a filterscript than an include...


I didnt have pawno when i made it so i made it into a include,
Not hard to turn into Filterscript though, Just open up the .inc and take the afk_ of the callbacks and remove the forwards

ANTH
02/06/2010, 04:00 PM
its dont work for me :(

They say the afk.inc can not find also a error
And where can i donwload the inculdes :arrow: :?:

NewTorran
21/06/2010, 08:12 PM
its dont work for me :(

They say the afk.inc can not find also a error
And where can i donwload the inculdes :arrow: :?:


Make sure you put the .inc in /pawno/include
I noticed some people have started putting them in /include

If you still get the error. Open pawno.exe and then open your script and compile,

If it compiles successfully then you have more than 1 pawno.exe on your computer and its using a different one

Montis123
21/06/2010, 09:19 PM
good idea anyway good job

Hydraz
22/06/2010, 09:09 AM
i was looking for this 8) ty :D