hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.03.29. 15:12



Jelenlévő felhasználók

Jelenleg 344 felhasználó van jelen :: 0 regisztrált, 0 rejtett és 344 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ő


Lezárt fórum  A témát lezárták, nem szerkesztheted a hozzászólásaid, és nem küldhetsz új hozzászólást.  [ 3 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Plugin
HozzászólásElküldve: 2015.05.25. 22:08 
Offline
GFX-Designer
Avatar

Csatlakozott: 2015.03.12. 15:06
Hozzászólások: 624
Megköszönt másnak: 199 alkalommal
Megköszönték neki: 78 alkalommal
Sziasztok!! Találtam egy .sma-t de nem tudom mi lenne..valaki elárúlná?? Neten ugy kerestem,mint cd rom ki/be kapcs..

ITT A KÓD:
#if !defined USE_AMX

#include <amxmodx>

#include <amxmisc>

#else

#include <amxmod>

#include <amxmisc>

#define get_pcvar_num(%1) get_cvarptr_num(%1)

#endif



new popcount[33]

new popcd_num



public plugin_init()

{

register_plugin("Eject CD", "0.1", "KRoTaL")

register_concmd("amx_ejectcd", "amx_eject_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> opens the player's CD Drive")

register_concmd("amx_closecd", "amx_close_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> closes the player's CD Drive")

register_concmd("amx_popcd", "amx_pop_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> randomly opens and closes the player's CD Drive")

popcd_num = register_cvar("popcd_num", "5")

}



public client_connect(id)

{

popcount[id] = 0

}



public amx_eject_cd(id, level, cid)

{

if (!cmd_access(id, level, cid, 2))

{

return PLUGIN_HANDLED

}



new arg[32]

read_argv(1, arg, 31)

new i, players[32], inum, player

if(arg[0] == '@')

{

get_players(players, inum, "e", arg[1])

if(inum == 0)

{

console_print(id, "No users in such team")

return PLUGIN_HANDLED

}

for(i = 0; i < inum; ++i)

{

player = players[i]

client_cmd(player, "cd eject")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2,-1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

}

}

else if(arg[0] == '*')

{

get_players(players, inum)

if(inum == 0)

{

console_print(id, "No users in such team")

return PLUGIN_HANDLED

}

for(i = 0; i < inum; ++i)

{

player = players[i]

client_cmd(player, "cd eject")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

}

}

else

{

player = cmd_target(id, arg, 11)

if (!player)

return PLUGIN_HANDLED



client_cmd(player, "cd eject")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

}



return PLUGIN_HANDLED

}



public amx_close_cd(id, level, cid)

{

if (!cmd_access(id, level, cid, 2))

{

return PLUGIN_HANDLED

}



new arg[32]

read_argv(1,arg,32)

new i, players[32], inum, player

if(arg[0] == '@')

{

get_players(players, inum, "e", arg[1])

if(inum == 0)

{

console_print(id, "No users in such team")

return PLUGIN_HANDLED

}

for(i = 0; i < inum; ++i)

{

player = players[i]

client_cmd(player, "cd close")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

}

}

else if(arg[0] == '*')

{

get_players(players, inum)

if(inum == 0)

{

console_print(id, "No users in such team")

return PLUGIN_HANDLED

}

for(i = 0; i < inum; ++i)

{

player = players[i]

client_cmd(player, "cd close")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

}

}

else

{

player = cmd_target(id, arg, 11)

if (!player)

return PLUGIN_HANDLED



client_cmd(player, "cd close")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

}



return PLUGIN_HANDLED

}



public amx_pop_cd(id, level, cid)

{

if (!cmd_access(id,level,cid,2))

{

return PLUGIN_HANDLED

}



new arg[32]

read_argv(1,arg,32)

new i, players[32], inum, player

if(arg[0] == '@')

{

get_players(players, inum, "e", arg[1])

if(inum == 0)

{

console_print(id, "No users in such team")

return PLUGIN_HANDLED

}

for(i = 0; i < inum; ++i)

{

player = players[i]

client_cmd(player, "cd eject")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_task(random_float(3.0, 6.0), "close_cd", players[i])

}

}

else if(arg[0] == '*')

{

get_players(players, inum)

if(inum == 0)

{

console_print(id, "No users in such team")

return PLUGIN_HANDLED

}

for(i = 0; i < inum; ++i)

{

player = players[i]

client_cmd(player, "cd eject")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_task(random_float(3.0, 6.0), "close_cd", players[i])

}

}

else

{

player = cmd_target(id, arg, 11)

if (!player)

return PLUGIN_HANDLED



client_cmd(player, "cd eject")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(player, "YOU ARE GETTING HACKED!")

set_task(random_float(3.0, 6.0), "close_cd", player)

}



return PLUGIN_HANDLED

}



public open_cd(id)

{

client_cmd(id, "cd eject")

set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(id, "YOU ARE GETTING HACKED!")

set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(id, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(id, "YOU ARE GETTING HACKED!")

set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, -1)

show_hudmessage(id, "YOU ARE GETTING HACKED!")

set_task(random_float(3.0, 6.0), "close_cd", id)

}



public close_cd(id)

{

popcount[id]++

client_cmd(id, "cd close")

if(popcount[id] < get_pcvar_num(popcd_num))

{

set_task(random_float(3.0, 6.0), "open_cd", id)

}

else

{

popcount[id] = 0

}

}

_________________
„Nem azért felejtünk el játszani, mert megöregszünk, hanem attól öregszünk meg, hogy elfelejtünk játszani.”

-MAXHACKED Website-
-HERViD Website-
► Spoiler mutatása


Hozzászólás jelentése
Vissza a tetejére
   
 
 Hozzászólás témája: Re: Plugin
HozzászólásElküldve: 2015.05.25. 22:11 
Offline
Tud valamit

Csatlakozott: 2014.08.22. 10:32
Hozzászólások: 144
Megköszönt másnak: 12 alkalommal
Megköszönték neki: 9 alkalommal
Ha beírod konzolba amx_eject_cd "jatekosneve" akkor kinyomja neki a cd olvasót.


Hozzászólás jelentése
Vissza a tetejére
   
 
 Hozzászólás témája: Re: Plugin
HozzászólásElküldve: 2015.06.04. 14:46 
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
Téma névre figyelj legközelebb + használd a [sma] BBcode -ot. Kuka.

Ők köszönték meg oroszrulett nek ezt a hozzászólást: AsD# (2015.06.07. 19:49)
  Népszerűség: 2.27%


Hozzászólás jelentése
Vissza a tetejére
   
 
Hozzászólások megjelenítése:  Rendezés  
Lezárt fórum  A témát lezárták, nem szerkesztheted a hozzászólásaid, és nem küldhetsz új hozzászólást.  [ 3 hozzászólás ] 


Ki van itt

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


Nem nyithatsz témákat ebben a fórumban.
Nem 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