01.08.2014, 03:22
Ver se esta ai e q nao entendo mt bem :/
Код:
if(strcmp(cmd, "/pistola", 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); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid, 7); Arena[playerid] = 1; ArenaTipo[playerid] = 1; new rand = random(sizeof(ArenaPos)); SetPlayerPos(playerid, ArenaPos[rand][0], ArenaPos[rand][1], ArenaPos[rand][2]); // Warp the player SetCameraBehindPlayer(playerid); ResetPlayerWeapons(playerid); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); GivePlayerWeapon(playerid, 24, 9999); GameTextForPlayer(playerid,"~r~DESERT EAGLE!", 3000, 5); new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "{FFFF00}%s {00FF00}foi para a arena de DESERT EAGLE. Quem vai? {FF0000}( /pistola )", pname); SendClientMessageToAll(COLOUR_TELEPORTE, string); SendClientMessage(playerid, COLOUR_DICA, ""); SendClientMessage(playerid, COLOUR_DICA, "VOCК ESTБ EM UMA ARENA DM, 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;}