Guest User

Untitled

a guest
Feb 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. forward SharkAttack();
  2. public SharkAttack()
  3. {
  4. for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
  5. {
  6. if(GetPlayerAnimationIndex(playerid))
  7. {
  8. new animname[32];
  9. GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
  10. GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
  11. }
  12. {
  13. if(strcmp(animlib, "SWIM", true) == 1)
  14. {
  15. new Float:x1,y1,z1;
  16. MoveObject(Shark, Float:x1, Float:y1, Float:z1, 4.0, 0,0,0);
  17. SetObjectToFaceCords(Shark, Float:x1,Float:y1,Float:z1);
  18. IsPlayerInRangeOfPoint(playerid, 40.0, 2960.7976, -2050.3904, -1.6530);
  19. }
  20. }
  21. }
  22. return 1;
  23. }
Add Comment
Please, Sign In to add comment