Se for esse:
https://sampforum.blast.hk/showthread.php?tid=220943
Basta remover o que estб em comentбrio // /* */
PHP код:
//new GrenadeReload[MAX_PLAYERS];
if(newkeys & KEY_FIRE)
{
if(/*GrenadeReload[playerid] == 1 &&*/ GetPlayerWeapon(playerid) == 31 && GrenadeArmed[playerid] == 1)
{
// GrenadeReload[playerid] = 0; REMOVA ISSO TAMBEM
SetTimerEx("ReloadGrenade",5*1000,false,"i",playerid);
new Float:nadex, Float:nadey, Float:nadez, Float:angle;
GetPosFromView(playerid, Distance, nadex, nadey, nadez);
GetPlayerFacingAngle(playerid, angle);
CreateExplosion(nadex,nadey,nadez, 0, 1.0);
}
}
return 1;
}
stock GetPosFromView(playerid, Float:distance, &Float:x, &Float:y, &Float:z)
{
new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
GetPlayerCameraPos(playerid, cx, cy, cz);
GetPlayerCameraFrontVector(playerid, fx, fy, fz);
x = fx * distance + cx;
y = fy * distance + cy;
z = fz * distance + cz;
}
/*forward ReloadGrenade(playerid);
public ReloadGrenade(playerid)
{
GrenadeReload[playerid] = 1;
SendClientMessage(playerid,RED,"Your grenade launcher has been reloaded!");
return 1;
}*/