.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   Get A Player Index (http://forums.bots-united.com/showthread.php?t=8956)

thizk 09-09-2011 21:47

Get A Player Index
 
-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.


All times are GMT +2. The time now is 13:45.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.