Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*----------------------------------------------------------------------------*\
- * FilterScript AFK - Version Willian *
- * Créditos: Willian_Luigi *
- \*----------------------------------------------------------------------------*/
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("\n*************************************************");
- print("*-----------------------------------------------*\n");
- print(" FilterScript AFK-Version w1 By: Willian_Luigi");
- print("\n*-----------------------------------------------*");
- print("*************************************************\n");
- return 1;
- }
- new v[3];
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new
- string[128],
- nome[MAX_PLAYER_NAME]
- ;
- if(!strcmp(cmdtext,"/AFK", true))
- {
- static
- Float:wX,
- Float:wY,
- Float:wZ,
- sStr[60]
- ;
- TogglePlayerControllable(playerid, 0);
- Create3DTextLabel("Player em /AFK - version Willian",0xF00ECAA,wX,wY,wZ,50.0,0);
- Attach3DTextLabelToPlayer(Text3D:1,playerid,0.0,0.0,4.0);
- gettime(v[0],v[1],v[2]);
- format(string,55,"\nVocê entrou no mode AFK as - {FFF2AA}%d:%d:%d\n\n ",v[0],v[1],v[2]);
- ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX,"{FFF2AA}AFK - version Willian",string,"Sair AFK","");
- GetPlayerName(playerid,nome,sizeof(nome));
- format(sStr,60,"%s entrou no mode AFK - version Willian",nome);
- SendClientMessageToAll(0xECEAECAA,sStr);
- return SendClientMessage(playerid, 0x4DFF00AA, "Você entrou em /AFK - version Willian, para sair digite /AFK novamente");
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1234)
- {
- if(response == 0)
- {
- new sStr[80];
- format(sStr,55,"\nVocê entrou no mode AFK as - {FFF2AA}%d:%d:%d\n\n ",v[0],v[1],v[2]);
- ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX,"{FFF2AA}AFK - version Willian",sStr,"Sair AFK","");
- return 1;
- }
- if(response == 1)
- {
- TogglePlayerControllable(playerid, 1);
- Delete3DTextLabel(Text3D:1);
- return SendClientMessage(playerid, 0x4DFF00AA, "Você saiu do /AFK - version Willian.");
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement