Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- new const PLUGIN[] = "Player Name"
- new const VERSION[] = "1.0"
- new const AUTHOR[] = "TheSnakeBiter"
- new playerName[32]
- public client_putinserver(id)
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- get_user_info(id, "name", playerName, 31)
- set_task(15.0,"test_user_name",id)
- test_user_name(id)
- return PLUGIN_CONTINUE
- }
- public test_user_name(id)
- {
- new idserver = get_user_userid(id)
- get_user_info(id, "name", playerName, 31)
- if (playerName[32] == "Player")
- {
- server_cmd("kick #%d %L", idserver, id, "Nick Prohibido")
- }
- return PLUGIN_CONTINUE
- }
- public client_infochanged(id)
- {
- new idserver = get_user_userid(id)
- get_user_info(id, "name", playerName, 31)
- if (playerName[32] == "Player")
- {
- server_cmd("kick #%d %L", idserver, id, "Nick Prohibido")
- }
- return PLUGIN_CONTINUE
- }
Add Comment
Please, Sign In to add comment