Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward SharkAttack();
- public SharkAttack()
- {
- for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
- {
- if(GetPlayerAnimationIndex(playerid))
- {
- new animname[32];
- GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
- GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
- }
- {
- if(strcmp(animlib, "SWIM", true) == 1)
- {
- new Float:x1,y1,z1;
- MoveObject(Shark, Float:x1, Float:y1, Float:z1, 4.0, 0,0,0);
- SetObjectToFaceCords(Shark, Float:x1,Float:y1,Float:z1);
- IsPlayerInRangeOfPoint(playerid, 40.0, 2960.7976, -2050.3904, -1.6530);
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment