Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSSButton Log (Zombie Escape) Cs 1.6


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:

This Plugin Can Show Player Who Pressed The Button .


Ex:

[ZE] (Name) Press the Button 'door1'
-
[ZE] (Name) Press the Button 'door2'
-
[ZE] (Name) Press the Button 'boat'
-
[ZE] (Name) Press the Button 'zzz'
-
zzz = The player who called










Code :
--------------------------------

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define PLUGIN "[ZP] Plugin: Show Button Pressed"
#define VERSION "1.0"
#define AUTHOR "[P]erfec[T] [S]cr[@]s[H]"

new anti_flood_last_ent[33]

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

RegisterHam(Ham_Use, "func_button", "fw_UseStationary")
RegisterHam(Ham_Use, "func_rot_button", "fw_UseStationary")
}

public fw_UseStationary(entity, caller, activator, use_type)
{
if(anti_flood_last_ent[caller] == entity)
return HAM_IGNORED

static class[32]
static name[32]; get_user_name(caller, name, 31);
entity_get_string(entity, EV_SZ_targetname, class, 31) // ta target pra ver o nome do botao

if(!class[0])
entity_get_string(entity, EV_SZ_target, class, 31)

client_printcolor(0, "!g[ZE] !t%s!y Press the Button !t'%s'", name, class)

anti_flood_last_ent[caller] = entity
remove_task(caller)
set_task(3.0, "anti_flood_reset", caller)

return HAM_IGNORED
}

public anti_flood_reset(id) anti_flood_last_ent[id] = 0

stock client_printcolor(const id,const input[], any:...)
{
new msg[191], players[32], count = 1; vformat(msg,190,input,3);
replace_all(msg,190,"!g","^4"); // green
replace_all(msg,190,"!y","^1"); // normal
replace_all(msg,190,"!t","^3"); // team

if (id) players[0] = id; else get_players(players,count,"ch");

for (new i=0;i<count;i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE,get_user_msg id("SayText"),_,players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}

--------------------------------


This Plugin For Only Counter-Strike 1.6 .
This Is My First Plugin , Hope this is useful ^^
This Plugin Is Very Usefull For Zombie Escape and ty :grrr:

Download Link (Amx) : https://www.mediafire.com/file/vfrd9...tton.amxx/file
Download Link (Sma) : https://www.mediafire.com/file/peq0u...utton.sma/file

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...