User
Pass
2FA
 
 

/reguli

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message3771
ShiTeNN

[Mentally Stable]



Status: Offline
(since 02-08-2019 19:54)
Joined: 30 Mar 2010
Posts: 171, Topics: 37
Location: Romania

Reputation: 260.6
Votes: 8

Post Posted: 24-04-2010, 18:52:17 | Translate post to: ... (Click for more languages)

am reusit sa fac un plugin, imi da bne la compilare dar nu st ce are de nu merge:(((


Quote:
#include <amxmodx>


public ShowMotd(id)
{
show_motd(id, "Reguli.txt")
}
public client_authorized(id)
{
set_task(30.0, "PrintText" ,id)
}
public PrintText(id)
{
client_print(id, print_chat, "[Reguli] Tastati /reguli pentru a vedea regurile servarului")
}

public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "/reguli") != -1 && containi(said, "/reguli") != -1 ) || contain(said, "/reguli") != -1 )
set_task(0.1,"print_reguli",id)

return PLUGIN_CONTINUE
}


Pot sa stiu unde am gresit?! -
sau de fapt unde trebuie pus reglui.txt in cstrike sau in config?!




[dm.freakz.ro] Se cauta admini capabili


0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 24-04-2010, 19:14:53 | Translate post to: ... (Click for more languages)

ShiTeNN wrote:
am reusit sa fac un plugin, imi da bne la compilare dar nu st ce are de nu merge:(((


Quote:
#include <amxmodx>


public ShowMotd(id)
{
show_motd(id-567, "Reguli.txt")
}
public client_authorized(id)
{
set_task(30.0, "PrintText" ,id)
}
public PrintText(id)
{
client_print(id, print_chat, "[Reguli] Tastati /reguli pentru a vedea regurile servarului")
}

public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "/reguli") != -1 )
set_task(0.1,"ShowMotd",id+567)

return PLUGIN_CONTINUE
}

public plugin_init()
{
register_plugin( "ReguliMotd", "1.0", "ShiTeNN" )
register_clcmd( "say", "handle_say" )
}



Pot sa stiu unde am gresit?! -
sau de fapt unde trebuie pus reglui.txt in cstrike sau in config?!


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
ShiTeNN

[Mentally Stable]



Status: Offline
(since 02-08-2019 19:54)
Joined: 30 Mar 2010
Posts: 171, Topics: 37
Location: Romania

Reputation: 260.6
Votes: 8

Post Posted: 24-04-2010, 19:36:25 | Translate post to: ... (Click for more languages)

si o sa mearga, sau ce ca nu inteleg?!



[dm.freakz.ro] Se cauta admini capabili


0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 24-04-2010, 21:13:32 | Translate post to: ... (Click for more languages)

Ti-am corectat niste greseli si ti-am adaugat ceva importat. Ar trebui sa mearga, nu ai incercat?

Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
ShiTeNN

[Mentally Stable]



Status: Offline
(since 02-08-2019 19:54)
Joined: 30 Mar 2010
Posts: 171, Topics: 37
Location: Romania

Reputation: 260.6
Votes: 8

Post Posted: 25-04-2010, 14:52:11 | Translate post to: ... (Click for more languages)

Nu, acuma ma uit, cezi ca ar fi bine sa pun in loc de reguli.txt reguli.html si unde pus reguli.txt in ce fiser?!



[dm.freakz.ro] Se cauta admini capabili


0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 26-04-2010, 18:40:27 | Translate post to: ... (Click for more languages)

merge si cu .txt dar mai bine fa-l .html. Incearca sa il pui in /cstrike, daca nu il ia, pune-l in /cstrike/addons/amxmodx/configs desi nu cred.

Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
revox

[Psychotic]



Status: Offline
(since 13-03-2023 07:43)
Joined: 11 Mar 2008
Posts: 9596, Topics: 492
Location: Romania

Reputation: 2911.8
Votes: 328

Post Posted: 27-04-2010, 18:47:00 | Translate post to: ... (Click for more languages)

Code:
#include <amxmodx>

new const VERSION[] = "1.0";

public plugin_init()
{
    register_plugin("MOTD Plugin", VERSION, "")

    register_clcmd("say /reguli", "Motd")
    register_clcmd("say_team /reguli", "Motd")
   
    // Register the Client Command with a motd
    register_clcmd("say reguli", "Motd")
    register_clcmd("say_team reguli", "Motd")
}

public Motd(id)
{
    show_motd(id,"reguli.txt SAU reguli.html")
}


si pune reguli.txt sau reguli.html in folderul folderul principal (unde e si server.cfg)
si-ti va merge perfect -

0 0
  
Back to top
View user's profile Send private message
ion

[prin vacante]



Status: Offline
(since 10-12-2018 10:49)
Joined: 30 Jan 2008
Posts: 7503, Topics: 333
Location: Romania

Reputation: 1770.2
Votes: 191

 
Post Posted: 27-04-2010, 18:54:36 | Translate post to: ... (Click for more languages)

Nu cred ca merge cu html-ul pus in cstrike, mai bine txt.


0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
ShiTeNN

[Mentally Stable]



Status: Offline
(since 02-08-2019 19:54)
Joined: 30 Mar 2010
Posts: 171, Topics: 37
Location: Romania

Reputation: 260.6
Votes: 8

Post Posted: 02-05-2010, 01:24:11 | Translate post to: ... (Click for more languages)

deci pana la urma ce folosesc?!



[dm.freakz.ro] Se cauta admini capabili


0 0
  
Back to top
View user's profile Send private message
revox

[Psychotic]



Status: Offline
(since 13-03-2023 07:43)
Joined: 11 Mar 2008
Posts: 9596, Topics: 492
Location: Romania

Reputation: 2911.8
Votes: 328

Post Posted: 02-05-2010, 02:34:54 | Translate post to: ... (Click for more languages)

revox wrote:
Code:
#include <amxmodx>

new const VERSION[] = "1.0";

public plugin_init()
{
    register_plugin("MOTD Plugin", VERSION, "")

    register_clcmd("say /reguli", "Motd")
    register_clcmd("say_team /reguli", "Motd")
   
    // Register the Client Command with a motd
    register_clcmd("say reguli", "Motd")
    register_clcmd("say_team reguli", "Motd")
}

public Motd(id)
{
    show_motd(id,"reguli.txt SAU reguli.html")
}


si pune reguli.txt sau reguli.html in folderul folderul principal (unde e si server.cfg)
si-ti va merge perfect -

un fisier txt sau stai prost cu vederea? -

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 04-08-2025, 07:54:03
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password