forked from UNLOZE/sm-plugins
fix errors
ExtraCommands: add sm_setmvp
This commit is contained in:
@@ -235,7 +235,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;
|
||||
|
||||
char szInputName[32];
|
||||
DHookGetParamString(hParams, 1, szInputName, sizeof(szInputName));
|
||||
|
||||
Reference in New Issue
Block a user