User
Pass
2FA
 
 

plugin

 
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) -> Tutorials
Author Message1387
misu

[Mentally Stable]



Status: Offline
(since 22-02-2009 19:08)
Joined: 21 Feb 2009
Posts: 3, Topics: 3
Location: Romania

Reputation: 85.1
Votes: 4

Post Posted: 21-02-2009, 19:54:06 | Translate post to: ... (Click for more languages)

as dori si eu un plugin...cu numele : limittime
se poate face un plugin cand dai /limit sa bagi limita la timp??
adica asa : /limit 35
daca se poate face puneti voi aici sma-ul si amxx? va rog mult..

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: 19-05-2009, 18:41:09 | Translate post to: ... (Click for more languages)

Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "SayLimit"
#define VERSION "1.0"
#define AUTHOR "nr913"

public plugin_init()
{
   register_plugin(PLUGIN,VERSION,AUTHOR)
   register_concmd("say /limit","cmdLimit",ADMIN_RCON,"<minutes>")
}

public cmdLimit(id,level,cid)
{
   if(!cmd_access(id,level,cid,3))
      return PLUGIN_HANDLED
   new string[8],Float:minutes
   read_argv(2,string,7)
   minutes=str_to_float(string)
   server_cmd("mp_timelimit %d",minutes)
   client_print(id,print_chat,"[AMXX] TimeLimit set to %d minutes",minutes)
   return PLUGIN_HANDLED
}

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) -> Tutorials  


The time now is 27-04-2024, 13:37:41
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x