Szerző Téma: AFK Rendszer by: checcovt  (Megtekintve 2097 alkalommal)

AFK Rendszer by: checcovt
« Dátum: 2011. Augusztus 25. - 21:56:16 »
+5 Show voters
Sziasztok most összedobtam egy Afk rendszert és gondoltam megosztom veletek! :D
Elkészítési idõ: 5-10perc
Itt is van:
[pawn]
/*
***** AFK RENDSZER By: checcovt *****
*/
#include <a_samp>
#define COLOR_YELLOW              0xFFFF00AA   //Sárga
#define DIALOG (0)
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" AFK RENDSZER BETÖLTVE by: checcovt\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
        print(\"\\n----------------------------------\");
print(\" AFK RENDSzer Kikapcsolva by: checcovt\");
print(\"----------------------------------\\n\");
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(\"/afk\", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, DIALOG, DIALOG_STYLE_LIST, \"Válaszd ki hova mész: \", \"WC -re\\nScriptelni\\nMappolni\\nCsajommal beszélni!\\nBoltba\", \"OK\", \"Mégse\");
}
if(strcmp(\"/back\", cmdtext, true) == 0)
{
   SendClientMessage(playerid, COLOR_YELLOW, \"Jó Játékot!\");
   TogglePlayerControllable(playerid,1);
   new string3[70];
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   format(string3, sizeof(string3), \"{33FF33}%s {33CCFF}viszajött!!\", name);
   SendClientMessageToAll(COLOR_YELLOW, string3);
   return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG && response == 1)
    {
       switch(listitem)
       {
           case 0:
           {
           SendClientMessage(playerid, COLOR_YELLOW, \"{33CCFF}AFK-ban vagy írd be {FF0000}/back {33CCFF}hogy visszatérj a játékba!\");
         TogglePlayerControllable(playerid,0);
         new string3[70];
         new name[MAX_PLAYER_NAME];
         GetPlayerName(playerid, name, sizeof(name));
         format(string3, sizeof(string3), \"{FF0000}%s {33CCFF}elment WC -re!\", name);
         SendClientMessageToAll(COLOR_YELLOW, string3);
           }
           case 1:
           {
           SendClientMessage(playerid, COLOR_YELLOW, \"{33CCFF}AFK-ban vagy írd be {FF0000}/back {33CCFF}hogy visszatérj a játékba!\");
         TogglePlayerControllable(playerid,0);
         new string3[70];
         new name[MAX_PLAYER_NAME];
         GetPlayerName(playerid, name, sizeof(name));
         format(string3, sizeof(string3), \"{FF0000}%s {33CCFF}elment Scriptelni!\", name);
         SendClientMessageToAll(COLOR_YELLOW, string3);
           }
           case 2:
           {
           SendClientMessage(playerid, COLOR_YELLOW, \"{33CCFF}AFK-ban vagy írd be {FF0000}/back {33CCFF}hogy visszatérj a játékba!\");
         TogglePlayerControllable(playerid,0);
         new string3[70];
         new name[MAX_PLAYER_NAME];
         GetPlayerName(playerid, name, sizeof(name));
         format(string3, sizeof(string3), \"{FF0000}%s {33CCFF}elment Mappolni!\", name);
         SendClientMessageToAll(COLOR_YELLOW, string3);
           }
           case 3:
           {
           SendClientMessage(playerid, COLOR_YELLOW, \"{33CCFF}AFK-ban vagy írd be {FF0000}/back {33CCFF}hogy visszatérj a játékba!\");
         TogglePlayerControllable(playerid,0);
         new string3[70];
         new name[MAX_PLAYER_NAME];
         GetPlayerName(playerid, name, sizeof(name));
         format(string3, sizeof(string3), \"{FF0000}%s {33CCFF}elment csajozni!\", name);
         SendClientMessageToAll(COLOR_YELLOW, string3);
           }
           case 4:
           {
           SendClientMessage(playerid, COLOR_YELLOW, \"{33CCFF}AFK-ban vagy írd be {FF0000}/back {33CCFF}hogy visszatérj a játékba!\");
         TogglePlayerControllable(playerid,0);
         new string3[70];
         new name[MAX_PLAYER_NAME];
         GetPlayerName(playerid, name, sizeof(name));
         format(string3, sizeof(string3), \"{FF0000}%s {33CCFF}elment Boltba!\", name);
         SendClientMessageToAll(COLOR_YELLOW, string3);
           }
       }
    }
return 1;
}
[/pawn]
Ha tetszik nyomj egy + -t ! :D
Nekem jó lett:
[pawn]
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
[/pawn]
« Utoljára szerkesztve: 2011. November 12. - 18:23:37 írta APC »

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
AFK Rendszer by: checcovt
« Válasz #1 Dátum: 2011. Augusztus 25. - 22:28:58 »
0 Show voters
jó lett ment a +

Nem elérhető shadee

  • 1073
    • Profil megtekintése
AFK Rendszer by: checcovt
« Válasz #2 Dátum: 2011. Augusztus 25. - 22:31:42 »
0 Show voters
halli.Hát nem is tom mitmondjak erre
Ha kezdõ vagy akkor grat

AFK Rendszer by: checcovt
« Válasz #3 Dátum: 2011. Augusztus 28. - 10:02:32 »
0 Show voters
kezdõnek nem rossz jo script lett!

AFK Rendszer by: checcovt
« Válasz #4 Dátum: 2011. Augusztus 28. - 20:49:15 »
0 Show voters
Köszi mindenkinek :D

AFK Rendszer by: checcovt
« Válasz #5 Dátum: 2011. Augusztus 28. - 21:12:45 »
0 Show voters
Idézetet írta: shadee date=1314304302\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"10893\" data-ipsquote-contentclass=\"forums_Topic
halli.Hát nem is tom mitmondjak erre
Ha kezdõ vagy akkor grat
 
Egyetértek

AFK Rendszer by: checcovt
« Válasz #6 Dátum: 2011. Augusztus 29. - 08:06:49 »
0 Show voters
thx.

AFK Rendszer by: checcovt
« Válasz #7 Dátum: 2011. Augusztus 31. - 14:51:55 »
0 Show voters
Nekem,ha kiválasztom hogy mit csinálok,nem írja ki mindenkinek,és nem rak AFK ba  :)

Nem elérhető Norby

  • 1575
    • Profil megtekintése
AFK Rendszer by: checcovt
« Válasz #8 Dátum: 2011. Augusztus 31. - 19:50:52 »
0 Show voters
Szép.
:::.. Grat ..:::

AFK Rendszer by: checcovt
« Válasz #9 Dátum: 2011. Augusztus 31. - 22:39:35 »
0 Show voters
Széplett Grat!!

Nem elérhető jana4

  • 5929
  • Ex Staff
    • Profil megtekintése
AFK Rendszer by: checcovt
« Válasz #10 Dátum: 2011. Szeptember 03. - 12:43:56 »
0 Show voters
Elég durva kivitelezés. Pazarló, és rossz.

Nem elérhető Stray

  • 617
    • Profil megtekintése
AFK Rendszer by: checcovt
« Válasz #11 Dátum: 2011. Szeptember 03. - 12:46:24 »
0 Show voters
\"WC -re\\nScriptelni\\nMappolni\\nCsajommal beszélni!\\nBoltba\",[/quote]
És ha valahova máshova megy? Esetleg egy heteró lány?

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
AFK Rendszer by: checcovt
« Válasz #12 Dátum: 2011. Szeptember 04. - 20:27:03 »
0 Show voters
Még fasza lett :P ...A többit nem szerettem mert hülyeségek voltak :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal