fix errors

ExtraCommands: add sm_setmvp
This commit is contained in:
BotoX
2017-08-12 15:07:10 +02:00
parent 9c4735659c
commit 68387329f2
6 changed files with 67 additions and 3 deletions
@@ -122,7 +122,9 @@ public MRESReturn AcceptInput(int pThis, Handle hReturn, Handle hParams)
if(DHookIsNullParam(hParams, 2))
return MRES_Ignored;
int client = DHookGetParam(hParams, 2);
int client = EntRefToEntIndex(DHookGetParam(hParams, 2));
if(client < 1 || client > MAXPLAYERS)
return MRES_Ignored;
if(!g_Client_bEnabled[client])
return MRES_Ignored;