SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 05/03/2011, 08:51 AM   #11
Markx
Gangsta
 
Markx's Avatar
 
Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 976
Reputation: 39
Default Re: Simple AFK System

Thanks all

-How about to attach a 3D text over the head and set the health to 10000 + freeze him?
__________________
...Left samp for now, hope i gonna be back someday...

Markx is offline   Reply With Quote
Old 05/03/2011, 12:42 PM   #12
bestr32
Big Clucker
 
Join Date: Mar 2011
Location: iLegaL.exe
Posts: 130
Reputation: 3
Default Re: Simple AFK System

xD.

find public OnPlayerCommandText
And do this: (pss: you can just copy paste it) :P

Code:
if(strcmp(cmdtext, "/afk", true) == 0)
	{
		TogglePlayerControllable(playerid, 0);
		new string [128];
		new pName[MAX_PLAYER_NAME];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	format(string,sizeof string,"%s is afk now (Away From Keyboard).",pName);
    	SendClientMessageToAll(green, string);
    	return 1;
    }
Code:
if(strcmp(cmdtext, "/back", true) == 0)
    {
   		new string [128];
		new pName[MAX_PLAYER_NAME];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	format(string,sizeof string,"%s is back now (Back To KeyBoard).",pName);
    	SendClientMessageToAll(lightblue, string);
        TogglePlayerControllable(playerid, 1);
		return 1;
	}
At the top of the script:

#define lightblue 0x00FFFFFF
#define green 0x00FF00FF
__________________
I am a Macedonian SA-MP Player/Scripter/Mapper named "Monki" in-game

Last edited by bestr32; 05/03/2011 at 01:32 PM.
bestr32 is offline   Reply With Quote
Old 05/03/2011, 12:44 PM   #13
bestr32
Big Clucker
 
Join Date: Mar 2011
Location: iLegaL.exe
Posts: 130
Reputation: 3
Default Re: Simple AFK System

There u go a simple afk system.
__________________
I am a Macedonian SA-MP Player/Scripter/Mapper named "Monki" in-game
bestr32 is offline   Reply With Quote
Old 05/03/2011, 12:59 PM   #14
Markx
Gangsta
 
Markx's Avatar
 
Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 976
Reputation: 39
Default Re: Simple AFK System

Yes, and you can spam with it...
__________________
...Left samp for now, hope i gonna be back someday...

Markx is offline   Reply With Quote
Old 07/03/2011, 09:04 AM   #15
Shubham
Big Clucker
 
Shubham's Avatar
 
Join Date: Apr 2009
Location: India
Posts: 93
Reputation: -1
Default Re: Simple AFK System

Good work.
Shubham is offline   Reply With Quote
Old 07/03/2011, 09:10 AM   #16
Markx
Gangsta
 
Markx's Avatar
 
Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 976
Reputation: 39
Default Re: Simple AFK System

Quote:
Originally Posted by Shubham View Post
Good work.
Thanks Shub
__________________
...Left samp for now, hope i gonna be back someday...

Markx is offline   Reply With Quote
Old 07/03/2011, 10:57 AM   #17
Davz*|*Criss
Gangsta
 
Davz*|*Criss's Avatar
 
Join Date: Jan 2011
Posts: 858
Reputation: 15
Default Re: Simple AFK System

Cool
__________________
Join Extreme Missions Now: 176.31.192.96:7778!
Davz*|*Criss is offline   Reply With Quote
Old 07/03/2011, 08:36 PM   #18
Markx
Gangsta
 
Markx's Avatar
 
Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 976
Reputation: 39
Thumbs up Re: Simple AFK System

Quote:
Originally Posted by Davz*|*Criss View Post
Cool
Thanks!
__________________
...Left samp for now, hope i gonna be back someday...

Markx is offline   Reply With Quote
Old 08/03/2011, 08:05 PM   #19
yourdeathisnear
Little Clucker
 
Join Date: Mar 2011
Posts: 3
Reputation: 0
Wink Re: Simple AFK System

awsome dude
nice mod
yourdeathisnear is offline   Reply With Quote
Old 08/03/2011, 08:09 PM   #20
Markx
Gangsta
 
Markx's Avatar
 
Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 976
Reputation: 39
Default Re: Simple AFK System

Quote:
Originally Posted by yourdeathisnear View Post
awsome dude
nice mod
Thanks
__________________
...Left samp for now, hope i gonna be back someday...

Markx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Simple GPS System Jofi Filterscripts 24 27/12/2013 07:37 PM
[FilterScript] || Simple TAX System || mrcoolballs Filterscripts 14 16/06/2013 07:00 PM
[FilterScript] Simple Pm system Tessar Filterscripts 5 14/06/2013 01:44 PM
[FilterScript] A simple AFK system Ironboy Filterscripts 4 24/05/2011 09:10 AM
Simple Job system Haji Filterscripts 13 13/08/2009 08:33 PM


All times are GMT. The time now is 08:30 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.