05.08.2013, 23:36
bom gente , gostaria de ajuda no meu comando /minigun , ex: eu digio /minigun vo la d boa e mato os cara , mas nao ganho score , gostaria de ganhar score ao matar no /minigun , vou deixar o cod abaixo .
vlw pessoal !
Код:
if(strcmp(cmd, "/mg", true) == 0 || strcmp(cmd, "/minigun", true) == 0 || strcmp(cmd, "/mg3", true) == 0) { if(!IsPlayerSpawned(playerid)){return 1;} if(EventoProibirTele == true && NoEvento[playerid] == 1 && EventoAtivo == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[3]); if(LifeBaixo(playerid)) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[6]); if(GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid,COLOUR_ERRO,StringTable[7]); //if(IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playerid, COLOUR_ERRO, "[ERRO]: Vocк deve sair de seu veнculo.");} if(ChecarVeiculosProibidosParaTele(playerid) == 1){return SendClientMessage(playerid, COLOUR_ERRO, StringTable[1]);} if(Arena[playerid] == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[9]); if(CallRemoteFunction("LocalInvalidoParaTeleporte","i",playerid) && GetPlayerInterior(playerid) > 0) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[2]); if(ChecarAntiFlood(playerid)) return AntiFloodMsg(playerid); RemoverTodosAttachsObj(playerid); ResetPlayerWeapons(playerid); Arena[playerid] = 1; ArenaTipo[playerid] = 4; SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid, 13); new rand = random(sizeof(CombatePos)); SetPlayerPos(playerid, CombatePos[rand][0], CombatePos[rand][1], CombatePos[rand][2]); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid,CombatePos[rand][3]); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); GivePlayerWeapon(playerid, 38, 99999); GameTextForPlayer(playerid,"~r~COMBATE DE MINIGUN!", 3000, 5); new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s foi para o combate de MINIGUN. Quem vai?( /MG )", pname); SendClientMessageToAll(COLOUR_TELEPORTE, string); SendClientMessage(playerid, COLOUR_DICA, ""); SendClientMessage(playerid, COLOUR_DICA, "VOCК ESTБ EM UM COMBATE, O OBJETIVO Й MATAR TODOS QUE"); SendClientMessage(playerid, COLOUR_DICA, "VIREM AQUI, LEMBRANDO QUE, AO MATAR, SEU COLETE E SAUDE"); SendClientMessage(playerid, COLOUR_DICA, "SERГO RECUPERADOS AUTOMATICAMENTE, ENTГO MATE!"); SendClientMessage(playerid, COLOUR_DICA, ""); SetCameraBehindPlayer(playerid); ProgramarAntiFlood(playerid); return 1;}