AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   part of nick to full nick (https://forums.alliedmods.net/showthread.php?t=217757)

piepie 06-07-2013 02:22

part of nick to full nick
 
how can i make a comand like .kick play , the name of the player is player and with a part of the nick the plugin will get the player

YamiKaitou 06-07-2013 02:36

Re: part of nick to full nick
 
Hook say and then read the arguments. If the first argument is ".kick", then read the second argument and then kick that player.

To get the index from a name, use cmd_target

akcaliberg 06-07-2013 06:51

Re: part of nick to full nick
 
target_id = cmd_target(id, part_of_name, 7)
get_user_name(target_id, target_fullname, 31)

that's all


All times are GMT -4. The time now is 16:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.