fixed but at20584
This commit is contained in:
parent
d190b207b4
commit
18bf26efb6
@ -810,12 +810,6 @@ static cell AMX_NATIVE_CALL get_user_weapon(AMX *amx, cell *params) /* 3 param *
|
|||||||
{
|
{
|
||||||
int wpn = pPlayer->current;
|
int wpn = pPlayer->current;
|
||||||
|
|
||||||
if (!(pPlayer->pEdict->v.weapons & (1<<wpn)))
|
|
||||||
{
|
|
||||||
pPlayer->current = 0;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
cell *cpTemp = get_amxaddr(amx, params[2]);
|
cell *cpTemp = get_amxaddr(amx, params[2]);
|
||||||
*cpTemp = pPlayer->weapons[wpn].clip;
|
*cpTemp = pPlayer->weapons[wpn].clip;
|
||||||
cpTemp = get_amxaddr(amx, params[3]);
|
cpTemp = get_amxaddr(amx, params[3]);
|
||||||
|
Loading…
Reference in New Issue
Block a user