hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.05.02. 23:54



Jelenlévő felhasználók

Jelenleg 536 felhasználó van jelen :: 0 regisztrált, 0 rejtett és 536 vendég

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: nincs regisztrált felhasználó az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása  Hozzászólás a témához  [ 9 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.13. 12:29 
Offline
Őstag
Avatar

Csatlakozott: 2012.02.14. 15:09
Hozzászólások: 1423
Megköszönték neki: 2 alkalommal
Szóval megkéne csinálni, hogy a modellek ne bugoljanak be kezdőre és külön nevet tudjak adni nekük...
azt még meglehet, hogy beáll ct-be és t-be majd kiállnak specbe de akkor se lesz kör vége ha az egyik csapat meghal..?

Kód:
  1. /* Plugin generated by AMXX-Studio */

  2. /*                                 */

  3. /*           WebSiteBot            */

  4. /*            By Parker;           */

  5. /*                                 */

  6. /*      CvarS;                     */

  7. /* bw_botname "www.YourWebSite.com */

  8. /* bw_kickbot "4"                  */                  

  9. /* bw_enable   "1"                  */

  10. /*---------------------------------*/

  11. #include <amxmodx>

  12. #include <amxmisc>

  13. #include <fakemeta>

  14. #include <hamsandwich>

  15. #include <xs>

  16.  

  17. #define PLUGIN "WebSiteBot"

  18. #define VERSION "1.0"

  19. #define AUTHOR "Parker;"

  20.  

  21. #define OFFSET_LINUX 5

  22.  

  23.  

  24. new bw_botname

  25. new bw_botnumber

  26. new cvar_enable

  27. new g_oldbotname[32]

  28. new g_oldbotid

  29. new g_teaminfo

  30.  

  31. enum (+= 1000)

  32. {

  33.         TASK_ID_BOTS

  34. };

  35.  

  36. enum CS_Internal_Models

  37. {

  38.         CS_DONTCHANGE = 0

  39. }

  40.  

  41. enum CsTeams

  42. {

  43.         CS_TEAM_UNASSIGNED = 0,

  44.         CS_TEAM_T = 1,

  45.         CS_TEAM_CT = 2,

  46.         CS_TEAM_SPECTATOR = 3

  47. };

  48.  

  49. public plugin_init() {

  50.         register_plugin(PLUGIN, VERSION, AUTHOR)

  51.        

  52.         bw_botname = register_cvar("bw_botname", "www.YourWebSite.com.ar")

  53.         bw_botnumber = register_cvar("bw_kickbot", "4")

  54.         cvar_enable = register_cvar("bw_enable", "1")

  55.         set_task(5.0, "Createbot", TASK_ID_BOTS, _, _, "b")

  56.         g_teaminfo = get_user_msgid("TeamInfo")

  57.        

  58. }

  59. public Createbot()

  60. {

  61.         if( get_pcvar_num(cvar_enable) != 1 )

  62.                 return;

  63.                

  64.         new botname[32]

  65.         get_pcvar_string(bw_botname, botname, 31)

  66.        

  67.         new id = find_player("ia", botname)

  68.        

  69.         new playersn = get_playersnum()

  70.  

  71.         if( !equali(botname, g_oldbotname) )

  72.         {

  73.                 if( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) )

  74.                 {

  75.                         set_user_info(g_oldbotid, "name", botname)

  76.                         return;

  77.                 }

  78.         }

  79.        

  80.        

  81.         if( playersn < get_pcvar_num(bw_botnumber) && !id )

  82.         {

  83.                 g_oldbotid = id = engfunc(EngFunc_CreateFakeClient, botname)

  84.                

  85.                 g_oldbotname = botname

  86.                

  87.                 if( pev_valid( id ) )

  88.                 {

  89.                         engfunc( EngFunc_FreeEntPrivateData, id)

  90.                         dllfunc( MetaFunc_CallGameEntity, "player", id)

  91.                         set_user_info( id, "rate", "3500" )

  92.                         set_user_info( id, "cl_updaterate", "25" )

  93.                         set_user_info( id, "cl_lw", "1" )

  94.                         set_user_info( id, "cl_lc", "1" )

  95.                         set_user_info( id, "cl_dlmax", "128" )

  96.                         set_user_info( id, "cl_righthand", "1" )

  97.                         set_user_info( id, "_vgui_menus", "0" )

  98.                         set_user_info( id, "_ah", "0" )

  99.                         set_user_info( id, "dm", "0" )

  100.                         set_user_info( id, "tracker", "0" )

  101.                         set_user_info( id, "friends", "0" )

  102.                         set_user_info( id, "*bot", "1" )

  103.                         set_pev( id, pev_flags, pev( id, pev_flags ) | FL_FAKECLIENT )

  104.                         set_pev( id, pev_colormap, id )

  105.                        

  106.                         new msg[128]

  107.                         dllfunc( DLLFunc_ClientConnect, id, botname, "127.0.0.1", msg )

  108.                         dllfunc( DLLFunc_ClientPutInServer, id )

  109.                         engfunc( EngFunc_RunPlayerMove, id, Float:{0.0,0.0,0.0}, 0.0, 0.0, 0.0, 0, 0, 76 )

  110.                        

  111.                         fm_set_user_team(id, CS_TEAM_CT);

  112.                         dllfunc(DLLFunc_Spawn, id)

  113.                 }

  114.         }

  115.        

  116.         else if( playersn > get_pcvar_num(bw_botnumber) && id )

  117.         {

  118.                 set_pev(id, pev_effects, pev(id, pev_effects) & ~EF_NODRAW)

  119.                 server_cmd( "kick #%d", get_user_userid(id) )

  120.         }

  121.        

  122.         else if( id )

  123.         {

  124.                 if( !is_user_alive(id) )

  125.                         dllfunc(DLLFunc_Spawn, id)

  126.                

  127.                 set_pev(id, pev_effects, pev(id, pev_effects) & EF_NODRAW)

  128.                 set_pev(id, pev_solid, SOLID_NOT)

  129.                 set_pev(id, pev_takedamage, DAMAGE_NO)

  130.                

  131.                 fix_score_team(id,"SPECTATOR")

  132.                

  133.         }

  134. }

  135.  

  136. stock bool:bw_botis_valid(id)

  137. {      

  138.         return ( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) && id == g_oldbotid )

  139. }

  140. stock fm_set_user_team(id, {CsTeams,_}:team, {CS_Internal_Models,_}:model = CS_DONTCHANGE)

  141. {

  142.         if( !is_user_connected(id) )

  143.                 return 0;

  144.        

  145.         set_pdata_int(id, 114, _:team, OFFSET_LINUX);

  146.  

  147.         if(model)

  148.         {

  149.                 set_pdata_int( id, 126, _:model, OFFSET_LINUX);

  150.         }

  151.  

  152.         dllfunc( DLLFunc_ClientUserInfoChanged, id, engfunc( EngFunc_GetInfoKeyBuffer, id ) );

  153.  

  154.         static const teams[] = { "UNASSIGNED", "TERRORIST", "CT", "SPECTATOR" };

  155.  

  156.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  157.         ewrite_byte(id);

  158.         ewrite_string(teams[_:team]);

  159.         emessage_end();

  160.    

  161.         return 1;

  162.  

  163. }

  164.  

  165. stock fix_score_team(id, const TEAM[])

  166. {

  167.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  168.         ewrite_byte(id);

  169.         ewrite_string(TEAM);

  170.         emessage_end();

  171. }

  172. stock bw_make_cvarexec(const config[])

  173. {

  174.         new f = fopen(config, "wt");

  175.         new stringscvars[192]

  176.        

  177.         fprintf(f, "// Bot WebSite^n")

  178.         fprintf(f, "// -_-_-_-_-_-_-^n")

  179.         get_pcvar_string(bw_botname, stringscvars, 191)

  180.         fprintf(f, "bw_botname ^"%s^" // Bot name, Default( ^"http://www.YourWebSite.com.ar^" )^n", stringscvars)

  181.         fprintf(f, "bw_kickbot %i // Number of Player to Kick the Bot^n", get_pcvar_num(bw_botnumber))

  182.         fprintf(f, "^n")

  183.        

  184.         fclose(f);

  185.        

  186.         server_cmd("exec %s", config)

  187.         server_exec()

  188. }

  189.  

Kód:
  1. /* Plugin generated by AMXX-Studio */

  2. /*                                 */

  3. /*           WebSiteBot            */

  4. /*            By Parker;           */

  5. /*                                 */

  6. /*      CvarS;                     */

  7. /* bw_botname "www.YourWebSite.com */

  8. /* bw_kickbot "4"                  */                  

  9. /* bw_enable   "1"                  */

  10. /*---------------------------------*/

  11. #include <amxmodx>

  12. #include <amxmisc>

  13. #include <fakemeta>

  14. #include <hamsandwich>

  15. #include <xs>

  16.  

  17. #define PLUGIN "WebSiteBot"

  18. #define VERSION "1.0"

  19. #define AUTHOR "Parker;"

  20.  

  21. #define OFFSET_LINUX 5

  22.  

  23.  

  24. new bw_botname

  25. new bw_botnumber

  26. new cvar_enable

  27. new g_oldbotname[32]

  28. new g_oldbotid

  29. new g_teaminfo

  30.  

  31. enum (+= 1000)

  32. {

  33.         TASK_ID_BOTS

  34. };

  35.  

  36. enum CS_Internal_Models

  37. {

  38.         CS_DONTCHANGE = 0

  39. }

  40.  

  41. enum CsTeams

  42. {

  43.         CS_TEAM_UNASSIGNED = 0,

  44.         CS_TEAM_T = 1,

  45.         CS_TEAM_CT = 2,

  46.         CS_TEAM_SPECTATOR = 3

  47. };

  48.  

  49. public plugin_init() {

  50.         register_plugin(PLUGIN, VERSION, AUTHOR)

  51.        

  52.         bw_botname = register_cvar("bw_botname", "www.YourWebSite.com.ar")

  53.         bw_botnumber = register_cvar("bw_kickbot", "4")

  54.         cvar_enable = register_cvar("bw_enable", "1")

  55.         set_task(5.0, "Createbot", TASK_ID_BOTS, _, _, "b")

  56.         g_teaminfo = get_user_msgid("TeamInfo")

  57.        

  58. }

  59. public Createbot()

  60. {

  61.         if( get_pcvar_num(cvar_enable) != 1 )

  62.                 return;

  63.                

  64.         new botname[32]

  65.         get_pcvar_string(bw_botname, botname, 31)

  66.        

  67.         new id = find_player("ia", botname)

  68.        

  69.         new playersn = get_playersnum()

  70.  

  71.         if( !equali(botname, g_oldbotname) )

  72.         {

  73.                 if( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) )

  74.                 {

  75.                         set_user_info(g_oldbotid, "name", botname)

  76.                         return;

  77.                 }

  78.         }

  79.        

  80.        

  81.         if( playersn < get_pcvar_num(bw_botnumber) && !id )

  82.         {

  83.                 g_oldbotid = id = engfunc(EngFunc_CreateFakeClient, botname)

  84.                

  85.                 g_oldbotname = botname

  86.                

  87.                 if( pev_valid( id ) )

  88.                 {

  89.                         engfunc( EngFunc_FreeEntPrivateData, id)

  90.                         dllfunc( MetaFunc_CallGameEntity, "player", id)

  91.                         set_user_info( id, "rate", "3500" )

  92.                         set_user_info( id, "cl_updaterate", "25" )

  93.                         set_user_info( id, "cl_lw", "1" )

  94.                         set_user_info( id, "cl_lc", "1" )

  95.                         set_user_info( id, "cl_dlmax", "128" )

  96.                         set_user_info( id, "cl_righthand", "1" )

  97.                         set_user_info( id, "_vgui_menus", "0" )

  98.                         set_user_info( id, "_ah", "0" )

  99.                         set_user_info( id, "dm", "0" )

  100.                         set_user_info( id, "tracker", "0" )

  101.                         set_user_info( id, "friends", "0" )

  102.                         set_user_info( id, "*bot", "1" )

  103.                         set_pev( id, pev_flags, pev( id, pev_flags ) | FL_FAKECLIENT )

  104.                         set_pev( id, pev_colormap, id )

  105.                        

  106.                         new msg[128]

  107.                         dllfunc( DLLFunc_ClientConnect, id, botname, "127.0.0.1", msg )

  108.                         dllfunc( DLLFunc_ClientPutInServer, id )

  109.                         engfunc( EngFunc_RunPlayerMove, id, Float:{0.0,0.0,0.0}, 0.0, 0.0, 0.0, 0, 0, 76 )

  110.                        

  111.                         fm_set_user_team(id, CS_TEAM_T);

  112.                         dllfunc(DLLFunc_Spawn, id)

  113.                 }

  114.         }

  115.        

  116.         else if( playersn > get_pcvar_num(bw_botnumber) && id )

  117.         {

  118.                 set_pev(id, pev_effects, pev(id, pev_effects) & ~EF_NODRAW)

  119.                 server_cmd( "kick #%d", get_user_userid(id) )

  120.         }

  121.        

  122.         else if( id )

  123.         {

  124.                 if( !is_user_alive(id) )

  125.                         dllfunc(DLLFunc_Spawn, id)

  126.                

  127.                 set_pev(id, pev_effects, pev(id, pev_effects) & EF_NODRAW)

  128.                 set_pev(id, pev_solid, SOLID_NOT)

  129.                 set_pev(id, pev_takedamage, DAMAGE_NO)

  130.                

  131.                 fix_score_team(id,"SPECTATOR")

  132.                

  133.         }

  134. }

  135.  

  136. stock bool:bw_botis_valid(id)

  137. {      

  138.         return ( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) && id == g_oldbotid )

  139. }

  140. stock fm_set_user_team(id, {CsTeams,_}:team, {CS_Internal_Models,_}:model = CS_DONTCHANGE)

  141. {

  142.         if( !is_user_connected(id) )

  143.                 return 0;

  144.        

  145.         set_pdata_int(id, 114, _:team, OFFSET_LINUX);

  146.  

  147.         if(model)

  148.         {

  149.                 set_pdata_int( id, 126, _:model, OFFSET_LINUX);

  150.         }

  151.  

  152.         dllfunc( DLLFunc_ClientUserInfoChanged, id, engfunc( EngFunc_GetInfoKeyBuffer, id ) );

  153.  

  154.         static const teams[] = { "UNASSIGNED", "TERRORIST", "CT", "SPECTATOR" };

  155.  

  156.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  157.         ewrite_byte(id);

  158.         ewrite_string(teams[_:team]);

  159.         emessage_end();

  160.    

  161.         return 1;

  162.  

  163. }

  164.  

  165. stock fix_score_team(id, const TEAM[])

  166. {

  167.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  168.         ewrite_byte(id);

  169.         ewrite_string(TEAM);

  170.         emessage_end();

  171. }

  172. stock bw_make_cvarexec(const config[])

  173. {

  174.         new f = fopen(config, "wt");

  175.         new stringscvars[192]

  176.        

  177.         fprintf(f, "// Bot WebSite^n")

  178.         fprintf(f, "// -_-_-_-_-_-_-^n")

  179.         get_pcvar_string(bw_botname, stringscvars, 191)

  180.         fprintf(f, "bw_botname ^"%s^" // Bot name, Default( ^"http://www.YourWebSite.com.ar^" )^n", stringscvars)

  181.         fprintf(f, "bw_kickbot %i // Number of Player to Kick the Bot^n", get_pcvar_num(bw_botnumber))

  182.         fprintf(f, "^n")

  183.        

  184.         fclose(f);

  185.        

  186.         server_cmd("exec %s", config)

  187.         server_exec()

  188. }

  189.  

köszöntem...

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.13. 12:40 
Offline
Őstag
Avatar

Csatlakozott: 2010.04.16. 16:50
Hozzászólások: 1342
Megköszönt másnak: 42 alkalommal
Megköszönték neki: 58 alkalommal
Ez az enyém, még anno csdm hez használtam. Csak annyi a dolgod, hogy a nevét átírod a cvarban!
SMA 1:
Kód:
  1. /* Plugin generated by AMXX-Studio */

  2. /*                                 */

  3. /*           WebSiteBot            */

  4. /*            By Parker;           */

  5. /*                                 */

  6. /*      CvarS;                     */

  7. /* bw_botname "www.YourWebSite.com */

  8. /* bw_kickbot "4"                  */                  

  9. /* bw_enable   "1"                  */

  10. /*---------------------------------*/

  11. #include <amxmodx>

  12. #include <amxmisc>

  13. #include <fakemeta>

  14. #include <hamsandwich>

  15. #include <xs>

  16.  

  17. #define PLUGIN "WebSiteBot"

  18. #define VERSION "1.0"

  19. #define AUTHOR "Parker;"

  20.  

  21. #define OFFSET_LINUX 5

  22.  

  23.  

  24. new bw_botname

  25. new bw_botnumber

  26. new cvar_enable

  27. new g_oldbotname[32]

  28. new g_oldbotid

  29. new g_teaminfo

  30.  

  31. enum (+= 1000)

  32. {

  33.         TASK_ID_BOTS

  34. };

  35.  

  36. enum CS_Internal_Models

  37. {

  38.         CS_DONTCHANGE = 0

  39. }

  40.  

  41. enum CsTeams

  42. {

  43.         CS_TEAM_UNASSIGNED = 0,

  44.         CS_TEAM_T = 1,

  45.         CS_TEAM_CT = 2,

  46.         CS_TEAM_SPECTATOR = 3

  47. };

  48.  

  49. public plugin_init() {

  50.         register_plugin(PLUGIN, VERSION, AUTHOR)

  51.        

  52.         bw_botname = register_cvar("bw_botname", "www.tql.hu")

  53.         bw_botnumber = register_cvar("bw_kickbot", "6")

  54.         cvar_enable = register_cvar("bw_enable", "1")

  55.         set_task(5.0, "Createbot", TASK_ID_BOTS, _, _, "b")

  56.         g_teaminfo = get_user_msgid("TeamInfo")

  57.        

  58. }

  59. public Createbot()

  60. {

  61.         if( get_pcvar_num(cvar_enable) != 1 )

  62.                 return;

  63.                

  64.         new botname[32]

  65.         get_pcvar_string(bw_botname, botname, 31)

  66.        

  67.         new id = find_player("ia", botname)

  68.        

  69.         new playersn = get_playersnum()

  70.  

  71.         if( !equali(botname, g_oldbotname) )

  72.         {

  73.                 if( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) )

  74.                 {

  75.                         set_user_info(g_oldbotid, "name", botname)

  76.                         return;

  77.                 }

  78.         }

  79.        

  80.        

  81.         if( playersn < get_pcvar_num(bw_botnumber) && !id )

  82.         {

  83.                 g_oldbotid = id = engfunc(EngFunc_CreateFakeClient, botname)

  84.                

  85.                 g_oldbotname = botname

  86.                

  87.                 if( pev_valid( id ) )

  88.                 {

  89.                         engfunc( EngFunc_FreeEntPrivateData, id)

  90.                         dllfunc( MetaFunc_CallGameEntity, "player", id)

  91.                         set_user_info( id, "rate", "3500" )

  92.                         set_user_info( id, "cl_updaterate", "25" )

  93.                         set_user_info( id, "cl_lw", "1" )

  94.                         set_user_info( id, "cl_lc", "1" )

  95.                         set_user_info( id, "cl_dlmax", "128" )

  96.                         set_user_info( id, "cl_righthand", "1" )

  97.                         set_user_info( id, "_vgui_menus", "0" )

  98.                         set_user_info( id, "_ah", "0" )

  99.                         set_user_info( id, "dm", "0" )

  100.                         set_user_info( id, "tracker", "0" )

  101.                         set_user_info( id, "friends", "0" )

  102.                         set_user_info( id, "*bot", "1" )

  103.                         set_pev( id, pev_flags, pev( id, pev_flags ) | FL_FAKECLIENT )

  104.                         set_pev( id, pev_colormap, id )

  105.                        

  106.                         new msg[128]

  107.                         dllfunc( DLLFunc_ClientConnect, id, botname, "127.0.0.1", msg )

  108.                         dllfunc( DLLFunc_ClientPutInServer, id )

  109.                         engfunc( EngFunc_RunPlayerMove, id, Float:{0.0,0.0,0.0}, 0.0, 0.0, 0.0, 0, 0, 76 )

  110.                        

  111.                         fm_set_user_team(id, CS_TEAM_CT);

  112.                         dllfunc(DLLFunc_Spawn, id)

  113.                 }

  114.         }

  115.        

  116.         else if( playersn > get_pcvar_num(bw_botnumber) && id )

  117.         {

  118.                 set_pev(id, pev_effects, pev(id, pev_effects) & ~EF_NODRAW)

  119.                 server_cmd( "kick #%d", get_user_userid(id) )

  120.         }

  121.        

  122.         else if( id )

  123.         {

  124.                 if( !is_user_alive(id) )

  125.                         dllfunc(DLLFunc_Spawn, id)

  126.                

  127.                 set_pev(id, pev_effects, pev(id, pev_effects) & EF_NODRAW)

  128.                 set_pev(id, pev_solid, SOLID_NOT)

  129.                 set_pev(id, pev_takedamage, DAMAGE_NO)

  130.                

  131.                 fix_score_team(id,"SPECTATOR")

  132.                

  133.         }

  134. }

  135.  

  136. stock bool:bw_botis_valid(id)

  137. {      

  138.         return ( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) && id == g_oldbotid )

  139. }

  140. stock fm_set_user_team(id, {CsTeams,_}:team, {CS_Internal_Models,_}:model = CS_DONTCHANGE)

  141. {

  142.         if( !is_user_connected(id) )

  143.                 return 0;

  144.        

  145.         set_pdata_int(id, 114, _:team, OFFSET_LINUX);

  146.  

  147.         if(model)

  148.         {

  149.                 set_pdata_int( id, 126, _:model, OFFSET_LINUX);

  150.         }

  151.  

  152.         dllfunc( DLLFunc_ClientUserInfoChanged, id, engfunc( EngFunc_GetInfoKeyBuffer, id ) );

  153.  

  154.         static const teams[] = { "UNASSIGNED", "TERRORIST", "CT", "SPECTATOR" };

  155.  

  156.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  157.         ewrite_byte(id);

  158.         ewrite_string(teams[_:team]);

  159.         emessage_end();

  160.    

  161.         return 1;

  162.  

  163. }

  164.  

  165. stock fix_score_team(id, const TEAM[])

  166. {

  167.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  168.         ewrite_byte(id);

  169.         ewrite_string(TEAM);

  170.         emessage_end();

  171. }

  172. stock bw_make_cvarexec(const config[])

  173. {

  174.         new f = fopen(config, "wt");

  175.         new stringscvars[192]

  176.        

  177.         fprintf(f, "// Bot WebSite^n")

  178.         fprintf(f, "// -_-_-_-_-_-_-^n")

  179.         get_pcvar_string(bw_botname, stringscvars, 191)

  180.         fprintf(f, "bw_botname ^"%s^" // Bot name, Default( ^"www.YourWebSite.com.ar^" )^n", stringscvars)

  181.         fprintf(f, "bw_kickbot %i // Number of Player to Kick the Bot^n", get_pcvar_num(bw_botnumber))

  182.         fprintf(f, "^n")

  183.        

  184.         fclose(f);

  185.        

  186.         server_cmd("exec %s", config)

  187.         server_exec()

  188. }

  189.  


SMA 2:
Kód:
  1. /* Plugin generated by AMXX-Studio */

  2. /*                                 */

  3. /*           WebSiteBot            */

  4. /*            By Parker;           */

  5. /*                                 */

  6. /*      CvarS;                     */

  7. /* bw_botname "www.YourWebSite.com */

  8. /* bw_kickbot "4"                  */                  

  9. /* bw_enable   "1"                  */

  10. /*---------------------------------*/

  11. #include <amxmodx>

  12. #include <amxmisc>

  13. #include <fakemeta>

  14. #include <hamsandwich>

  15. #include <xs>

  16.  

  17. #define PLUGIN "WebSiteBot2"

  18. #define VERSION "1.0"

  19. #define AUTHOR "Parker;"

  20.  

  21. #define OFFSET_LINUX 5

  22.  

  23.  

  24. new bw_botname

  25. new bw_botnumber

  26. new cvar_enable

  27. new g_oldbotname[32]

  28. new g_oldbotid

  29. new g_teaminfo

  30.  

  31. enum (+= 1000)

  32. {

  33.         TASK_ID_BOTS

  34. };

  35.  

  36. enum CS_Internal_Models

  37. {

  38.         CS_DONTCHANGE = 0

  39. }

  40.  

  41. enum CsTeams

  42. {

  43.         CS_TEAM_UNASSIGNED = 0,

  44.         CS_TEAM_T = 1,

  45.         CS_TEAM_CT = 2,

  46.         CS_TEAM_SPECTATOR = 3

  47. };

  48.  

  49. public plugin_init() {

  50.         register_plugin(PLUGIN, VERSION, AUTHOR)

  51.        

  52.         bw_botname = register_cvar("bw_botname2", "www.fb.com/tqlteam")

  53.         bw_botnumber = register_cvar("bw_kickbot2", "7")

  54.         cvar_enable = register_cvar("bw_enable2", "1")

  55.         set_task(5.0, "Createbot", TASK_ID_BOTS, _, _, "b")

  56.         g_teaminfo = get_user_msgid("TeamInfo")

  57.        

  58. }

  59. public Createbot()

  60. {

  61.         if( get_pcvar_num(cvar_enable) != 1 )

  62.                 return;

  63.                

  64.         new botname[32]

  65.         get_pcvar_string(bw_botname, botname, 31)

  66.        

  67.         new id = find_player("ia", botname)

  68.        

  69.         new playersn = get_playersnum()

  70.  

  71.         if( !equali(botname, g_oldbotname) )

  72.         {

  73.                 if( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) )

  74.                 {

  75.                         set_user_info(g_oldbotid, "name", botname)

  76.                         return;

  77.                 }

  78.         }

  79.        

  80.        

  81.         if( playersn < get_pcvar_num(bw_botnumber) && !id )

  82.         {

  83.                 g_oldbotid = id = engfunc(EngFunc_CreateFakeClient, botname)

  84.                

  85.                 g_oldbotname = botname

  86.                

  87.                 if( pev_valid( id ) )

  88.                 {

  89.                         engfunc( EngFunc_FreeEntPrivateData, id)

  90.                         dllfunc( MetaFunc_CallGameEntity, "player", id)

  91.                         set_user_info( id, "rate", "3500" )

  92.                         set_user_info( id, "cl_updaterate", "25" )

  93.                         set_user_info( id, "cl_lw", "1" )

  94.                         set_user_info( id, "cl_lc", "1" )

  95.                         set_user_info( id, "cl_dlmax", "128" )

  96.                         set_user_info( id, "cl_righthand", "1" )

  97.                         set_user_info( id, "_vgui_menus", "0" )

  98.                         set_user_info( id, "_ah", "0" )

  99.                         set_user_info( id, "dm", "0" )

  100.                         set_user_info( id, "tracker", "0" )

  101.                         set_user_info( id, "friends", "0" )

  102.                         set_user_info( id, "*bot", "1" )

  103.                         set_pev( id, pev_flags, pev( id, pev_flags ) | FL_FAKECLIENT )

  104.                         set_pev( id, pev_colormap, id )

  105.                        

  106.                         new msg[128]

  107.                         dllfunc( DLLFunc_ClientConnect, id, botname, "127.0.0.1", msg )

  108.                         dllfunc( DLLFunc_ClientPutInServer, id )

  109.                         engfunc( EngFunc_RunPlayerMove, id, Float:{0.0,0.0,0.0}, 0.0, 0.0, 0.0, 0, 0, 76 )

  110.                        

  111.                         fm_set_user_team(id, CS_TEAM_T);

  112.                         dllfunc(DLLFunc_Spawn, id)

  113.                 }

  114.         }

  115.        

  116.         else if( playersn > get_pcvar_num(bw_botnumber) && id )

  117.         {

  118.                 set_pev(id, pev_effects, pev(id, pev_effects) & ~EF_NODRAW)

  119.                 server_cmd( "kick #%d", get_user_userid(id) )

  120.         }

  121.        

  122.         else if( id )

  123.         {

  124.                 if( !is_user_alive(id) )

  125.                         dllfunc(DLLFunc_Spawn, id)

  126.                

  127.                 set_pev(id, pev_effects, pev(id, pev_effects) & EF_NODRAW)

  128.                 set_pev(id, pev_solid, SOLID_NOT)

  129.                 set_pev(id, pev_takedamage, DAMAGE_NO)

  130.                

  131.                 fix_score_team(id,"SPECTATOR")

  132.                

  133.         }

  134. }

  135.  

  136. stock bool:bw_botis_valid(id)

  137. {      

  138.         return ( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) && id == g_oldbotid )

  139. }

  140. stock fm_set_user_team(id, {CsTeams,_}:team, {CS_Internal_Models,_}:model = CS_DONTCHANGE)

  141. {

  142.         if( !is_user_connected(id) )

  143.                 return 0;

  144.        

  145.         set_pdata_int(id, 114, _:team, OFFSET_LINUX);

  146.  

  147.         if(model)

  148.         {

  149.                 set_pdata_int( id, 126, _:model, OFFSET_LINUX);

  150.         }

  151.  

  152.         dllfunc( DLLFunc_ClientUserInfoChanged, id, engfunc( EngFunc_GetInfoKeyBuffer, id ) );

  153.  

  154.         static const teams[] = { "UNASSIGNED", "TERRORIST", "CT", "SPECTATOR" };

  155.  

  156.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  157.         ewrite_byte(id);

  158.         ewrite_string(teams[_:team]);

  159.         emessage_end();

  160.    

  161.         return 1;

  162.  

  163. }

  164.  

  165. stock fix_score_team(id, const TEAM[])

  166. {

  167.         emessage_begin(MSG_BROADCAST, g_teaminfo);

  168.         ewrite_byte(id);

  169.         ewrite_string(TEAM);

  170.         emessage_end();

  171. }

  172. stock bw_make_cvarexec(const config[])

  173. {

  174.         new f = fopen(config, "wt");

  175.         new stringscvars[192]

  176.        

  177.         fprintf(f, "// Bot WebSite^n")

  178.         fprintf(f, "// -_-_-_-_-_-_-^n")

  179.         get_pcvar_string(bw_botname, stringscvars, 191)

  180.         fprintf(f, "bw_botname ^"%s^" // Bot name, Default( ^"www.YourWebSite.com.ar^" )^n", stringscvars)

  181.         fprintf(f, "bw_kickbot %i // Number of Player to Kick the Bot^n", get_pcvar_num(bw_botnumber))

  182.         fprintf(f, "^n")

  183.        

  184.         fclose(f);

  185.        

  186.         server_cmd("exec %s", config)

  187.         server_exec()

  188. }

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.13. 12:59 
Offline
Őstag
Avatar

Csatlakozott: 2012.02.14. 15:09
Hozzászólások: 1423
Megköszönték neki: 2 alkalommal
Hát a modellek még bevannak bugolva kezdőre, az egyik CT-ben a másik meg SPEC-ben van.
Amelyik ct-ben van meglehet ölni...

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.13. 13:03 
Offline
Őstag
Avatar

Csatlakozott: 2010.04.16. 16:50
Hozzászólások: 1342
Megköszönt másnak: 42 alkalommal
Megköszönték neki: 58 alkalommal
a modell bug nélkül vége a körnek.. próbáltam én is model bug nélkül am....
itt van model nélkül próbáld ki
Kód:
  1. /* Plugin generated by AMXX-Studio */

  2. /*                    */

  3. /*        WebSiteBot              */

  4. /*         By Parker;           */

  5. /*               */

  6. /*   CvarS;            */

  7. /* bw_botname "www.YourWebSite.com */

  8. /* bw_kickbot "4"         */        

  9. /* bw_enable   "1"                  */

  10. /*---------------------------------*/

  11. #include <amxmodx>

  12. #include <amxmisc>

  13. #include <fakemeta>

  14. #include <hamsandwich>

  15. #include <xs>

  16.  

  17. #define PLUGIN "WebSiteBot"

  18. #define VERSION "1.0"

  19. #define AUTHOR "Parker;"

  20.  

  21. #define OFFSET_LINUX 5

  22.  

  23.  

  24. new bw_botname

  25. new bw_botnumber

  26. new cvar_enable

  27. new g_oldbotname[32]

  28. new g_oldbotid

  29. new g_teaminfo

  30.  

  31. enum (+= 1000)

  32. {

  33.    TASK_ID_BOTS

  34. };

  35.  

  36. enum CS_Internal_Models

  37. {

  38.    CS_DONTCHANGE = 0

  39. }

  40.  

  41. enum CsTeams

  42. {

  43.    CS_TEAM_UNASSIGNED = 0,

  44.    CS_TEAM_T = 1,

  45.    CS_TEAM_CT = 2,

  46.    CS_TEAM_SPECTATOR = 3

  47. };

  48.  

  49. public plugin_init() {

  50.    register_plugin(PLUGIN, VERSION, AUTHOR)

  51.    

  52.    bw_botname = register_cvar("bw_botname1", "www.tql.hu")

  53.    bw_botnumber = register_cvar("bw_kickbot1", "5")

  54.    cvar_enable = register_cvar("bw_enable1", "1")

  55.    set_task(5.0, "Createbot", TASK_ID_BOTS, _, _, "b")

  56.    g_teaminfo = get_user_msgid("TeamInfo")

  57.    

  58. }

  59. public Createbot()

  60. {

  61.    if( get_pcvar_num(cvar_enable) != 1 )

  62.       return;

  63.      

  64.    new botname[32]

  65.    get_pcvar_string(bw_botname, botname, 31)

  66.    

  67.    new id = find_player("ia", botname)

  68.    

  69.    new playersn = get_playersnum()

  70.  

  71.    if( !equali(botname, g_oldbotname) )

  72.    {

  73.       if( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) )

  74.       {

  75.          set_user_info(g_oldbotid, "name", botname)

  76.          return;

  77.       }

  78.    }

  79.    

  80.    

  81.    if( playersn < get_pcvar_num(bw_botnumber) && !id )

  82.    {

  83.       g_oldbotid = id = engfunc(EngFunc_CreateFakeClient, botname)

  84.      

  85.       g_oldbotname = botname

  86.      

  87.       if( pev_valid( id ) )

  88.       {

  89.          engfunc( EngFunc_FreeEntPrivateData, id)

  90.          dllfunc( MetaFunc_CallGameEntity, "player", id)

  91.          set_user_info( id, "rate", "3500" )

  92.          set_user_info( id, "cl_updaterate", "25" )

  93.          set_user_info( id, "cl_lw", "1" )

  94.          set_user_info( id, "cl_lc", "1" )

  95.          set_user_info( id, "cl_dlmax", "128" )

  96.          set_user_info( id, "cl_righthand", "1" )

  97.          set_user_info( id, "_vgui_menus", "0" )

  98.          set_user_info( id, "_ah", "0" )

  99.          set_user_info( id, "dm", "0" )

  100.          set_user_info( id, "tracker", "0" )

  101.          set_user_info( id, "friends", "0" )

  102.          set_user_info( id, "*bot", "1" )

  103.          set_pev( id, pev_flags, pev( id, pev_flags ) | FL_FAKECLIENT )

  104.          set_pev( id, pev_colormap, id )

  105.          

  106.          new msg[128]

  107.          dllfunc( DLLFunc_ClientConnect, id, botname, "127.0.0.1", msg )

  108.          dllfunc( DLLFunc_ClientPutInServer, id )

  109.          engfunc( EngFunc_RunPlayerMove, id, Float:{0.0,0.0,0.0}, 0.0, 0.0, 0.0, 0, 0, 76 )

  110.          

  111.          fm_set_user_team(id, CS_TEAM_SPECTATOR);

  112.       }

  113.    }

  114.    

  115.    else if( playersn > get_pcvar_num(bw_botnumber) && id )

  116.    {

  117.       set_pev(id, pev_effects, pev(id, pev_effects) & ~EF_NODRAW)

  118.       server_cmd( "kick #%d", get_user_userid(id) )

  119.    }

  120.    

  121.    else if( id )

  122.    {

  123.       if( !is_user_alive(id) )

  124.      

  125.       set_pev(id, pev_effects, pev(id, pev_effects) & EF_NODRAW)

  126.       set_pev(id, pev_solid, SOLID_NOT)

  127.       set_pev(id, pev_takedamage, DAMAGE_NO)

  128.      

  129.       fix_score_team(id,"SPECTATOR")

  130.      

  131.    }

  132. }

  133.  

  134. stock bool:bw_botis_valid(id)

  135. {  

  136.    return ( is_user_connected(g_oldbotid) && is_user_bot(g_oldbotid) && id == g_oldbotid )

  137. }

  138. stock fm_set_user_team(id, {CsTeams,_}:team, {CS_Internal_Models,_}:model = CS_DONTCHANGE)

  139. {

  140.    if( !is_user_connected(id) )

  141.       return 0;

  142.    

  143.    set_pdata_int(id, 114, _:team, OFFSET_LINUX);

  144.  

  145.    if(model)

  146.    {

  147.       set_pdata_int( id, 126, _:model, OFFSET_LINUX);

  148.    }

  149.  

  150.    dllfunc( DLLFunc_ClientUserInfoChanged, id, engfunc( EngFunc_GetInfoKeyBuffer, id ) );

  151.  

  152.    static const teams[] = { "UNASSIGNED", "TERRORIST", "CT", "SPECTATOR" };

  153.  

  154.    emessage_begin(MSG_BROADCAST, g_teaminfo);

  155.    ewrite_byte(id);

  156.    ewrite_string(teams[_:team]);

  157.    emessage_end();

  158.    

  159.    return 1;

  160.  

  161. }

  162.  

  163. stock fix_score_team(id, const TEAM[])

  164. {

  165.    emessage_begin(MSG_BROADCAST, g_teaminfo);

  166.    ewrite_byte(id);

  167.    ewrite_string(TEAM);

  168.    emessage_end();

  169. }

  170. stock bw_make_cvarexec(const config[])

  171. {

  172.    new f = fopen(config, "wt");

  173.    new stringscvars[192]

  174.    

  175.    fprintf(f, "// Bot WebSite^n")

  176.    fprintf(f, "// -_-_-_-_-_-_-^n")

  177.    get_pcvar_string(bw_botname, stringscvars, 191)

  178.    fprintf(f, "bw_botname ^"%s^" // Bot name, Default( ^"www.YourWebSite.com.ar^" )^n", stringscvars)

  179.    fprintf(f, "bw_kickbot %i // Number of Player to Kick the Bot^n", get_pcvar_num(bw_botnumber))

  180.    fprintf(f, "^n")

  181.    

  182.    fclose(f);

  183.    

  184.    server_cmd("exec %s", config)

  185.    server_exec()

  186. }

  187.  

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.13. 14:32 
Offline
Őstag
Avatar

Csatlakozott: 2012.02.14. 15:09
Hozzászólások: 1423
Megköszönték neki: 2 alkalommal
Hát ez így nem igazán jó. xd
A másik jó csak közbe beáll T-be és a modellje is ottvan t kezdőn ...

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.13. 14:39 
Offline
Őstag
Avatar

Csatlakozott: 2010.04.16. 16:50
Hozzászólások: 1342
Megköszönt másnak: 42 alkalommal
Megköszönték neki: 58 alkalommal
olyat mond amit nem tok,, ezeket én már tudtam mivel régen én is úgí akartam ahogy te..
Próbáld azzal amit oroszrulett linkelt valameik nap
Kód:
  1. /* AMX Mod X

  2. *   No Objectives

  3. *

  4. * (c) Copyright 2007 by VEN

  5. *

  6. * This file is provided as is (no warranties)

  7. *

  8. *       DESCRIPTION

  9. *               Plugin allow to remove all map objectives or objectives of certain type.

  10. *               Round timer will be disbled for maps that doesn't contain any objectives.

  11. *

  12. *       CVARS

  13. *               no_objectives (flags: acde, default: acde, "": disable the plugin)

  14. *                       a - remove "as" (vip assasination) objectives

  15. *                       c - remove "cs" (hostage rescue) objectives

  16. *                       d - remove "de" (bomb defuse) objectives

  17. *                       e - remove "es" (T escape) objectives

  18. *               Note: map change on CVar change required.

  19. *

  20. *       VERSIONS

  21. *               0.3

  22. *                       - added support for all objective entities

  23. *                       - fixed: timer wasn't shown on multi objective maps if objectives wasn't completely removed

  24. *                       - improvements in objective modes routine

  25. *               0.2

  26. *                       - disabled round timer

  27. *                       - added no_objectives CVar

  28. *               0.1

  29. *                       - initial version

  30. */

  31.  

  32. // plugin's main information

  33. #define PLUGIN_NAME "No Objectives"

  34. #define PLUGIN_VERSION "0.3"

  35. #define PLUGIN_AUTHOR "VEN"

  36.  

  37. #include <amxmodx>

  38. #include <fakemeta>

  39.  

  40. new const g_objective_ents[][] = {

  41.         "func_bomb_target",

  42.         "info_bomb_target",

  43.         "hostage_entity",

  44.         "monster_scientist",

  45.         "func_hostage_rescue",

  46.         "info_hostage_rescue",

  47.         "info_vip_start",

  48.         "func_vip_safetyzone",

  49.         "func_escapezone"

  50. }

  51.  

  52. #define OBJTYPE_AS (1<<0)

  53. #define OBJTYPE_CS (1<<2)

  54. #define OBJTYPE_DE (1<<3)

  55. #define OBJTYPE_ES (1<<4)

  56. #define OBJTYPE_ALL (OBJTYPE_AS | OBJTYPE_CS | OBJTYPE_DE | OBJTYPE_ES)

  57.  

  58. #define CVAR_NAME "no_objectives"

  59. #define CVAR_DEFAULT OBJTYPE_ALL

  60.  

  61. new const g_objective_type[] = {

  62.         OBJTYPE_DE,

  63.         OBJTYPE_DE,

  64.         OBJTYPE_CS,

  65.         OBJTYPE_CS,

  66.         OBJTYPE_CS,

  67.         OBJTYPE_CS,

  68.         OBJTYPE_AS,

  69.         OBJTYPE_AS,

  70.         OBJTYPE_ES

  71. }

  72.  

  73. new const bool:g_objective_prim[] = {

  74.         true,

  75.         true,

  76.         true,

  77.         false,

  78.         false,

  79.         false,

  80.         false,

  81.         true,

  82.         true

  83. }

  84.  

  85. #define HIDE_ROUND_TIMER (1<<4)

  86.  

  87. new g_msgid_hideweapon

  88.  

  89. new g_pcvar_no_objectives

  90.  

  91. new g_no_objectives = CVAR_DEFAULT & OBJTYPE_ALL

  92.  

  93. public plugin_precache() {

  94.         if ((g_pcvar_no_objectives = get_cvar_pointer(CVAR_NAME))) {

  95.                 new cvar_val[8]

  96.                 get_pcvar_string(g_pcvar_no_objectives, cvar_val, sizeof cvar_val - 1)

  97.                 g_no_objectives = read_flags(cvar_val) & OBJTYPE_ALL

  98.         }

  99.  

  100.         if (g_no_objectives)

  101.                 register_forward(FM_Spawn, "forward_spawn")

  102. }

  103.  

  104. public plugin_init() {

  105.         register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)

  106.  

  107.         if (!g_pcvar_no_objectives) {

  108.                 new cvar_defval[8]

  109.                 get_flags(CVAR_DEFAULT, cvar_defval, sizeof cvar_defval - 1)

  110.                 register_cvar(CVAR_NAME, cvar_defval)

  111.         }

  112.  

  113.         if (is_objective_map())

  114.                 return

  115.  

  116.         g_msgid_hideweapon = get_user_msgid("HideWeapon")

  117.         register_message(g_msgid_hideweapon, "message_hide_weapon")

  118.         register_event("ResetHUD", "event_hud_reset", "b")

  119.         set_msg_block(get_user_msgid("RoundTime"), BLOCK_SET)

  120. }

  121.  

  122. public forward_spawn(ent) {

  123.         if (!pev_valid(ent))

  124.                 return FMRES_IGNORED

  125.  

  126.         static classname[32], i

  127.         pev(ent, pev_classname, classname, sizeof classname - 1)

  128.         for (i = 0; i < sizeof g_objective_ents; ++i) {

  129.                 if (equal(classname, g_objective_ents[i])) {

  130.                         if (!(g_no_objectives & g_objective_type[i]))

  131.                                 return FMRES_IGNORED

  132.  

  133.                         engfunc(EngFunc_RemoveEntity, ent)

  134.                         return FMRES_SUPERCEDE

  135.                 }

  136.         }

  137.  

  138.         return FMRES_IGNORED

  139. }

  140.  

  141. public message_hide_weapon() {

  142.         set_msg_arg_int(1, ARG_BYTE, get_msg_arg_int(1) | HIDE_ROUND_TIMER)

  143. }

  144.  

  145. public event_hud_reset(id) {

  146.         message_begin(MSG_ONE, g_msgid_hideweapon, _, id)

  147.         write_byte(HIDE_ROUND_TIMER)

  148.         message_end()

  149. }

  150.  

  151. bool:is_objective_map() {

  152.         new const classname[] = "classname"

  153.         for (new i = 0; i < sizeof g_objective_ents; ++i) {

  154.                 if (g_objective_prim[i] && engfunc(EngFunc_FindEntityByString, FM_NULLENT, classname, g_objective_ents[i]))

  155.                         return true

  156.         }

  157.  

  158.         return false

  159. }

  160.  

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.14. 20:36 
Offline
Veterán
Avatar

Csatlakozott: 2011.06.07. 15:29
Hozzászólások: 1728
Megköszönt másnak: 1 alkalommal
Megköszönték neki: 63 alkalommal
Egyszerű: kispawnolod a modelt a mapról. :) Megadsz egy olyan koordinátát, amin biztos nem található a map darabjai. Vagy pedig letolod a földbe ( nem tudom, hogy melyik koordináta is az )
Funkció: set_user_origin http://amxmodx.crys.hu/site/?p=funkciok&f=set_user_origin


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.14. 21:15 
Offline
Őstag
Avatar

Csatlakozott: 2010.04.16. 16:50
Hozzászólások: 1342
Megköszönt másnak: 42 alkalommal
Megköszönték neki: 58 alkalommal
azvan már túlbonyolítva XDD

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Végtelen kör websitebottal...
HozzászólásElküldve: 2012.07.15. 07:02 
Offline
Veterán
Avatar

Csatlakozott: 2011.06.07. 15:29
Hozzászólások: 1728
Megköszönt másnak: 1 alkalommal
Megköszönték neki: 63 alkalommal
Dehogy van. :D Akkor meg is írom. Ezt a részt kell beleírni oda, ahol elkészíti a botot.
Kód:
  1. new origin[3]

  2. get_user_origin(index, origin)

  3. set_user_origin(index, origin[2]-10) // 10 egységgel lentebb viszi. Ennyi talán elég ahhoz, hogy a földbe kerüljön. Ha nem, akkor növeld az értéket addig, ameddig nem lesz látható.


Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése:  Rendezés  
Új téma nyitása  Hozzászólás a témához  [ 9 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 18 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole