Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2019
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
  2. {
  3. 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 )
  4. {
  5. SetPlayerHealth( playerid, 0.0 );
  6. PlayerPlaySound( issuerid, 17802, 0, 0, 0);
  7. GameTextForPlayer( issuerid," ~g~HEAD SHOOT", 2000, 3);
  8. GameTextForPlayer( playerid," ~r~HEAD SHOOT", 2000, 3);
  9. }
  10. return 1;
  11. }
  12. //---------------( GameTextForPlayer( issuerid ) -> Ovo ce pokazati Text na Ekranu igraca koji je Ubio nekoga( HS-om! )... )
  13. //---------------( GameTextForPlayer( playerid ) -> Ovo pokazuje Text na Ekranu igraca koji je poginuo.... )
  14. //---------------( PlayerPlaySound( issuerid ) -> Pusta igracu koji je Ubio zvuk Zvonceta. )
  15. //---------------( SetPlayerHealth( playerid ) -> Svi znamo, daje igracu 0 HP i igrac umire. )
  16. //---------------( 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