26.07.2015, 17:41
Use this callback.
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(PlayerAcc[playerid][God] == 1)
{
PlayerAcc[playerid][God] = 0;
SetPlayerHealth(playerid, 100);
}
return 1;
}