13.02.2015, 22:42
ola galerinha tava fazendo um FS+MAP, mais nгo funfou muito bem, peguei 4 coordenadas e ajeitei as coisas certinho, mais quando uso o comando para ele mover-se para outro local ele naufraga.
agradeзo ae atenзгo e ajuda...
Код:
#include <a_samp> #pragma tabsize 0 new obje1; new obje2; new obje3; new obje4; new obje5; new obje6; public OnGameModeInit() { CreateObject(3399,2815.5679, -2513.3999, 10.4000,0.0000, 0.0000, 180.0000); return 1; } public OnFilterScriptInit() { obje1 = CreateObject(8493, 3154.64502, -2062.01953, 16.00000, 0.00000, 0.00000, 180.00000); obje2 = CreateObject(9159, 3154.64502, -2062.01953, 16.00000, 0.00000, 0.00000, 180.00000); obje3 = CreateObject(2232, 3157.51025, -2059.10010, 5.10000, 0.00000, 0.00000, 0.00000); obje4 = CreateObject(2232, 3156.80005, -2059.10010, 5.10000, 0.00000, 0.00000, 0.00000); obje5 = CreateObject(2232, 3152.86011, -2059.07837, 5.10000, 0.00000, 0.00000, 0.00000); obje6 = CreateObject(2232, 3153.55591, -2059.07837, 5.10000, 0.00000, 0.00000, 0.00000); } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/ponto1", cmdtext, true, 10) == 0) { MoveObject(obje1, 8493,2961.3923,-2984.5972,16.00000, 90); MoveObject(obje2, 9159,2961.3923,-2984.5972,16.00000, 90); MoveObject(obje3, 2232,2964.3601,-2982.8301,5.1000, -90); MoveObject(obje4, 2232,2964.3601,-2983.5449,5.1000, -90); MoveObject(obje5, 2232,2964.3542,-2986.3999,5.1000, -90); MoveObject(obje6, 2232,2964.3601,-2987.1382,5.1000, -90); return 1; } if (strcmp("/ponto2", cmdtext, true, 10) == 0) { MoveObject(obje1, 8493,-2985.2207,-2987.4082,16.0000); MoveObject(obje2, 9159,-2985.2207,-2987.4082,16.0000); MoveObject(obje3, 2232,-2982.3000,-2985.6321,5.1000, -90); MoveObject(obje4, 2232,-2982.3000,-2986.3401,5.1000, -90); MoveObject(obje5, 2232,-2982.3000,-2989.4890,5.1000, -90); MoveObject(obje6, 2232,-2982.3000,-2990.2000,5.1000, -90); return 1; } if (strcmp("/ponto3", cmdtext, true, 10) == 0) { MoveObject(obje1, 8493,-2984.8027,2990.1277,16.0000, -90); MoveObject(obje2, 9159,-2984.8027,2990.1277,16.0000, -90); MoveObject(obje3, 2232,-2987.7600,2988.3401,5.1000, 90); MoveObject(obje4, 2232,-2987.7600,2989.0500,5.1000, 90); MoveObject(obje5, 2232,-2987.7600,2992.2200,5.1000, 90); MoveObject(obje6, 2232,-2987.7600,2992.9299,5.1000, 90); return 1; } if (strcmp("/ponto4", cmdtext, true, 10) == 0) { MoveObject(obje1, 8493,3126.8169,3077.5505,16.0000, 180); MoveObject(obje2, 9159,3126.8169, 3077.5505,16.0000, 180); MoveObject(obje3, 2232,3125.0544,3080.5000,5.1000); MoveObject(obje4, 2232,3125.7700,3080.5000,5.1000); MoveObject(obje5, 2232,3128.9150,3080.4983,5.1000); MoveObject(obje6, 2232,3129.6304,3080.4983,5.1000); return 1; } return 0; }