19.08.2016, 13:59
(
Последний раз редактировалось Unrea1; 19.08.2016 в 15:57.
)
Para йstas alturas nadie usa 'PlayerToPoint'. Usa https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Con respecto al cуdigo, las sentencias estбn mal puestas, la soluciуn la tienes acб:
No olvides cambiar 'PlayerToPoint', saludos.
Con respecto al cуdigo, las sentencias estбn mal puestas, la soluciуn la tienes acб:
Код:
if(newkeys == KEY_CROUCH) { if(Gobierno(playerid)) { if (PlayerToPoint(15, playerid,-2734.7625,379.7803,-9.4050)) { MoveDynamicObject(Apalca,-2735.5098, 380.5146, -13.3036, 2.0); SetTimer("Closealca", 7000, 0); } } else if (Team_LSTV(playerid)) { if (PlayerToPoint(15, playerid,-2051.9419, 494.1837, 37.0603)) { MoveDynamicObject(Apradion,-2051.9419, 494.1837, 31.1515, 2.0); SetTimer("Closeradiop", 7000, 0); } } else if (Team_Mecanicos(playerid)) { if (PlayerToPoint(15, playerid,-1520.2914, 874.7809, 9.0635)) { MoveDynamicObject(Aptallerr,-2051.9419, 494.1837, 31.1515, 2.0); SetTimer("Closetallerr", 7000, 0); } } else if (Team_Mecanicos(playerid)) { if (PlayerToPoint(15, playerid,-1910.0209, -858.0660, 33.8170)) { MoveDynamicObject(Apdeposit,-1910.0209, -858.0660, 27.8621, 2.0); SetTimer("Closedeposi", 7000, 0); } } else if (Team_FBI(playerid)) { if (PlayerToPoint(15, playerid,-1752.1857, 757.0785, 26.8627)) { MoveDynamicObject(Apdea,-1752.1857, 757.0785, 21.0581, 2.0); SetTimer("Closedea", 7000, 0); } } else if (Team_Yakuza(playerid)) { if (PlayerToPoint(15, playerid,-2484.7891,-615.8773,132.5650)) { MoveDynamicObject(Apyakusa,-2485.9001, -614.9253, 128.7196, 3.0); SetTimer("Closeyakuson", 7000, 0); } } else SendClientMessage(playerid,-1,"*No tienes el control de la reja"); return true; }