Isso também deve funcionar...
Código:
new bool:PlayerInCP[MAX_PLAYERS];
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_PLAYER)
{
if(PlayerInCP[hitid] && weaponid == WEAPON_GRENADE) return 0;
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
PlayerInCP[playerid] = true;
return 1;
}
public OnPlayerExitCheckpoint(playerid)
{
PlayerInCP[playerid] = false;
return 1;
}