30.12.2012, 03:10
Bom eu tenho um sistema de gangs que esta funcionando certinho compilando sem problema algum mais o ъnico
problema й o seguinte ele tem os comandos /convidar, Promover e demitir mais nгo tem o comando /dalider e eu
nem sei onde eu defino os ids das GGs nem como do o lider dela pra alguem :S quem puder me ajudar ae vai o code do meu sistema. Desde Jб obrigado^^
problema й o seguinte ele tem os comandos /convidar, Promover e demitir mais nгo tem o comando /dalider e eu
nem sei onde eu defino os ids das GGs nem como do o lider dela pra alguem :S quem puder me ajudar ae vai o code do meu sistema. Desde Jб obrigado^^
Код:
#include <a_samp> #define Branco 0xFFFFFFAA #define Verde 0x00DE00FF #include <dini> enum Info { Vagos }; new PlayerInfo [MAX_PLAYERS] [Info]; new VVagos [14]; public OnFilterScriptInit() { VVagos[0] = AddStaticVehicleEx(474,2814.10009766,-1187.59997559,25.20000076,270.00000000,6,6,15); //Hermes VVagos[1] = AddStaticVehicleEx(474,2821.50000000,-1187.90002441,25.10000038,270.00000000,6,6,15); //Hermes VVagos[2] = AddStaticVehicleEx(474,2821.89990234,-1178.40002441,25.10000038,270.00000000,6,6,15); //Hermes VVagos[3] = AddStaticVehicleEx(474,2814.50000000,-1178.50000000,25.20000076,270.00000000,6,6,15); //Hermes VVagos[4] = AddStaticVehicleEx(551,2827.10009766,-1193.50000000,24.89999962,340.00000000,6,6,15); //Merit VVagos[5] = AddStaticVehicleEx(551,2827.39990234,-1171.90002441,24.89999962,221.99633789,6,6,15); //Merit VVagos[6] = AddStaticVehicleEx(474,2827.60009766,-1165.80004883,25.00000000,232.00000000,6,6,15); //Hermes VVagos[7] = AddStaticVehicleEx(603,2827.60009766,-1200.50000000,24.89999962,336.00000000,6,57,15); //Phoenix VVagos[8] = AddStaticVehicleEx(461,2804.19995117,-1186.00000000,25.10000038,274.00000000,6,6,15); //PCJ-600 VVagos[9] = AddStaticVehicleEx(468,2803.89990234,-1184.40002441,25.20000076,282.00000000,6,6,15); //Sanchez VVagos[10] = AddStaticVehicleEx(521,2804.00000000,-1182.80004883,25.10000038,274.00000000,6,6,15); //FCR-900 VVagos[11] = AddStaticVehicleEx(522,2804.10009766,-1181.30004883,25.10000038,278.00000000,6,6,15); //NRG-500 VVagos[12] = AddStaticVehicleEx(563,2818.89990234,-1197.09997559,33.59999847,270.00000000,6,65,15); //Raindance VVagos[13] = AddStaticVehicleEx(487,2817.00000000,-1168.09997559,32.90000153,272.00000000,6,6,15); //Maverick CreateObject(12950,2818.69995117,-1205.30004883,28.39999962,0.00000000,0.00000000,90.00000000); //Escada CreateObject(14394,2819.89990234,-1202.09997559,26.89999962,0.00000000,0.00000000,180.00000000); //Escada CreateObject(14394,2822.19995117,-1202.09997559,25.39999962,0.00000000,0.00000000,179.99450684); //Escada CreateObject(14394,2823.30004883,-1202.09997559,24.70000076,0.00000000,0.00000000,179.99450684); //Escada CreateObject(14411,2816.89990234,-1162.30004883,27.39999962,0.00000000,0.00000000,90.00000000); //Escada return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { VerificarVeiculo(playerid); } return 1; } forward VerificarVeiculo(playerid); public VerificarVeiculo(playerid) { for(new c = 0; c <= 11; c++) { if(IsPlayerInVehicle(playerid, VVagos[c])) { SendClientMessage(playerid, Verde, "Sai fora mano vocк nгo й dos Los Vagos"); RemovePlayerFromVehicle(playerid); } } return 1; } public OnPlayerDisconnect(playerid, reason) { SalvarOrg(playerid); return 1; } forward SalvarOrg(playerid); public SalvarOrg(playerid) { new arquivo[60], nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, nome, sizeof(nome)); format(arquivo, sizeof(arquivo), "Contas\%s.ini", nome); if(!dini_Exists(arquivo)) { dini_Create(arquivo); } if(PlayerInfo[playerid][Vagos] > 0) dini_IntSet(arquivo, "Vagos", PlayerInfo[playerid][Vagos]); return 1; }