Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
- {
- if(weaponid == GRANATOS_ID) /* tikrinam ar ginklas kurio buvo sužeistas, granata. */
- {
- if(amount > 0.0) /* ar padaryta žala yra didesnė už 0 */
- {
- if(playerid != zombis) /* ar sužeistasis nėra zombis */
- {
- // čia jau užkrėtimo kodas.
- return 1;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment