// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#if defined FILTERSCRIPT
new Pafk[MAX_PLAYERS];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
CMD:afk(playerid, params[])
{
if(Pafk[playerid] == 0)
{
new name[MAX_PLAYER_NAME];
SendClientMessageToAll(0xFFB300, "[INFO]$s Is In AFK Mode", name);
new Text3D:afklabel = Create3DTextLabel("***AFK MODE***", 0xFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
pafk[playerid] == 1;
}
else if(Pafk[playerid] == 1)
{
SendClientMessageToAll(0xFFB300, "[INFO]$s Is Back From AFK Mode", name);
DeletePlayer3DTextLabel(playerid, afklabel);
pafk[playerid] == 0;
return 1;
}
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎