Guest User

Untitled

a guest
Feb 5th, 2012
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. GetDynamicObjectPos(playerinfo[playerid][katana0], pos[0], pos[1], pos[2]);
  2. foreach(Player, i)
  3. {
  4. if(playerid != i)
  5. {
  6. if(IsPlayerInRangeOfPoint(i, 3.5, pos[0], pos[1], pos[2]))
  7. {
  8. new
  9. Float: health;
  10.  
  11. GetPlayerPos(i, pos[0], pos[1], pos[2]);
  12. if(!IsValidDynamicObject(playerinfo[i][bloodobject])) playerinfo[i][bloodobject] = CreateDynamicObject(18668, pos[0], pos[1], pos[2] - 1.6, 0, 0, 0, -1, -1, -1, 50);
  13. foreach(Player, d) if(GetPVarInt(d, "insideship") == 0) Streamer_UpdateEx(d, pos[0], pos[1], pos[2]);
  14. SetTimerEx("DestroyDynamicObjectCall", 1000, false, "d", playerinfo[i][bloodobject]);
  15. GetPlayerHealth(i, health);
  16. SetPlayerHealth(i, health - 50);
  17. break;
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment