User
Pass
2FA
 
 

/map

 
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 Message1456
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, 20:50:01 | Translate post to: ... (Click for more languages)

un plugin /map?
sa dai asa : /map de_dust2
?

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:34:50 | Translate post to: ... (Click for more languages)

Sa dai "/map de_dust2" si sa se schimbe harta in de_dust2?

Daca da, uite aici
Code:
#include <amxmodx>
#include <amxmisc>

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

public plugin_init()
{
   register_plugin(PLUGIN,VERSION,AUTHOR)
   register_concmd("say /map","cmdMap",ADMIN_MAP,"<mapname>")
}

public chMap(map[])
{
   server_cmd("changelevel %s", map)
}

public cmdMap(id, level, cid)
{
   if (!cmd_access(id, level, cid, 3))
      return PLUGIN_HANDLED

   new arg[32]
   new arglen = read_argv(2, arg, 31)
   
   if (!is_map_valid(arg))
   {
      console_print(id, "[AMXX] %L", id, "MAP_NOT_FOUND")
      return PLUGIN_HANDLED
   }

   new authid[32], name[32]
   
   get_user_authid(id, authid, 31)
   get_user_name(id, name, 31)
   
   show_activity_key("ADMIN_MAP_1", "ADMIN_MAP_2", name, arg);
   
   log_amx("Cmd: ^"%s<%d><%s><>^" changelevel ^"%s^"", name, get_user_userid(id), authid, arg)
   
   new _modName[10]
   get_modname(_modName, 9)
   
   if (!equal(_modName, "zp"))
   {
      message_begin(MSG_ALL, SVC_INTERMISSION)
      message_end()
   }
   
   set_task(2.0, "chMap", 0, arg, arglen + 1)
   
   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, 14:28:38
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