[FilterScript] Mgd-AFK System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Mgd-AFK System (
/showthread.php?tid=408747)
Mgd-AFK System -
mgd - 19.01.2013
Mgd-AFK System
What is that System ?
When you type /afk you will be afk , like freeze
also you can type /back to unfreeze your self
pawn Код:
//made by mgd
#include <a_samp>
#include <zcmd>
new IsAfk[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
IsAfk[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
IsAfk[playerid] = 0;
return 1;
}
CMD:afk(playerid,params[])
{
new string[128], pName[MAX_PLAYER_NAME];
if(IsAfk[playerid] == 1) return SendClientMessage(playerid, 0xFF0000FF,"You Are Already AFK");
TogglePlayerControllable(playerid, 0);
format(string,sizeof(string),"Server: %s Is Now Afk", pName);
SendClientMessageToAll(0xFFFF00,string);
SendClientMessage(playerid, 0xFF00FFFF,"Type /back if you want to continue");
IsAfk[playerid] = 1;
return 1;
}
CMD:back(playerid,params[])
{
new string[128], pName[MAX_PLAYER_NAME];
if(IsAfk[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF,"You Are Not AFK");
TogglePlayerControllable(playerid, 1);
format(string,sizeof(string),"Server: %s Is Back!", pName);
SendClientMessageToAll(0xFFFF00,string);
IsAfk[playerid] = 0;
return 1;
}
Pastebin
Download
Medirafire Link
Re: Mgd-AFK System -
KingHual - 19.01.2013
awesome and unique rep+
Re: Mgd-AFK System -
RajatPawar - 19.01.2013
Quote:
Originally Posted by king_hual
unique
|
Are you seriously shitting me?
Anyways, good for a first time, if it is, try something different next time!
Re: Mgd-AFK System -
mgd - 19.01.2013
Thanks guys
but why rajat ?
why he's shitting you ?
Re: Mgd-AFK System -
MyNinja - 19.01.2013
Statistics
Script line - 42
Textdraws - No
So simple - Yes
Good job for a first script
Quote:
Originally Posted by king_hual
awesome and unique rep+
|
lolheyumadbro? ^.o
Re: Mgd-AFK System -
mgd - 19.01.2013
oo there is no thing in what king_hual said xd
anyway thanks guys
Re: Mgd-AFK System -
Lordzy - 19.01.2013
For what sscanf is used here?
Re: Mgd-AFK System -
Mr_Zlodei - 19.01.2013
forgot to
GetPlayerName )
Re: Mgd-AFK System -
mgd - 19.01.2013
Quote:
Originally Posted by Lordz™
For what sscanf is used here?
|
well wasn't know that its not needed because its my 2nd plugin
anyway thanks for the note
edited.
Re: Mgd-AFK System -
captainjohn - 19.01.2013
There's so many AFK Scripts out there, I don't know why people release them anymore.
Anyway I guess it looks like your first script.
Good job.
Re: Mgd-AFK System -
mgd - 19.01.2013
Thanks captainjohn
Re: Mgd-AFK System -
Jear - 20.01.2013
Cool system afk
Re: Mgd-AFK System -
mgd - 20.01.2013
Quote:
Originally Posted by Jear
Cool system afk ![Cheesy](images/smilies/biggrin.png)
|
thank you bro
Re: Mgd-AFK System -
mgd - 22.01.2013
You like it guys ?
Re: Mgd-AFK System -
Djean - 22.01.2013
Common but good job.
Re: Mgd-AFK System -
McBan - 22.01.2013
Agreed with Djean, But its a nice script! Good Job!
Re: Mgd-AFK System -
mgd - 22.01.2013
Ty Djean and Mcban