Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
- {
- if( issuerid != INVALID_PLAYER_ID && weponid == 34 && bodypart == 9 ) // * Proverava da li Krivac( issuerid ) ima Weap. 34 ( Sniper ) i da li pogadja nekoga u BodyPart 9 ( Glavu )
- {
- SetPlayerHealth( playerid, 0.0 );
- PlayerPlaySound( issuerid, 17802, 0, 0, 0);
- GameTextForPlayer( issuerid," ~g~HEAD SHOOT", 2000, 3);
- GameTextForPlayer( playerid," ~r~HEAD SHOOT", 2000, 3);
- }
- return 1;
- }
- //---------------( GameTextForPlayer( issuerid ) -> Ovo ce pokazati Text na Ekranu igraca koji je Ubio nekoga( HS-om! )... )
- //---------------( GameTextForPlayer( playerid ) -> Ovo pokazuje Text na Ekranu igraca koji je poginuo.... )
- //---------------( PlayerPlaySound( issuerid ) -> Pusta igracu koji je Ubio zvuk Zvonceta. )
- //---------------( SetPlayerHealth( playerid ) -> Svi znamo, daje igracu 0 HP i igrac umire. )
- //---------------( Obrisite ove zelene linije to Vam ne treba.Ako ne zelite slucajno GameTextFp. samo stavite pred Game[ // ] ili obrisite linije 7 i 8. )----//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement