GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => A témát indította: checcovt - 2011. Augusztus 25. - 21:56:16

Cím: AFK Rendszer by: checcovt
Írta: checcovt - 2011. Augusztus 25. - 21:56:16
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]
Cím: AFK Rendszer by: checcovt
Írta: instant - 2011. Augusztus 25. - 22:28:58
jó lett ment a +
Cím: AFK Rendszer by: checcovt
Írta: shadee - 2011. Augusztus 25. - 22:31:42
halli.Hát nem is tom mitmondjak erre
Ha kezdõ vagy akkor grat
Cím: AFK Rendszer by: checcovt
Írta: KeRteStaRz - 2011. Augusztus 28. - 10:02:32
kezdõnek nem rossz jo script lett!
Cím: AFK Rendszer by: checcovt
Írta: checcovt - 2011. Augusztus 28. - 20:49:15
Köszi mindenkinek :D
Cím: AFK Rendszer by: checcovt
Írta: EXE.Maci - 2011. Augusztus 28. - 21:12:45
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
Cím: AFK Rendszer by: checcovt
Írta: checcovt - 2011. Augusztus 29. - 08:06:49
thx.
Cím: AFK Rendszer by: checcovt
Írta: davidszasza99 - 2011. Augusztus 31. - 14:51:55
Nekem,ha kiválasztom hogy mit csinálok,nem írja ki mindenkinek,és nem rak AFK ba  :)
Cím: AFK Rendszer by: checcovt
Írta: Norby - 2011. Augusztus 31. - 19:50:52
Szép.
:::.. Grat ..:::
Cím: AFK Rendszer by: checcovt
Írta: HolyMax - 2011. Augusztus 31. - 22:39:35
Széplett Grat!!
Cím: AFK Rendszer by: checcovt
Írta: jana4 - 2011. Szeptember 03. - 12:43:56
Elég durva kivitelezés. Pazarló, és rossz.
Cím: AFK Rendszer by: checcovt
Írta: Stray - 2011. Szeptember 03. - 12:46:24
\"WC -re\\nScriptelni\\nMappolni\\nCsajommal beszélni!\\nBoltba\",[/quote]
És ha valahova máshova megy? Esetleg egy heteró lány?
Cím: AFK Rendszer by: checcovt
Írta: BoOy - 2011. Szeptember 04. - 20:27:03
Még fasza lett :P ...A többit nem szerettem mert hülyeségek voltak :D