.:: Bots United ::.  
filebase forums irc server wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps waypoints yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
Get A Player Index
Old
  (#1)
thizk
Member
 
Status: Offline
Posts: 1
Join Date: May 2011
Default Get A Player Index - 09-09-2011

-title-
how to get a player index, example : console > mm_slap "index" "slap amount"

code:
PHP Code:
void mm_cmd()
{
    const 
charcmd CMD_ARGV(0);
    
edict_tpPlayer = (*g_engfuncs.pfnGetPlayerUserId)( cmd );

sorry my bad english.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com