Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Memfish Minigame v2.0 by Memphis
- Copyright c 2015
- Lines: 1590*/
- #include <a_samp>
- #include <streamer>
- #include <fixchars>
- #include <OPSP>
- new deer[38], area[2];
- new enablefish[MAX_PLAYERS];
- new fishter[MAX_PLAYERS];
- new fishgo[MAX_PLAYERS];
- new connect_timer[MAX_PLAYERS];
- new fishnyeremeny[MAX_PLAYERS];
- new Float:onex, Float:oney, Float:onez;
- new Float:twox, Float:twoy, Float:twoz;
- new Float:threex, Float:threey, Float:threez;
- new Float:fourx, Float:foury, Float:fourz;
- new Float:fivex, Float:fivey, Float:fivez;
- new Float:sixx, Float:sixy, Float:sixz;
- new Float:sevenx, Float:seveny, Float:sevenz;
- new Float:eightx, Float:eighty, Float:eightz;
- new Float:ninex, Float:niney, Float:ninez;
- new Float:tenx, Float:teny, Float:tenz;
- new Float:tenonex, Float:tenoney, Float:tenonez;
- new Float:tentwox, Float:tentwoy, Float:tentwoz;
- new Float:tenthreex, Float:tenthreey, Float:tenthreez;
- new Float:tenfourx, Float:tenfoury, Float:tenfourz;
- new Float:tenfivex, Float:tenfivey, Float:tenfivez;
- new Float:tensixx, Float:tensixy, Float:tensixz;
- new Float:tensevenx, Float:tenseveny, Float:tensevenz;
- new Float:teneightx, Float:teneighty, Float:teneightz;
- new Float:tenninex, Float:tenniney, Float:tenninez;
- new Float:twentyx, Float:twentyy, Float:twentyz;
- new Float:twentyonex, Float:twentyoney, Float:twentyonez;
- new Float:twentytwox, Float:twentytwoy, Float:twentytwoz;
- new Float:twentythreex, Float:twentythreey, Float:twentythreez;
- new Float:twentyfourx, Float:twentyfoury, Float:twentyfourz;
- new Float:twentyfivex, Float:twentyfivey, Float:twentyfivez;
- new Float:twentysixx, Float:twentysixy, Float:twentysixz;
- new Float:twentysevenx, Float:twentyseveny, Float:twentysevenz;
- new Float:twentyeightx, Float:twentyeighty, Float:twentyeightz;
- new Float:twentyninex, Float:twentyniney, Float:twentyninez;
- new Float:thirtyx, Float:thirtyy, Float:thirtyz;
- new Float:thirtyonex, Float:thirtyoney, Float:thirtyonez;
- new Float:thirtytwox, Float:thirtytwoy, Float:thirtytwoz;
- new Float:thirtythreex, Float:thirtythreey, Float:thirtythreez;
- new Float:thirtyfourx, Float:thirtyfoury, Float:thirtyfourz;
- new Float:vertical, Float:horizontal;
- new copyright[128];
- new kills[MAX_PLAYERS];
- new PlayerText:Textdraw0[MAX_PLAYERS];
- #define DIALOG_WELCOME 1234
- #define MEMFISH 150
- #define MEMFISH_KORLAT "150"
- #define CopyR "{ff0000}Memphis"
- #define BUILD "{ff0099}v2.0"
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- Float:DistanceCameraTargetToLocation(Float:CamX, Float:CamY, Float:CamZ, Float:ObjX, Float:ObjY, Float:ObjZ, Float:FrX, Float:FrY, Float:FrZ) {
- new Float:TGTDistance;
- TGTDistance = floatsqroot((CamX - ObjX) * (CamX - ObjX) + (CamY - ObjY) * (CamY - ObjY) + (CamZ - ObjZ) * (CamZ - ObjZ));
- new Float:tmpX, Float:tmpY, Float:tmpZ;
- tmpX = FrX * TGTDistance + CamX;
- tmpY = FrY * TGTDistance + CamY;
- tmpZ = FrZ * TGTDistance + CamZ;
- return floatsqroot((tmpX - ObjX) * (tmpX - ObjX) + (tmpY - ObjY) * (tmpY - ObjY) + (tmpZ - ObjZ) * (tmpZ - ObjZ));
- }
- stock Float:GetPointAngleToPoint(Float:x2, Float:y2, Float:X, Float:Y) {
- new Float:DX, Float:DY;
- new Float:angle;
- DX = floatabs(floatsub(x2,X));
- DY = floatabs(floatsub(y2,Y));
- if (DY == 0.0 || DX == 0.0) {
- if(DY == 0 && DX > 0) angle = 0.0;
- else if(DY == 0 && DX < 0) angle = 180.0;
- else if(DY > 0 && DX == 0) angle = 90.0;
- else if(DY < 0 && DX == 0) angle = 270.0;
- else if(DY == 0 && DX == 0) angle = 0.0;
- }
- else {
- angle = atan(DX/DY);
- if(X > x2 && Y <= y2) angle += 90.0;
- else if(X <= x2 && Y < y2) angle = floatsub(90.0, angle);
- else if(X < x2 && Y >= y2) angle -= 90.0;
- else if(X >= x2 && Y > y2) angle = floatsub(270.0, angle);
- }
- return floatadd(angle, 90.0);
- }
- stock GetXYInFrontOfPoint(&Float:x, &Float:y, Float:angle, Float:distance) {
- x += (distance * floatsin(-angle, degrees));
- y += (distance * floatcos(-angle, degrees));
- }
- stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius) {
- new Float:camera_x,Float:camera_y,Float:camera_z,Float:vector_x,Float:vector_y,Float:vector_z;
- GetPlayerCameraPos(playerid, camera_x, camera_y, camera_z);
- GetPlayerCameraFrontVector(playerid, vector_x, vector_y, vector_z);
- switch (GetPlayerWeapon(playerid)) {
- case 34,35,36: {
- if (DistanceCameraTargetToLocation(camera_x, camera_y, camera_z, x, y, z, vector_x, vector_y, vector_z) < radius) return true;
- return false;
- }
- case 30,31: {vertical = 4.0; horizontal = -1.6;}
- case 33: {vertical = 2.7; horizontal = -1.0;}
- default: {vertical = 6.0; horizontal = -2.2;}
- }
- new Float:angle = GetPointAngleToPoint(0, 0, floatsqroot(vector_x*vector_x+vector_y*vector_y), vector_z) - 270.0;
- new Float:resize_x, Float:resize_y, Float:resize_z = floatsin(angle+vertical, degrees);
- GetXYInFrontOfPoint(resize_x, resize_y, GetPointAngleToPoint(0, 0, vector_x, vector_y)+horizontal, floatcos(angle+vertical, degrees));
- if (DistanceCameraTargetToLocation(camera_x, camera_y, camera_z, x, y, z, resize_x, resize_y, resize_z) < radius) return true;
- return false;
- }
- public OnPlayerConnect(playerid)
- {
- enablefish[playerid] = 0;
- fishter[playerid] = 0;
- fishgo[playerid] = 0;
- kills[playerid] = 0;
- return 1;
- }
- public OnFilterScriptInit()
- {
- deer[0] = CreateDynamicObject(1604, 813.80652, 1651.17017, 6.39090, 0.00000, 0.00000, 90.00000, 2);
- deer[1] = CreateDynamicObject(1604, 812.83289, 1641.93262, 5.63370, 0.00000, 0.00000, 90.00000, 2);
- deer[2] = CreateDynamicObject(1604, 812.84717, 1643.64136, 5.63370, 0.00000, 0.00000, 90.00000, 2);
- deer[3] = CreateDynamicObject(1604, 813.51984, 1636.42358, 6.35583, 0.00000, 0.00000, 90.00000, 2);
- deer[4] = CreateDynamicObject(1604, 813.50043, 1644.02075, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[5] = CreateDynamicObject(1604, 813.52014, 1633.53076, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[6] = CreateDynamicObject(1604, 812.71326, 1632.09778, 5.36595, 0.00000, 0.00000, 90.00000, 2);
- deer[7] = CreateDynamicObject(1604, 812.82452, 1634.39319, 5.66696, 0.00000, 0.00000, 90.00000, 2);
- deer[8] = CreateDynamicObject(1604, 814.55859, 1633.06262, 6.88943, 0.00000, 0.00000, 90.00000, 2);
- deer[9] = CreateDynamicObject(1604, 814.63116, 1637.05750, 6.88940, 0.00000, 0.00000, 90.00000, 2);
- deer[10] = CreateDynamicObject(1604, 814.64349, 1624.27185, 6.88940, 0.00000, 0.00000, 90.00000, 2);
- deer[11] = CreateDynamicObject(1604, 814.41290, 1649.69849, 6.39090, 0.00000, 0.00000, 90.00000, 2);
- deer[12] = CreateDynamicObject(1604, 815.09680, 1648.39954, 5.74113, 0.00000, 0.00000, 90.00000, 2);
- deer[13] = CreateDynamicObject(1604, 814.07562, 1649.51050, 6.04417, 0.00000, 0.00000, 90.00000, 2);
- deer[14] = CreateDynamicObject(1604, 815.48120, 1636.69336, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[15] = CreateDynamicObject(1604, 814.30768, 1637.36255, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[16] = CreateDynamicObject(1604, 815.36877, 1634.11487, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[17] = CreateDynamicObject(1604, 814.23602, 1632.37439, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[18] = CreateDynamicObject(1604, 815.76440, 1628.93188, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[19] = CreateDynamicObject(1604, 815.08368, 1637.80676, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[20] = CreateDynamicObject(1604, 815.08368, 1637.80676, 6.77770, 0.00000, 0.00000, 90.00000, 2);
- deer[21] = CreateDynamicObject(1604, 814.55341, 1635.53979, 6.55557, 0.00000, 0.00000, 90.00000, 2);
- deer[22] = CreateDynamicObject(1604, 814.84479, 1640.87634, 6.85371, 0.00000, 0.00000, 90.00000, 2);
- deer[23] = CreateDynamicObject(1604, 813.83588, 1643.10217, 5.63370, 0.00000, 0.00000, 90.00000, 2);
- deer[24] = CreateDynamicObject(1604, 813.82953, 1647.18164, 6.04417, 0.00000, 0.00000, 90.00000, 2);
- deer[25] = CreateDynamicObject(1604, 814.54596, 1647.30957, 6.41987, 0.00000, 0.00000, 90.00000, 2);
- deer[26] = CreateDynamicObject(1604, 814.02185, 1645.65967, 5.73276, 0.00000, 0.00000, 90.00000, 2);
- deer[27] = CreateDynamicObject(1604, 815.29480, 1643.20801, 6.13626, 0.00000, 0.00000, 90.00000, 2);
- deer[28] = CreateDynamicObject(1604, 814.82391, 1641.64307, 6.13626, 0.00000, 0.00000, 90.00000, 2);
- deer[28] = CreateDynamicObject(1604, 814.46466, 1639.94714, 6.13626, 0.00000, 0.00000, 90.00000, 2);
- deer[30] = CreateDynamicObject(1604, 814.95929, 1640.51062, 5.66366, 0.00000, 0.00000, 90.00000, 2);
- deer[31] = CreateDynamicObject(1604, 815.54102, 1640.51941, 6.35580, 0.00000, 0.00000, 90.00000, 2);
- deer[32] = CreateDynamicObject(1604, 814.81555, 1630.32007, 5.91798, 0.00000, 0.00000, 90.00000, 2);
- deer[33] = CreateDynamicObject(1604, 813.98413, 1627.29175, 5.91798, 0.00000, 0.00000, 90.00000, 2);
- area[0] = CreateDynamicCuboid(781.8628, 1606.8362, 4.0951, 821.5828, 1706.3688, 17.7522);
- area[1] = CreateDynamicCuboid(793.4337, 1667.3652, 4.1175, 809.9350, 1669.5652, 6.6975);
- format(copyright, sizeof(copyright),"A Memfisht készítette %s\n{ff9900}Jelenlegi verzió %s\n{ff9900}Nyeremény adása %s {ff9900}halnál.", CopyR, BUILD, MEMFISH_KORLAT);
- CreateDynamic3DTextLabel(copyright, 0xFF9900FF, 801.77594, 1667.83691, 7.16579, 30.0);
- return 1;
- }
- public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
- {
- if (fishter[Shooter] == 1)
- {
- SetPlayerHealth(Target, 100);
- SetPlayerArmour(Target, 100);
- }
- else if (fishter[Target] == 1)
- {
- SetPlayerHealth(Target, 100);
- SetPlayerArmour(Target, 100);
- }
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if (fishter[playerid] == 1)
- {
- SetPlayerPos(playerid, 802.0587,1677.6029,6.1007);
- SetPlayerFacingAngle(playerid, 180);
- GameTextForPlayer(playerid, "~r~TYPE: ~b~/fish", 3000, 5);
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if (fishter[playerid] == 1)
- {
- SetPlayerPos(playerid, 802.0587,1677.6029,6.1007);
- SetPlayerFacingAngle(playerid, 180);
- GameTextForPlayer(playerid, "~r~TYPE: ~b~/fish", 3000, 5);
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/fish", true))
- {
- if (fishter[playerid] == 0)
- {
- new string[129], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"[TELEPORT] %s going to the Memfish minigame. (/fish)",name);
- SendClientMessageToAll(0xF1C40FAA,string);
- PlayAudioStreamForPlayer(playerid, "http://users.atw.hu/memphis-ftp/Memfish.mp3");
- SetPlayerPos(playerid, 802.0587,1677.6029,6.1007);
- SetPlayerFacingAngle(playerid, 180);
- fishter[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 1);
- enablefish[playerid] = 0;
- new str[100];
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 237.000106, 9.540741, str);
- PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw0[playerid], 2);
- PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
- PlayerTextDrawShow(playerid,Textdraw0[playerid]);
- kills[playerid] = 0;
- }
- else if (fishter[playerid] == 1)
- {
- new string[129], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"[TELEPORT] %s has left the Memfish minigame. (/fish)",name);
- SendClientMessageToAll(0xF1C40FAA,string);
- StopAudioStreamForPlayer(playerid);
- SetPlayerPos(playerid, 1977.5977,-2654.8076,13.5469);
- fishter[playerid] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- enablefish[playerid] = 0;
- PlayerTextDrawDestroy(playerid, Textdraw0[playerid]);
- kills[playerid] = 0;
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/gofish", true))
- {
- if (fishgo[playerid] == 0)
- {
- MoveDynamicObject(deer[0], 789.10773, 1651.17017, 6.39090, 2.00);
- MoveDynamicObject(deer[1], 789.10773, 1643.39258, 6.85371, 2.00);
- MoveDynamicObject(deer[2], 789.10773, 1641.93262, 5.63370, 2.00);
- MoveDynamicObject(deer[3], 789.10773, 1643.64136, 5.63370, 2.00);
- MoveDynamicObject(deer[4], 789.10773, 1636.42358, 6.35583, 2.00);
- MoveDynamicObject(deer[5], 789.10773, 1644.02075, 6.35580, 2.00);
- MoveDynamicObject(deer[6], 789.10773, 1633.53076, 6.35580, 2.00);
- MoveDynamicObject(deer[7], 789.10773, 1632.09778, 5.36595, 2.00);
- MoveDynamicObject(deer[8], 789.10773, 1634.39319, 5.66696, 2.00);
- MoveDynamicObject(deer[9], 789.10773, 1633.06262, 6.88943, 2.00);
- MoveDynamicObject(deer[10], 789.10773, 1637.05750, 6.88940, 2.00);
- MoveDynamicObject(deer[11], 789.10773, 1624.27185, 6.88940, 2.00);
- MoveDynamicObject(deer[12], 789.10773, 1649.69849, 6.39090, 2.00);
- MoveDynamicObject(deer[13], 789.10773, 1648.39954, 5.74113, 2.00);
- MoveDynamicObject(deer[14], 789.10773, 1649.51050, 6.04417, 2.00);
- MoveDynamicObject(deer[15], 789.10773, 1636.69336, 6.35580, 2.00);
- MoveDynamicObject(deer[16], 789.10773, 1637.36255, 6.35580, 2.00);
- MoveDynamicObject(deer[17], 789.10773, 1634.11487, 6.35580, 2.00);
- MoveDynamicObject(deer[18], 789.10773, 1632.37439, 6.35580, 2.00);
- MoveDynamicObject(deer[19], 789.10773, 1628.93188, 6.35580, 2.00);
- MoveDynamicObject(deer[20], 789.10773, 1637.80676, 6.35580, 2.00);
- MoveDynamicObject(deer[21], 789.10773, 1637.80676, 6.77770, 2.00);
- MoveDynamicObject(deer[22], 789.10773, 1635.53979, 6.55557, 2.00);
- MoveDynamicObject(deer[23], 789.10773, 1640.87634, 6.85371, 2.00);
- MoveDynamicObject(deer[24], 789.10773, 1643.10217, 5.63370, 2.00);
- MoveDynamicObject(deer[25], 789.10773, 1647.18164, 6.04417, 2.00);
- MoveDynamicObject(deer[26], 789.10773, 1647.30957, 6.41987, 2.00);
- MoveDynamicObject(deer[27], 789.10773, 1645.65967, 5.73276, 2.00);
- MoveDynamicObject(deer[28], 789.10773, 1643.20801, 6.13626, 2.00);
- MoveDynamicObject(deer[29], 789.10773, 1641.64307, 6.13626, 2.00);
- MoveDynamicObject(deer[30], 789.10773, 1639.94714, 6.13626, 2.00);
- MoveDynamicObject(deer[31], 789.10773, 1640.51062, 5.66366, 2.00);
- MoveDynamicObject(deer[32], 789.10773, 1640.51941, 6.35580, 2.00);
- MoveDynamicObject(deer[33], 789.10773, 1630.32007, 5.91798, 2.00);
- SendClientMessage(playerid, 0xFF9900FF, "Elindítottad a halat.");
- connect_timer[playerid] = SetTimerEx("Refresh", 1, true, "i", playerid);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- fishgo[i] = 1;
- }
- }
- else if (fishgo[playerid] == 1)
- {
- SetDynamicObjectPos(deer[0], 813.80652, 1651.17017, 6.39090);
- SendClientMessage(playerid, 0xFF9900FF, "Started Fish.");
- KillTimer(connect_timer[playerid]);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- fishgo[i] = 0;
- }
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- GetDynamicObjectPos(deer[0], onex, oney, onez);
- GetDynamicObjectPos(deer[1], twox, twoy, twoz);
- GetDynamicObjectPos(deer[2], threex, threey, threez);
- GetDynamicObjectPos(deer[3], fourx, foury, fourz);
- GetDynamicObjectPos(deer[4], fivex, fivey, fivez);
- GetDynamicObjectPos(deer[5], sixx, sixy, sixz);
- GetDynamicObjectPos(deer[6], sevenx, seveny, sevenz);
- GetDynamicObjectPos(deer[7], eightx, eighty, eightz);
- GetDynamicObjectPos(deer[8], ninex, niney, ninez);
- GetDynamicObjectPos(deer[9], tenx, teny, tenz);
- GetDynamicObjectPos(deer[10], tenonex, tenoney, tenonez);
- GetDynamicObjectPos(deer[11], tentwox, tentwoy, tentwoz);
- GetDynamicObjectPos(deer[12], tenthreex, tenthreey, tenthreez);
- GetDynamicObjectPos(deer[13], tenfourx, tenfoury, tenfourz);
- GetDynamicObjectPos(deer[14], tenfivex, tenfivey, tenfivez);
- GetDynamicObjectPos(deer[15], tensixx, tensixy, tensixz);
- GetDynamicObjectPos(deer[16], tensevenx, tenseveny, tensevenz);
- GetDynamicObjectPos(deer[17], teneightx, teneighty, teneightz);
- GetDynamicObjectPos(deer[18], tenninex, tenniney, tenninez);
- GetDynamicObjectPos(deer[19], twentyx, twentyy, twentyz);
- GetDynamicObjectPos(deer[20], twentyonex, twentyoney, twentyonez);
- GetDynamicObjectPos(deer[21], twentytwox, twentytwoy, twentytwoz);
- GetDynamicObjectPos(deer[22], twentythreex, twentythreey, twentythreez);
- GetDynamicObjectPos(deer[23], twentyfourx, twentyfoury, twentyfourz);
- GetDynamicObjectPos(deer[24], twentyfivex, twentyfivey, twentyfivez);
- GetDynamicObjectPos(deer[25], twentysixx, twentysixy, twentysixz);
- GetDynamicObjectPos(deer[26], twentysevenx, twentyseveny, twentysevenz);
- GetDynamicObjectPos(deer[27], twentyeightx, twentyeighty, twentyeightz);
- GetDynamicObjectPos(deer[28], twentyninex, twentyniney, twentyninez);
- GetDynamicObjectPos(deer[29], thirtyx, thirtyy, thirtyz);
- GetDynamicObjectPos(deer[30], thirtyonex, thirtyoney, thirtyonez);
- GetDynamicObjectPos(deer[31], thirtytwox, thirtytwoy, thirtytwoz);
- GetDynamicObjectPos(deer[32], thirtythreex, thirtythreey, thirtythreez);
- GetDynamicObjectPos(deer[33], thirtyfourx, thirtyfoury, thirtyfourz);
- new str[100];
- if(IsPlayerAimingAt(playerid, onex, oney, onez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[0], 813.80652, 1651.17017, 6.39090);
- MoveDynamicObject(deer[0], 789.10773, 1651.17017, 6.39090, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twox, twoy, twoz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[1], 814.45288, 1643.39258, 6.85371);
- MoveDynamicObject(deer[1], 789.10773, 1643.39258, 6.85371, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, threex, threey, threez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[2], 812.83289, 1641.93262, 5.63370);
- MoveDynamicObject(deer[2], 789.10773, 1641.93262, 5.63370, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, fourx, foury, fourz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[3], 812.84717, 1643.64136, 5.63370);
- MoveDynamicObject(deer[3], 789.10773, 1643.64136, 5.63370, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, fivex, fivey, fivez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[4], 813.51984, 1636.42358, 6.35583);
- MoveDynamicObject(deer[4], 789.10773, 1636.42358, 6.35583, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, sixx, sixy, sixz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[5], 813.50043, 1644.02075, 6.35580);
- MoveDynamicObject(deer[5], 789.10773, 1644.02075, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, sevenx, seveny, sevenz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[6], 813.52014, 1633.53076, 6.35580);
- MoveDynamicObject(deer[6], 789.10773, 1633.53076, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, eightx, eighty, eightz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[7], 812.71326, 1632.09778, 5.36595);
- MoveDynamicObject(deer[7], 789.10773, 1632.09778, 5.36595, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, ninex, niney, ninez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[8], 812.82452, 1634.39319, 5.66696);
- MoveDynamicObject(deer[8], 789.10773, 1634.39319, 5.66696, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tenx, teny, tenz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[9], 814.55859, 1633.06262, 6.88943);
- MoveDynamicObject(deer[9], 789.10773, 1633.06262, 6.88943, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tenonex, tenoney, tenonez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[10], 814.63116, 1637.05750, 6.88940);
- MoveDynamicObject(deer[10], 789.10773, 1637.05750, 6.88940, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tentwox, tentwoy, tentwoz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[11], 814.64349, 1624.27185, 6.88940);
- MoveDynamicObject(deer[11], 789.10773, 1624.27185, 6.88940, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tenthreex, tenthreey, tenthreez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[12], 814.41290, 1649.69849, 6.39090);
- MoveDynamicObject(deer[12], 789.10773, 1649.69849, 6.39090, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tenfourx, tenfoury, tenfourz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[13], 815.09680, 1648.39954, 5.74113);
- MoveDynamicObject(deer[13], 789.10773, 1648.39954, 5.74113, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tenfivex, tenfivey, tenfivez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[14], 814.07562, 1649.51050, 6.04417);
- MoveDynamicObject(deer[14], 789.10773, 1649.51050, 6.04417, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tensixx, tensixy, tensixz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[15], 815.48120, 1636.69336, 6.35580);
- MoveDynamicObject(deer[15], 789.10773, 1636.69336, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tensevenx, tenseveny, tensevenz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[16], 814.30768, 1637.36255, 6.35580);
- MoveDynamicObject(deer[16], 789.10773, 1637.36255, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, teneightx, teneighty, teneightz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[17], 815.36877, 1634.11487, 6.35580);
- MoveDynamicObject(deer[17], 789.10773, 1634.11487, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, tenninex, tenniney, tenninez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[18], 814.23602, 1632.37439, 6.35580);
- MoveDynamicObject(deer[18], 789.10773, 1632.37439, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentyx, twentyy, twentyz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[19], 815.76440, 1628.93188, 6.35580);
- MoveDynamicObject(deer[19], 789.10773, 1628.93188, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentyonex, twentyoney, twentyonez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[20], 815.08368, 1637.80676, 6.35580);
- MoveDynamicObject(deer[20], 789.10773, 1637.80676, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentytwox, twentytwoy, twentytwoz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[21], 815.08368, 1637.80676, 6.77770);
- MoveDynamicObject(deer[21], 789.10773, 1637.80676, 6.77770, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentythreex, twentythreey, twentythreez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[22], 814.55341, 1635.53979, 6.55557);
- MoveDynamicObject(deer[22], 789.10773, 1635.53979, 6.55557, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentyfourx, twentyfoury, twentyfourz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[23], 814.84479, 1640.87634, 6.85371);
- MoveDynamicObject(deer[23], 789.10773, 1640.87634, 6.85371, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentyfivex, twentyfivey, twentyfivez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[24], 813.83588, 1643.10217, 5.63370);
- MoveDynamicObject(deer[24], 789.10773, 1643.10217, 5.63370, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentysixx, twentysixy, twentysixz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[25], 813.82953, 1647.18164, 6.04417);
- MoveDynamicObject(deer[25], 789.10773, 1647.18164, 6.04417, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentysevenx, twentyseveny, twentysevenz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[26], 814.54596, 1647.30957, 6.41987);
- MoveDynamicObject(deer[26], 789.10773, 1647.30957, 6.41987, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentyeightx, twentyeighty, twentyeightz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[27], 814.02185, 1645.65967, 5.73276);
- MoveDynamicObject(deer[27], 789.10773, 1645.65967, 5.73276, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, twentyninex, twentyniney, twentyninez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[28], 815.29480, 1643.20801, 6.13626);
- MoveDynamicObject(deer[28], 789.10773, 1643.20801, 6.13626, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, thirtyx, thirtyy, thirtyz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[29], 814.82391, 1641.64307, 6.13626);
- MoveDynamicObject(deer[29], 789.10773, 1641.64307, 6.13626, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, thirtyonex, thirtyoney, thirtyonez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[30], 814.46466, 1639.94714, 6.13626);
- MoveDynamicObject(deer[30], 789.10773, 1639.94714, 6.13626, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, thirtytwox, thirtytwoy, thirtytwoz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[31], 814.95929, 1640.51062, 5.66366);
- MoveDynamicObject(deer[31], 789.10773, 1640.51062, 5.66366, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, thirtythreex, thirtythreey, thirtythreez, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[32], 815.54102, 1640.51941, 6.35580);
- MoveDynamicObject(deer[32], 789.10773, 1640.51941, 6.35580, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- if(IsPlayerAimingAt(playerid, thirtyfourx, thirtyfoury, thirtyfourz, 0.35))
- {
- if (enablefish[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~r~H~b~!~r~T~b~!", 1000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- SetDynamicObjectPos(deer[33], 814.81555, 1630.32007, 5.91798);
- MoveDynamicObject(deer[33], 789.10773, 1630.32007, 5.91798, 2.00);
- kills[playerid]++;
- format(str,sizeof(str),"Killed Fish: %i",kills[playerid]);
- PlayerTextDrawSetString(playerid,Textdraw0[playerid],str);
- if (fishnyeremeny[playerid] == MEMFISH)
- {
- fishnyeremeny[playerid] = 0;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetTimerEx("Mempfish", 1, false, "i", playerid);
- }
- else
- {
- fishnyeremeny[playerid] ++;
- }
- }
- else if (enablefish[playerid] == 0)
- {
- GameTextForPlayer(playerid, "~r~go to the shooting range !", 5000, 5);
- PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
- }
- }
- return 1;
- }
- forward Mempfish(playerid);
- public Mempfish(playerid)
- {
- ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "{ff0000}Memfish {ff0099}Minigame v2.0", "{ff9900}Congratulations you have won\nRandom Gifts:\n{ff0000}-10 score\n-Grenade\n-Molotov Cocktail\n-Satchel Charge\n\n{ff0000}by {ff0099}Memphis", "Okay", "");
- switch(random(5))
- {
- case 0: {
- GivePlayerWeapon(playerid, 16, 10);
- }
- case 1: {
- GivePlayerWeapon(playerid, 18, 10);
- }
- case 2: {
- GivePlayerWeapon(playerid, 37, 500);
- }
- case 3: {
- GivePlayerWeapon(playerid, 39, 10);
- GivePlayerWeapon(playerid, 40, 1);
- }
- case 4: {
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 9);
- }
- }
- return 1;
- }
- forward Refresh();
- public Refresh()
- {
- GetDynamicObjectPos(deer[0], onex, oney, onez);
- GetDynamicObjectPos(deer[1], twox, twoy, twoz);
- GetDynamicObjectPos(deer[2], threex, threey, threez);
- GetDynamicObjectPos(deer[3], fourx, foury, fourz);
- GetDynamicObjectPos(deer[4], fivex, fivey, fivez);
- GetDynamicObjectPos(deer[5], sixx, sixy, sixz);
- GetDynamicObjectPos(deer[6], sevenx, seveny, sevenz);
- GetDynamicObjectPos(deer[7], eightx, eighty, eightz);
- GetDynamicObjectPos(deer[8], ninex, niney, ninez);
- GetDynamicObjectPos(deer[9], tenx, teny, tenz);
- GetDynamicObjectPos(deer[10], tenonex, tenoney, tenonez);
- GetDynamicObjectPos(deer[11], tentwox, tentwoy, tentwoz);
- GetDynamicObjectPos(deer[12], tenthreex, tenthreey, tenthreez);
- GetDynamicObjectPos(deer[13], tenfourx, tenfoury, tenfourz);
- GetDynamicObjectPos(deer[14], tenfivex, tenfivey, tenfivez);
- GetDynamicObjectPos(deer[15], tensixx, tensixy, tensixz);
- GetDynamicObjectPos(deer[16], tensevenx, tenseveny, tensevenz);
- GetDynamicObjectPos(deer[17], teneightx, teneighty, teneightz);
- GetDynamicObjectPos(deer[18], tenninex, tenniney, tenninez);
- GetDynamicObjectPos(deer[19], twentyx, twentyy, twentyz);
- GetDynamicObjectPos(deer[20], twentyonex, twentyoney, twentyonez);
- GetDynamicObjectPos(deer[21], twentytwox, twentytwoy, twentytwoz);
- GetDynamicObjectPos(deer[22], twentythreex, twentythreey, twentythreez);
- GetDynamicObjectPos(deer[23], twentyfourx, twentyfoury, twentyfourz);
- GetDynamicObjectPos(deer[24], twentyfivex, twentyfivey, twentyfivez);
- GetDynamicObjectPos(deer[25], twentysixx, twentysixy, twentysixz);
- GetDynamicObjectPos(deer[26], twentysevenx, twentyseveny, twentysevenz);
- GetDynamicObjectPos(deer[27], twentyeightx, twentyeighty, twentyeightz);
- GetDynamicObjectPos(deer[28], twentyninex, twentyniney, twentyninez);
- GetDynamicObjectPos(deer[29], thirtyx, thirtyy, thirtyz);
- GetDynamicObjectPos(deer[30], thirtyonex, thirtyoney, thirtyonez);
- GetDynamicObjectPos(deer[31], thirtytwox, thirtytwoy, thirtytwoz);
- GetDynamicObjectPos(deer[32], thirtythreex, thirtythreey, thirtythreez);
- GetDynamicObjectPos(deer[33], thirtyfourx, thirtyfoury, thirtyfourz);
- if(onex == 789.10773)
- {
- SetDynamicObjectPos(deer[0], 813.80652, 1651.17017, 6.39090);
- MoveDynamicObject(deer[0], 789.10773, 1651.17017, 6.39090, 2.00);
- }
- if(twox == 789.10773)
- {
- SetDynamicObjectPos(deer[1], 814.45288, 1643.39258, 6.85371);
- MoveDynamicObject(deer[1], 789.10773, 1643.39258, 6.85371, 2.00);
- }
- if(threex == 789.10773)
- {
- SetDynamicObjectPos(deer[2], 812.83289, 1641.93262, 5.63370);
- MoveDynamicObject(deer[2], 789.10773, 1641.93262, 5.63370, 2.00);
- }
- if(fourx == 789.10773)
- {
- SetDynamicObjectPos(deer[3], 812.84717, 1643.64136, 5.63370);
- MoveDynamicObject(deer[3], 789.10773, 1643.64136, 5.63370, 2.00);
- }
- if(fivex == 789.10773)
- {
- SetDynamicObjectPos(deer[4], 813.51984, 1636.42358, 6.35583);
- MoveDynamicObject(deer[4], 789.10773, 1636.42358, 6.35583, 2.00);
- }
- if(sixx == 789.10773)
- {
- SetDynamicObjectPos(deer[5], 813.50043, 1644.02075, 6.35580);
- MoveDynamicObject(deer[5], 789.10773, 1644.02075, 6.35580, 2.00);
- }
- if(sevenx == 789.10773)
- {
- SetDynamicObjectPos(deer[6], 813.52014, 1633.53076, 6.35580);
- MoveDynamicObject(deer[6], 789.10773, 1633.53076, 6.35580, 2.00);
- }
- if(eightx == 789.10773)
- {
- SetDynamicObjectPos(deer[7], 812.71326, 1632.09778, 5.36595);
- MoveDynamicObject(deer[7], 789.10773, 1632.09778, 5.36595, 2.00);
- }
- if(ninex == 789.10773)
- {
- SetDynamicObjectPos(deer[8], 812.82452, 1634.39319, 5.66696);
- MoveDynamicObject(deer[8], 789.10773, 1634.39319, 5.66696, 2.00);
- }
- if(tenx == 789.10773)
- {
- SetDynamicObjectPos(deer[9], 814.55859, 1633.06262, 6.88943);
- MoveDynamicObject(deer[9], 789.10773, 1633.06262, 6.88943, 2.00);
- }
- if(tenonex == 789.10773)
- {
- SetDynamicObjectPos(deer[10], 814.63116, 1637.05750, 6.88940);
- MoveDynamicObject(deer[10], 789.10773, 1637.05750, 6.88940, 2.00);
- }
- if(tentwox == 789.10773)
- {
- SetDynamicObjectPos(deer[11], 814.64349, 1624.27185, 6.88940);
- MoveDynamicObject(deer[11], 789.10773, 1624.27185, 6.88940, 2.00);
- }
- if(tenthreex == 789.10773)
- {
- SetDynamicObjectPos(deer[12], 814.41290, 1649.69849, 6.39090);
- MoveDynamicObject(deer[12], 789.10773, 1649.69849, 6.39090, 2.00);
- }
- if(tenfourx == 789.10773)
- {
- SetDynamicObjectPos(deer[13], 815.09680, 1648.39954, 5.74113);
- MoveDynamicObject(deer[13], 789.10773, 1648.39954, 5.74113, 2.00);
- }
- if(tenfivex == 789.10773)
- {
- SetDynamicObjectPos(deer[14], 814.07562, 1649.51050, 6.04417);
- MoveDynamicObject(deer[14], 789.10773, 1649.51050, 6.04417, 2.00);
- }
- if(tensixx == 789.10773)
- {
- SetDynamicObjectPos(deer[15], 815.48120, 1636.69336, 6.35580);
- MoveDynamicObject(deer[15], 789.10773, 1636.69336, 6.35580, 2.00);
- }
- if(tensevenx == 789.10773)
- {
- SetDynamicObjectPos(deer[16], 814.30768, 1637.36255, 6.35580);
- MoveDynamicObject(deer[16], 789.10773, 1637.36255, 6.35580, 2.00);
- }
- if(teneightx == 789.10773)
- {
- SetDynamicObjectPos(deer[17], 815.36877, 1634.11487, 6.35580);
- MoveDynamicObject(deer[17], 789.10773, 1634.11487, 6.35580, 2.00);
- }
- if(tenninex == 789.10773)
- {
- SetDynamicObjectPos(deer[18], 814.23602, 1632.37439, 6.35580);
- MoveDynamicObject(deer[18], 789.10773, 1632.37439, 6.35580, 2.00);
- }
- if(twentyx == 789.10773)
- {
- SetDynamicObjectPos(deer[19], 815.76440, 1628.93188, 6.35580);
- MoveDynamicObject(deer[19], 789.10773, 1628.93188, 6.35580, 2.00);
- }
- if(twentyonex == 789.10773)
- {
- SetDynamicObjectPos(deer[20], 815.08368, 1637.80676, 6.35580);
- MoveDynamicObject(deer[20], 789.10773, 1637.80676, 6.35580, 2.00);
- }
- if(twentytwox == 789.10773)
- {
- SetDynamicObjectPos(deer[21], 815.08368, 1637.80676, 6.77770);
- MoveDynamicObject(deer[21], 789.10773, 1637.80676, 6.77770, 2.00);
- }
- if(twentythreex == 789.10773)
- {
- SetDynamicObjectPos(deer[22], 814.55341, 1635.53979, 6.55557);
- MoveDynamicObject(deer[22], 789.10773, 1635.53979, 6.55557, 2.00);
- }
- if(twentyfourx == 789.10773)
- {
- SetDynamicObjectPos(deer[23], 814.84479, 1640.87634, 6.85371);
- MoveDynamicObject(deer[23], 789.10773, 1640.87634, 6.85371, 2.00);
- }
- if(twentyfivex == 789.10773)
- {
- SetDynamicObjectPos(deer[24], 813.83588, 1643.10217, 5.63370);
- MoveDynamicObject(deer[24], 789.10773, 1643.10217, 5.63370, 2.00);
- }
- if(twentysixx == 789.10773)
- {
- SetDynamicObjectPos(deer[25], 813.82953, 1647.18164, 6.04417);
- MoveDynamicObject(deer[25], 789.10773, 1647.18164, 6.04417, 2.00);
- }
- if(twentysevenx == 789.10773)
- {
- SetDynamicObjectPos(deer[26], 814.54596, 1647.30957, 6.41987);
- MoveDynamicObject(deer[26], 789.10773, 1647.30957, 6.41987, 2.00);
- }
- if(twentyeightx == 789.10773)
- {
- SetDynamicObjectPos(deer[27], 814.02185, 1645.65967, 5.73276);
- MoveDynamicObject(deer[27], 789.10773, 1645.65967, 5.73276, 2.00);
- }
- if(twentyninex == 789.10773)
- {
- SetDynamicObjectPos(deer[28], 815.29480, 1643.20801, 6.13626);
- MoveDynamicObject(deer[28], 789.10773, 1643.20801, 6.13626, 2.00);
- }
- if(thirtyx == 789.10773)
- {
- SetDynamicObjectPos(deer[29], 814.82391, 1641.64307, 6.13626);
- MoveDynamicObject(deer[29], 789.10773, 1641.64307, 6.13626, 2.00);
- }
- if(thirtyonex == 789.10773)
- {
- SetDynamicObjectPos(deer[30], 814.46466, 1639.94714, 6.13626);
- MoveDynamicObject(deer[30], 789.10773, 1639.94714, 6.13626, 2.00);
- }
- if(thirtytwox == 789.10773)
- {
- SetDynamicObjectPos(deer[31], 814.95929, 1640.51062, 5.66366);
- MoveDynamicObject(deer[31], 789.10773, 1640.51062, 5.66366, 2.00);
- }
- if(thirtythreex == 789.10773)
- {
- SetDynamicObjectPos(deer[32], 815.54102, 1640.51941, 6.35580);
- MoveDynamicObject(deer[32], 789.10773, 1640.51941, 6.35580, 2.00);
- }
- if(thirtyfourx == 789.10773)
- {
- SetDynamicObjectPos(deer[33], 814.81555, 1630.32007, 5.91798);
- MoveDynamicObject(deer[33], 789.10773, 1630.32007, 5.91798, 2.00);
- }
- return 1;
- }
- public OnPlayerEnterDynamicArea(playerid, areaid)
- {
- if(areaid == area[1])
- {
- if (fishter[playerid] == 1)
- {
- enablefish[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 2);
- SetPlayerWeather(playerid, 9);
- }
- }
- return 1;
- }
- public OnPlayerLeaveDynamicArea(playerid, areaid)
- {
- if(areaid == area[0])
- {
- if (fishter[playerid] == 1)
- {
- SetPlayerPos(playerid, 802.0587,1677.6029,6.1007);
- SetPlayerFacingAngle(playerid, 180);
- GameTextForPlayer(playerid, "~r~TYPE: ~b~/fish", 3000, 5);
- }
- }
- else if(areaid == area[1])
- {
- if (fishter[playerid] == 1)
- {
- enablefish[playerid] = 0;
- SetPlayerVirtualWorld(playerid, 1);
- SetPlayerWeather(playerid, 0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement